[Bug server/21658] New: gdbserver invalid use of sigprocmask() (fails to start on musl)

sourceware.bugs at andred dot net sourceware-bugzilla@sourceware.org
Thu Jun 22 15:44:00 GMT 2017


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

            Bug ID: 21658
           Summary: gdbserver invalid use of sigprocmask() (fails to start
                    on musl)
           Product: gdb
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: sourceware.bugs at andred dot net
  Target Milestone: ---

Created attachment 10213
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10213&action=edit
fix

>From the attached patch:

--- snip ---
As per POSIX,

The pthread_sigmask() and sigprocmask() functions shall fail if:

[EINVAL]
The value of the how argument is not equal to one of the defined values.

and this is how musl-libc is currently doing.
---snap---

Please see attached patch (used both in OpenEmbedded and LEDE projects) fixing
the issue.

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


More information about the Gdb-prs mailing list