|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1847 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 1847.
Report 1847 Actions
Problem Report Number 1847 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0924 Raised 2000-11-13 08:00 Updated 2003-03-13 08:00 Published 2000-12-07 08:00 Product Standard X Window System Display Certification Program The Open Brand certification program Test Suite VSW version 5.1.1 Test Identification Xproto/StoreColors 1 - 4 Problem Summary TSD4W.00169 These tests may report a SIGBUS signal on systems where unsigned long is not 32 bits. Problem Text
* NOTE:- Also applies to XProto/StoreNamedColor 1 - 4.
> All the testable purposes in these tests fail with the result
> "child process was terminated by signal 10 (unknown signal)".
> Only occurs on 64-bit machines.
> This is actually a SIGBUS (signal 10) failure. Using dbx it is found that in the
> function tester_rw(), a bus alignment error occurs when 'reply_pixel' is being
> accessed.
> eg
> (dbx) step
> signal BUS (invalid address alignment) in tester_rw at line 133 in file "Test.c"
> 133 reply_pixel = *(unsigned long*) (acreply + 1);
> An attempt was made to manually compile a reduced version of the strclrs code,
> Test.c.
> This was the result:-
> cc -DXT_X_RELEASE=6 -xarch=v9 -g -I. -I/scde/cdetest/tet_sparc64/inc/tet3
> -I/usr/include -I/usr/openwin/include/X11
> -I/scde/cdetest/tet_sparc64/vsw5_sparc64/include -DUNIXCONN -c Test.c
> cc -xarch=v9 -o Test Test.o /scde/cdetest/tet_sparc64/lib/tet3/tcm.o
> /scde/cdetest/tet_sparc64/vsw5_sparc64/lib/libXst.a
> /scde/cdetest/tet_sparc64/vsw5_sparc64/lib/libxtest.a
> /scde/cdetest/tet_sparc64/vsw5_sparc64/lib/libfont.a
> /scde/cdetest/tet_sparc64/lib/tet3/libapi.a -L/usr/openwin/lib/sparcv9 -lXi
> -lXext -lX11 -lnsl
> ld: warning: symbol `reply_pixel' has differing sizes:
> (file Test.o value=0x8; file
> /scde/cdetest/tet_sparc64/vsw5_sparc64/lib/libXst.a(MakeReq.o) value=0x4);
> [i.e reply_pixel in Test is 8 bytes, in MakeReq it is 4bytes]
>
> Looks like a conflict between declaration of reply_pixel (in MakeReq.c) and
> in strclrs.m (Test.c)
>
> Note the following defines/declarations:-
> - In X11/Xmd.h:
> #ifdef LONG64
> typedef unsigned long CARD64;
> typedef unsigned int CARD32;
> #else
> typedef unsigned long CARD32;
> #endif
>
> - In MakeReq.c:
> CARD32 reply_pixel;
>
> - In strclrs Test.c (and strnmdclr Test.c):
> extern unsigned long reply_pixel
> (Note also the cast reply_pixel = *(unsigned long*) (acreply + 1); )
>
> - A check was added to Test.c for the state of _LP64, LONG64:
> $ Test
> _LP64 is TRUE
> LONG64 is TRUE
>
> Therefore, as LONG64 is true, then CARD32 is of type 'unsigned int'.
>
> It is suggested that the variable declaration for reply_pixel in 'strclrs' and
> 'strnmdclr' be changed from:
> extern unsigned long reply_pixel
> to
> extern CARD32 reply_pixel
>
> It should not be assumed that CARD32 is the same as 'unsigned long', especially
> as we can compile on different machine types.
> ***Result with 'extern unsigned long reply_pixel' replaced by
> 'extern CARD32 reply_pixel'......
> 15|0 3.1-lite 4|TCM Start
> 400|0 1 1 15:03:31|IC Start
> 200|0 1 15:03:31|TP Start
> 520|0 1 00009825 1 1|VSW5TESTSUITE PURPOSE 1
> 520|0 1 00009825 1 2|Assertion StoreColors-1.(C)
> 520|0 1 00009825 1 3|If the default visual class for screen zero is DirectColor,
> 520|0 1 00009825 1 4|PseudoColor, or GrayScale: When a client sends a valid
> 520|0 1 00009825 1 5|StoreColors protocol request to the X server, and the
> colour
> 520|0 1 00009825 1 6|cell is read-write, then the X server does not send back an
> 520|0 1 00009825 1 7|error, event or reply to the client.
> 520|0 1 00009825 1 8|METH: Call library function testfunc() to do the following:
> 520|0 1 00009825 1 9|METH: DirectColor, PseudoColor, or GrayScale :
> 520|0 1 00009825 1 10|METH: Open a connection to the X server using native byte
> sex.
> 520|0 1 00009825 1 11|METH: Send a valid StoreColors protocol request to the X
> server.
> 520|0 1 00009825 1 12|METH: Verify that the X server does not send back an
> error, event or reply.
> 520|0 1 00009825 1 13|METH: Open a connection to the X server using reversed
> byte sex.
> 520|0 1 00009825 1 14|METH: Send a valid StoreColors protocol request to the X
> server.
> 520|0 1 00009825 1 15|METH: Verify that the X server does not send back an
> error, event or reply.
> 220|0 1 0 15:03:31|PASS
> 410|0 1 1 15:03:31|IC EndTest Output
70||"VSW5TESTSUITE CASE StoreColors 4"
110|324 /tset/Xproto/strclrs/Test 13:45:17|Build Start, scenario ref 219-0
130|324 0 13:45:21|Build End, scenario ref 219-0
10|325 /tset/Xproto/strclrs/Test 13:45:21|TC Start, scenario ref 219-0
15|325 3.1-lite 4|TCM Start
400|325 1 1 13:45:26|IC Start
200|325 1 13:45:26|TP Start
520|325 1 00006709 1 1|VSW5TESTSUITE PURPOSE 1
520|325 1 00006709 1 2|Assertion StoreColors-1.(C)
520|325 1 00006709 1 3|If the default visual class for screen zero is DirectColor,
520|325 1 00006709 1 4|PseudoColor, or GrayScale: When a client sends a valid
520|325 1 00006709 1 5|StoreColors protocol request to the X server, and the colour
520|325 1 00006709 1 6|cell is read-write, then the X server does not send back an
520|325 1 00006709 1 7|error, event or reply to the client.
520|325 1 00006709 1 8|METH: Call library function testfunc() to do the following:
520|325 1 00006709 1 9|METH: DirectColor, PseudoColor, or GrayScale :
520|325 1 00006709 1 10|METH: Open a connection to the X server using native byte sex.
520|325 1 00006709 1 11|METH: Send a valid StoreColors protocol request to the X server.
520|325 1 00006709 1 12|METH: Verify that the X server does not send back an error, event or reply.
520|325 1 00006709 1 13|METH: Open a connection to the X server using reversed byte sex.
520|325 1 00006709 1 14|METH: Send a valid StoreColors protocol request to the X server.
520|325 1 00006709 1 15|METH: Verify that the X server does not send back an error, event or reply.
520|325 1 00006709 2 1|child process was terminated by signal 10 (unknown signal)
520|325 1 00006709 3 1|child process was terminated by signal 10 (unknown signal)
220|325 1 2 13:45:26|UNRESOLVED
410|325 1 1 13:45:26|IC End
400|325 2 1 13:45:26|IC Start
200|325 2 13:45:26|TP Start
520|325 2 00006709 1 1|VSW5TESTSUITE PURPOSE 2
520|325 2 00006709 1 2|Assertion StoreColors-2.(A)
520|325 2 00006709 1 3|When a client sends a valid StoreColors protocol request to
520|325 2 00006709 1 4|the X server, and the colour cell is read-only, then the X
520|325 2 00006709 1 5|server sends back a BadAccess error to the client.
520|325 2 00006709 1 6|METH: Call library function testfunc() to do the following:
520|325 2 00006709 1 7|METH: Open a connection to the X server using native byte sex.
520|325 2 00006709 1 8|METH: Send a valid StoreColors protocol request to the X server.
520|325 2 00006709 1 9|METH: Verify that the X server sends back a BadAccess error.
520|325 2 00006709 1 10|METH: Open a connection to the X server using reversed byte sex.
520|325 2 00006709 1 11|METH: Send a valid StoreColors protocol request to the X server.
520|325 2 00006709 1 12|METH: Verify that the X server sends back a BadAccess error.
520|325 2 00006709 2 1|child process was terminated by signal 10 (unknown signal)
520|325 2 00006709 3 1|child process was terminated by signal 10 (unknown signal)
220|325 2 2 13:45:27|UNRESOLVED
410|325 2 1 13:45:27|IC End
400|325 3 1 13:45:27|IC Start
200|325 3 13:45:27|TP Start
520|325 3 00006709 1 1|VSW5TESTSUITE PURPOSE 3
520|325 3 00006709 1 2|Assertion StoreColors-3.(A)
520|325 3 00006709 1 3|When a client sends an invalid StoreColors protocol request
520|325 3 00006709 1 4|to the X server, in which the length field of the request is
520|325 3 00006709 1 5|not the minimum length required to contain the request plus
520|325 3 00006709 1 6|zero or more colours, then the X server sends back a
520|325 3 00006709 1 7|BadLength error to the client.
520|325 3 00006709 1 8|METH: Call library function testfunc() to do the following:
520|325 3 00006709 1 9|METH: Open a connection to the X server using native byte sex.
520|325 3 00006709 1 10|METH: Send an invalid StoreColors protocol request to the X server with length
520|325 3 00006709 1 11|METH: one less than the minimum length required to contain the request + zero colours.
520|325 3 00006709 1 12|METH: Verify that the X server sends back a BadLength error.
520|325 3 00006709 1 13|METH: Open a connection to the X server using reversed byte sex.
520|325 3 00006709 1 14|METH: Send an invalid StoreColors protocol request to the X server with length
520|325 3 00006709 1 15|METH: one less than the minimum length required to contain the request + zero colours.
520|325 3 00006709 1 16|METH: Verify that the X server sends back a BadLength error.
520|325 3 00006709 1 17|METH:
520|325 3 00006709 1 18|METH: Open a connection to the X server using native byte sex.
520|325 3 00006709 1 19|METH: Send an invalid StoreColors protocol request to the X server with length
520|325 3 00006709 1 20|METH: one greater than the minimum length required to contain the request + n colours.
520|325 3 00006709 1 21|METH: Verify that the X server sends back a BadLength error.
520|325 3 00006709 1 22|METH: Open a connection to the X server using reversed byte sex.
520|325 3 00006709 1 23|METH: Send an invalid StoreColors protocol request to the X server with length
520|325 3 00006709 1 24|METH: one greater than the minimum length required to contain the request + n colours.
520|325 3 00006709 1 25|METH: Verify that the X server sends back a BadLength error.
520|325 3 00006709 2 1|child process was terminated by signal 10 (unknown signal)
520|325 3 00006709 3 1|child process was terminated by signal 10 (unknown signal)
520|325 3 00006709 4 1|child process was terminated by signal 10 (unknown signal)
520|325 3 00006709 5 1|child process was terminated by signal 10 (unknown signal)
220|325 3 2 13:45:28|UNRESOLVED
410|325 3 1 13:45:28|IC End
400|325 4 1 13:45:28|IC Start
200|325 4 13:45:28|TP Start
520|325 4 00006709 1 1|VSW5TESTSUITE PURPOSE 4
520|325 4 00006709 1 2|Assertion StoreColors-4.(B)
520|325 4 00006709 1 3|When a client sends an invalid StoreColors protocol request
520|325 4 00006709 1 4|to the X server, in which the length field of the request
520|325 4 00006709 1 5|exceeds the maximum length accepted by the X server, then
520|325 4 00006709 1 6|the X server sends back a BadLength error to the client.
520|325 4 00006709 1 7|Reason for omission: There is no known portable test method for this assertion
520|325 4 00006709 1 8|METH: Call library function testfunc() to do the following:
520|325 4 00006709 1 9|METH: Open a connection to the X server using native byte sex.
520|325 4 00006709 1 10|METH: Send an invalid StoreColors protocol request to the X server with length
520|325 4 00006709 1 11|METH: one greater than the maximum length accepted by the server.
520|325 4 00006709 1 12|METH: Verify that the X server sends back a BadLength error.
520|325 4 00006709 1 13|METH: Open a connection to the X server using reversed byte sex.
520|325 4 00006709 1 14|METH: Send an invalid StoreColors protocol request to the X server with length
520|325 4 00006709 1 15|METH: one greater than the maximum length accepted by the server.
520|325 4 00006709 1 16|METH: Verify that the X server sends back a BadLength error.
520|325 4 00006709 2 1|child process was terminated by signal 10 (unknown signal)
520|325 4 00006709 3 1|child process was terminated by signal 10 (unknown signal)
220|325 4 2 13:45:29|UNRESOLVED
410|325 4 1 13:45:29|IC End
80|325 0 13:45:30|TC End, scenario ref 219-0
300|326 /tset/Xproto/strclrs/Test 13:45:30|Clean Start, scenario ref 219-0
320|326 0 13:45:31|Clean End, scenario ref 219-0
70||"VSW5TESTSUITE CASE StoreNamedColor 4"
110|327 /tset/Xproto/strnmdclr/Test 13:45:31|Build Start, scenario ref 221-0
130|327 0 13:45:35|Build End, scenario ref 221-0
10|328 /tset/Xproto/strnmdclr/Test 13:45:35|TC Start, scenario ref 221-0
15|328 3.1-lite 4|TCM Start
400|328 1 1 13:45:40|IC Start
200|328 1 13:45:40|TP Start
520|328 1 00006763 1 1|VSW5TESTSUITE PURPOSE 1
520|328 1 00006763 1 2|Assertion StoreNamedColor-1.(C)
520|328 1 00006763 1 3|If the default visual class for screen zero is DirectColor,
520|328 1 00006763 1 4|PseudoColor, or GrayScale: When a client sends a valid
520|328 1 00006763 1 5|StoreNamedColor protocol request to the X server, and the
520|328 1 00006763 1 6|colour cell is read-write, then the X server does not send
520|328 1 00006763 1 7|back an error, event or reply to the client.
520|328 1 00006763 1 8|METH: Call library function testfunc() to do the following:
520|328 1 00006763 1 9|METH: DirectColor, PseudoColor, or GrayScale :
520|328 1 00006763 1 10|METH: Open a connection to the X server using native byte sex.
520|328 1 00006763 1 11|METH: Send a valid StoreNamedColor protocol request to the X server.
520|328 1 00006763 1 12|METH: Verify that the X server does not send back an error, event or reply.
520|328 1 00006763 1 13|METH: Open a connection to the X server using reversed byte sex.
520|328 1 00006763 1 14|METH: Send a valid StoreNamedColor protocol request to the X server.
520|328 1 00006763 1 15|METH: Verify that the X server does not send back an error, event or reply.
520|328 1 00006763 2 1|child process was terminated by signal 10 (unknown signal)
520|328 1 00006763 3 1|child process was terminated by signal 10 (unknown signal)
220|328 1 2 13:45:41|UNRESOLVED
410|328 1 1 13:45:41|IC End
400|328 2 1 13:45:41|IC Start
200|328 2 13:45:41|TP Start
520|328 2 00006763 1 1|VSW5TESTSUITE PURPOSE 2
520|328 2 00006763 1 2|Assertion StoreNamedColor-2.(A)
520|328 2 00006763 1 3|When a client sends a valid StoreNamedColor protocol
520|328 2 00006763 1 4|request to the X server, and the colour cell is read-only,
520|328 2 00006763 1 5|then the X server sends back a BadAccess error to the
520|328 2 00006763 1 6|client.
520|328 2 00006763 1 7|METH: Call library function testfunc() to do the following:
520|328 2 00006763 1 8|METH: Open a connection to the X server using native byte sex.
520|328 2 00006763 1 9|METH: Send a valid StoreNamedColor protocol request to the X server.
520|328 2 00006763 1 10|METH: Verify that the X server sends back a BadAccess error.
520|328 2 00006763 1 11|METH: Open a connection to the X server using reversed byte sex.
520|328 2 00006763 1 12|METH: Send a valid StoreNamedColor protocol request to the X server.
520|328 2 00006763 1 13|METH: Verify that the X server sends back a BadAccess error.
520|328 2 00006763 2 1|child process was terminated by signal 10 (unknown signal)
520|328 2 00006763 3 1|child process was terminated by signal 10 (unknown signal)
220|328 2 2 13:45:41|UNRESOLVED
410|328 2 1 13:45:41|IC End
400|328 3 1 13:45:41|IC Start
200|328 3 13:45:41|TP Start
520|328 3 00006763 1 1|VSW5TESTSUITE PURPOSE 3
520|328 3 00006763 1 2|Assertion StoreNamedColor-3.(A)
520|328 3 00006763 1 3|When a client sends an invalid StoreNamedColor protocol
520|328 3 00006763 1 4|request to the X server, in which the length field of the
520|328 3 00006763 1 5|request is not the minimum length required to contain the
520|328 3 00006763 1 6|request, then the X server sends back a BadLength error to
520|328 3 00006763 1 7|the client.
520|328 3 00006763 1 8|METH: Call library function testfunc() to do the following:
520|328 3 00006763 1 9|METH: Open a connection to the X server using native byte sex.
520|328 3 00006763 1 10|METH: Send an invalid StoreNamedColor protocol request to the X server with length
520|328 3 00006763 1 11|METH: one less than the minimum length required to contain the request.
520|328 3 00006763 1 12|METH: Verify that the X server sends back a BadLength error.
520|328 3 00006763 1 13|METH: Open a connection to the X server using reversed byte sex.
520|328 3 00006763 1 14|METH: Send an invalid StoreNamedColor protocol request to the X server with length
520|328 3 00006763 1 15|METH: one less than the minimum length required to contain the request.
520|328 3 00006763 1 16|METH: Verify that the X server sends back a BadLength error.
520|328 3 00006763 1 17|METH:
520|328 3 00006763 1 18|METH: Open a connection to the X server using native byte sex.
520|328 3 00006763 1 19|METH: Send an invalid StoreNamedColor protocol request to the X server with length
520|328 3 00006763 1 20|METH: one greater than the minimum length required to contain the request.
520|328 3 00006763 1 21|METH: Verify that the X server sends back a BadLength error.
520|328 3 00006763 1 22|METH: Open a connection to the X server using reversed byte sex.
520|328 3 00006763 1 23|METH: Send an invalid StoreNamedColor protocol request to the X server with length
520|328 3 00006763 1 24|METH: one greater than the minimum length required to contain the request.
520|328 3 00006763 1 25|METH: Verify that the X server sends back a BadLength error.
520|328 3 00006763 2 1|child process was terminated by signal 10 (unknown signal)
520|328 3 00006763 3 1|child process was terminated by signal 10 (unknown signal)
520|328 3 00006763 4 1|child process was terminated by signal 10 (unknown signal)
520|328 3 00006763 5 1|child process was terminated by signal 10 (unknown signal)
220|328 3 2 13:45:42|UNRESOLVED
410|328 3 1 13:45:42|IC End
400|328 4 1 13:45:42|IC Start
200|328 4 13:45:42|TP Start
520|328 4 00006763 1 1|VSW5TESTSUITE PURPOSE 4
520|328 4 00006763 1 2|Assertion StoreNamedColor-4.(B)
520|328 4 00006763 1 3|When a client sends an invalid StoreNamedColor protocol
520|328 4 00006763 1 4|request to the X server, in which the length field of the
520|328 4 00006763 1 5|request exceeds the maximum length accepted by the X server,
520|328 4 00006763 1 6|then the X server sends back a BadLength error to the
520|328 4 00006763 1 7|client.
520|328 4 00006763 1 8|Reason for omission: There is no known portable test method for this assertion
520|328 4 00006763 1 9|METH: Call library function testfunc() to do the following:
520|328 4 00006763 1 10|METH: Open a connection to the X server using native byte sex.
520|328 4 00006763 1 11|METH: Send an invalid StoreNamedColor protocol request to the X server with length
520|328 4 00006763 1 12|METH: one greater than the maximum length accepted by the server.
520|328 4 00006763 1 13|METH: Verify that the X server sends back a BadLength error.
520|328 4 00006763 1 14|METH: Open a connection to the X server using reversed byte sex.
520|328 4 00006763 1 15|METH: Send an invalid StoreNamedColor protocol request to the X server with length
520|328 4 00006763 1 16|METH: one greater than the maximum length accepted by the server.
520|328 4 00006763 1 17|METH: Verify that the X server sends back a BadLength error.
520|328 4 00006763 2 1|child process was terminated by signal 10 (unknown signal)
520|328 4 00006763 3 1|child process was terminated by signal 10 (unknown signal)
220|328 4 2 13:45:43|UNRESOLVED
410|328 4 1 13:45:43|IC End
80|328 0 13:45:43|TC End, scenario ref 221-0
300|329 /tset/Xproto/strnmdclr/Test 13:45:43|Clean Start, scenario ref 221-0
320|329 0 13:45:44|Clean End, scenario ref 221-0Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
This is accepted as a fault in the test suite.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 1847
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority