|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1863 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1863.
Report 1863 Actions
Problem Report Number 1863 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0550 Raised 1999-10-11 08:00 Updated 2003-03-13 08:00 Published null Product Standard X Window System Applications Interface Certification Program The Open Brand certification program Test Suite VSW version 5.0.2 Test Identification Xlib11/PropertyNotify 1 Problem Summary PG4W.00101 32-bit data should be passed in a long int. Problem Text
In the testcode a call is made to XChangeProperty as follows:
XChangeProperty(display, w, atom, XA_INTEGER, 32, PropModeReplace, (unsi
gned char *)&data, 1);
Where data is declared as an int:
int data = 42;
In our Xserver XChangeProperty treats the value passed in data to be a
long. This is fine in the 32 bit Xserver as sizeof(int) is equal to
sizeof(long). However in our 64 bit Xserver sizeof(long) does not
sizeof(int) and this causes the test program to crash.
As in TSD4W.00111 the test should be using something like the xProp*
structures in Xatomtype.h to provide a portable way of handling the
case where ints and longs are different sizes.Test Output
400|1393 1 1 19:28:43|IC Start
200|1393 1 19:28:43|TP Start
520|1393 1 00024686 1 1|VSW5TESTSUITE PURPOSE 1
520|1393 1 00024686 1 2|Assertion PropertyNotify-1.(A)
520|1393 1 00024686 1 3|When a PropertyNotify event is generated, then all clients
520|1393 1 00024686 1 4|having set PropertyChangeMask event mask bits on the event
520|1393 1 00024686 1 5|window are delivered a PropertyNotify event.
520|1393 1 00024686 1 6|METH: Create clients client2 and client3.
520|1393 1 00024686 1 7|METH: Create window.
520|1393 1 00024686 1 8|METH: Select for PropertyNotify events using PropertyChangeMas
k.
520|1393 1 00024686 1 9|METH: Select for PropertyNotify events using PropertyChangeMas
k with client2.
520|1393 1 00024686 1 10|METH: Select for no events with client3.
520|1393 1 00024686 1 11|METH: Create atom for property.
520|1393 1 00024686 1 12|METH: Generate PropertyNotify event.
520|1393 1 00024686 1 13|METH: Verify that a PropertyNotify event was delivered.
520|1393 1 00024686 1 14|METH: Verify that event member fields are correctly set.
520|1393 1 00024686 1 15|METH: Verify that a PropertyNotify event was delivered to cli
ent2.
520|1393 1 00024686 1 16|METH: Verify that event member fields are correctly set.
520|1393 1 00024686 1 17|METH: Verify that no events were delivered to client3.
520|1393 1 00024686 1 18|unexpected signal 10 (unknown signal) received
220|1393 1 2 19:28:43|UNRESOLVED
410|1393 1 1 19:28:43|IC EndReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
The call to XChangeProperty() details the format of the data field to be 32-bit
entities and the data is provided as a 32-bit integer quantity. This seems to
be correct, though it is recognised that the current specification does not
seem to allow the ability to pass 64-bit quantities. It seems strange that
the implementations version of XChangeProperty() uses a fixed size for the
format of the data when the format field allows for this to be defined by the
caller. This seems to be an error in the implementation and it is recommended
that this request is refused.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 1863
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority