This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18124] New: hppa: setcontext erroneously returns -1 as exit code for last constant.


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

            Bug ID: 18124
           Summary: hppa: setcontext erroneously returns -1 as exit code
                    for last constant.
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: carlos at redhat dot com
                CC: drepper.fsp at gmail dot com

The hppa implementation of setcontext had several flaws:

* It called _exit instead of exit, avoiding the registered exit handlers that
should be run. The standard says nothing about avoiding them.

* It should use HIDDEN_JUMPTARGET(exit) to avoid a PLT slot usage.

* It should call __sigprocmask to avoid another PLT slot usage.

* it should return 0 as the exit code when the last linked-to context
completes.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]