public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nptl/14583] New: Incorrect prototype for sigsetjmp
@ 2012-09-14 14:31 law at redhat dot com
  2012-09-14 20:39 ` [Bug nptl/14583] " law at redhat dot com
  2014-06-17  4:29 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: law at redhat dot com @ 2012-09-14 14:31 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug nptl/14583] Incorrect prototype for sigsetjmp
  2012-09-14 14:31 [Bug nptl/14583] New: Incorrect prototype for sigsetjmp law at redhat dot com
@ 2012-09-14 20:39 ` law at redhat dot com
  2014-06-17  4:29 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: law at redhat dot com @ 2012-09-14 20:39 UTC (permalink / raw)
  To: glibc-bugs

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

law at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from law at redhat dot com 2012-09-14 20:39:23 UTC ---
Fixed by adding changing pthread.h's copy to use __THROWNL rather than __THROW.

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug nptl/14583] Incorrect prototype for sigsetjmp
  2012-09-14 14:31 [Bug nptl/14583] New: Incorrect prototype for sigsetjmp law at redhat dot com
  2012-09-14 20:39 ` [Bug nptl/14583] " law at redhat dot com
@ 2014-06-17  4:29 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-17  4:29 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-17  4:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-14 14:31 [Bug nptl/14583] New: Incorrect prototype for sigsetjmp law at redhat dot com
2012-09-14 20:39 ` [Bug nptl/14583] " law at redhat dot com
2014-06-17  4:29 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).