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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-08-04
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
This comes from the following glibc commit:

commit f779b1efb35fe141e47952af3ac7f0540acca401
Author: Adhemerval Zanella <adhemerval.zane...@linaro.org>
Date:   Mon Dec 7 16:21:55 2020 -0300

    nptl: Implement raise in terms of pthread_kill

    Now that pthread_kill is provided by libc.so it is possible to
    implement the generic POSIX implementation as
    'pthread_kill(pthread_self(), sig)'.

    For Linux implementation, pthread_kill read the targeting TID from
    the TCB.  For raise, this it not possible because it would make raise
    fail when issue after vfork (where creates the resulting process
    has a different TID from the parent, but its TCB is not updated as
    for pthread_create).  To make raise use pthread_kill, it is make
    usable from vfork by getting the target thread id through gettid
    syscall.

    Checked on x86_64-linux-gnu and aarch64-linux-gnu.

Before raise simply called the (tg)kill syscall directly. Now we have an extra
frame in the backtrace.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
  • [Bug libelf/2... mliska at suse dot cz via Elfutils-devel
    • [Bug lib... richard.purdie at linuxfoundation dot org via Elfutils-devel
    • [Bug lib... mark at klomp dot org via Elfutils-devel
    • [Bug lib... mark at klomp dot org via Elfutils-devel
    • [Bug lib... richard.purdie at linuxfoundation dot org via Elfutils-devel
    • [Bug lib... mark at klomp dot org via Elfutils-devel
    • [Bug lib... richard.purdie at linuxfoundation dot org via Elfutils-devel
    • [Bug lib... mark at klomp dot org via Elfutils-devel
    • [Bug lib... fweimer at redhat dot com via Elfutils-devel

Reply via email to