[Bug libdw/30272] Unwinding multithreaded musl applications fails

mark at klomp dot org sourceware-bugzilla@sourceware.org
Thu Apr 6 22:16:07 GMT 2023


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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
This does seem a bug in musl which doesn't seem to add enough cfi as the email
thread mentioned in comment #2 says.

Note that glibc does explicitly mark the end of stack in clone in cfi by
undefining the pc:

sysdeps/unix/sysv/linux/aarch64/clone.S:        cfi_undefined (x30)
sysdeps/unix/sysv/linux/aarch64/clone3.S:       cfi_undefined (x30)
sysdeps/unix/sysv/linux/alpha/clone.S:  cfi_undefined(ra)
sysdeps/unix/sysv/linux/csky/abiv2/clone.S:     cfi_undefined (lr)
sysdeps/unix/sysv/linux/i386/clone.S:   cfi_undefined (eip);
sysdeps/unix/sysv/linux/i386/clone3.S:  cfi_undefined (eip)
sysdeps/unix/sysv/linux/loongarch/clone.S:      cfi_undefined (1)
sysdeps/unix/sysv/linux/loongarch/clone3.S:     cfi_undefined (1)
sysdeps/unix/sysv/linux/m68k/clone.S:   cfi_undefined (pc)      /* Mark end of
stack */
sysdeps/unix/sysv/linux/mips/clone.S:   cfi_undefined ($31)
sysdeps/unix/sysv/linux/nios2/clone.S:  cfi_undefined (ra)
sysdeps/unix/sysv/linux/riscv/clone.S:  cfi_undefined (ra)
sysdeps/unix/sysv/linux/s390/s390-32/clone.S:   cfi_undefined (r14)
sysdeps/unix/sysv/linux/s390/s390-64/clone.S:   cfi_undefined (r14)
sysdeps/unix/sysv/linux/x86_64/clone.S: cfi_undefined (rip);
sysdeps/unix/sysv/linux/x86_64/clone3.S:        cfi_undefined (rip)

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


More information about the Elfutils-devel mailing list