PR0007.html

LSB Problem Report

Problem Report Number 0007 (TSD.0005)
Submitter's Classification Test Suite Problem (TSD)
State Resolved
Resolution Test Suite Deficiency (TSD)
Raised 2002-07-30 14:55
Updated 2002-08-16 12:30
Published 2002-08-16 12:30
Certification Program Linux Standard Base Conformance Release 1.2
Test Suite lsb-runtime IA32 version 1.2.1-1
Test Identification /tset/LSB.os/genuts/syslog_L/T.syslog_L
Problem Summary syslog test 86 violates printf spec
Problem Text syslog test 86 core dumps on Itanium. The problem
appears to be that the test method violates the
printf specification in the SUS, with undefined
behavior.

"The format can contain either numbered argument
specifications (that is %n$ or *m$), or unnumbered
argument specifications (that is % or *), but
normally not both. ... The results of mixing
numbered and unnumbered argument specifications in
a format string are undefined."

The format string in the test contains three
numbered specifications, followed by '%d', which
is unnumbered. Here is the line in question:

(void) sprintf(*result, "%1$s%3$n %2$s %d", s1, s2, &n1,
n1);

Experiments have indicated that replacing the fourth
argument with a numbered specification (%4$d) removes
the failure.
Test Output 10|535 /tset/LSB.os/genuts/syslog_L/T.syslog_L 21:36:50|TC
Start, scenario ref 540-0
15|535 3.3-lite 1|TCM Start
...
200|535 86 21:40:50|TP Start
520|535 86 00014683 1 1|unexpected signal 11 (SIGSEGV)
received
220|535 86 2 21:40:50|UNRESOLVE

Review Information

Review Type TSMA Review
Start Date 2002-07-30 14:55
Last Updated 2002-08-14 11:28
Completed 2002-08-14 11:28
Status Complete
Review Recommendation Test Suite Deficiency (TSD)
Review Response A test suite deficiency is recommended.

Review Type SA Review
Start Date 2002-08-14 10:28
Last Updated 2002-08-15 03:20
Completed 2002-08-15 03:20
Status Complete
Review Resolution Test Suite Deficiency (TSD)
Review Conclusion A test suite deficiency is granted.

 

Copyright 2005, The Free Standards Group, All Rights Reserved