PR0034.html

LSB Problem Report

Problem Report Number 0034 (INT.0009)
Submitter's Classification Specification Problem (INT)
State Resolved
Resolution Interpretation (INT)
Raised 2003-09-05 23:49
Updated 2003-09-11 06:23
Published 2003-09-11 06:23
Certification Program Linux Standard Base Conformance Release 1.3
Test Suite lsb-runtime PPC32 version 1.3.6-3
Test Identification LSB.os/jump/makecontext/T.makecontext 1,3
Specification Linux Standard Base Specification for PPC32 Architecture 1.3
Location in Spec Chapter 16
Problem Summary test suite compiled against incorrect definition for ucontext_t on ppc
Problem Text An incorrect definition of ucontext_t is used for ppc.
http://www.linuxbase.org/spec/refspecs/LSB_1.3.0/PPC32/spec.html#AEN3053

typedef struct ucontext
{
unsigned long uc_flags;
struct ucontext *uc_link;
stack_t uc_stack;
mcontext_t uc_mcontext;
sigset_t uc_sigmask;
} ucontext_t;

The correct definition is:
typedef struct ucontext {
unsigned long int uc_flags;
struct ucontext *uc_link;
stack_t uc_stack;
int uc_pad[7];
mcontext_t *uc_regs;
unsigned int uc_oldsigmask[2];
int uc_pad2;
sigset_t uc_sigmask;
mcontext_t uc_mcontext;
} ucontext_t;
Test Output 400|704 1 1 22:04:14|IC Start
200|704 1 22:04:14|TP Start
520|704 1 00018356 2 1|child process was terminated by
signal 11 (SIGSEGV)
220|704 1 2 22:04:14|UNRESOLVED
410|704 1 1 22:04:14|IC End
200|704 3 22:04:14|TP Start
520|704 3 00018356 2 1|child process was terminated by
signal 11 (SIGSEGV)
220|704 3 2 22:04:14|UNRESOLVED
410|704 3 1 22:04:14|IC End

Review Information

Review Type SA Review
Start Date 2003-09-05 23:49
Last Updated 2003-09-11 06:22
Completed 2003-09-11 06:22
Status Complete
Review Resolution Interpretation (INT)
Review Conclusion This is an agreed error in the specification, and
will be fixed in an errata. An interpretation is granted.

 

Copyright 2005, The Free Standards Group, All Rights Reserved