[Bug nptl/14583] New: Incorrect prototype for sigsetjmp

law at redhat dot com sourceware-bugzilla@sourceware.org
Fri Sep 14 14:31:00 GMT 2012


http://sourceware.org/bugzilla/show_bug.cgi?id=14583

             Bug #: 14583
           Summary: Incorrect prototype for sigsetjmp
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
        AssignedTo: unassigned@sourceware.org
        ReportedBy: law@redhat.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


pthread.h declares __sigsetjmp as:

extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __THROW;

The problem is __sigsetjmp needs to be marked as non-leaf as is the case in
setjmp.h:

extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask)
__THROWNL;

Failure to mark __sigsetjmp correctly can result in GCC eliminating stores that
are not dead.  See:

https://bugzilla.redhat.com/show_bug.cgi?id=857236

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list