NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/60469: assertion "ALIGNED_P(q, obj->tlsalign)" failed: file "/usr/src/libexec/ld.elf_so/tls.c", line 333
>Number: 60469
>Category: bin
>Synopsis: assertion "ALIGNED_P(q, obj->tlsalign)" failed: file "/usr/src/libexec/ld.elf_so/tls.c", line 333
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 20 13:30:00 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11
>Organization:
The NetTLS Misalignment, Inc.
>Environment:
>Description:
With ld.elf_so built with DEBUG, thread-local storage alignment
sometimes goes awry.
Reported by ryoon@ on current-users:
https://mail-index.NetBSD.org/current-users/2026/07/20/msg047745.html
>How-To-Repeat:
$ dig txt _spf.google.com
assertion "ALIGNED_P(q, obj->tlsalign)" failed: file "/home/riastradh/netbsd/current/src/libexec/ld.elf_so/tls.c", line 333
[1] Abort trap (core dumped) LD_DEBUG=1 dig txt _spf.google.com.
$ LD_DEBUG=1 dig txt _spf.google.com
...
initializing Thread Local Storage for main thread
_rtld_tls_static_space 2576
lwp 3791 tls tcb 0x787463e63a90
/usr/bin/dig: [lwp 3791] tls dtv 0x787463e63910-0x787463e63910 index 1 offset 180 alignment 80 tlsinit 0x847a80 BAD ALIGNMENT
assertion "ALIGNED_P(q, obj->tlsalign)" failed: file "/home/riastradh/netbsd/current/src/libexec/ld.elf_so/tls.c", line 333
[1] Abort trap (core dumped) LD_DEBUG=1 dig txt _spf.google.com.
(Note: `alignment 80' is in hexadecimal.)
>Fix:
Yes, please!
Home |
Main Index |
Thread Index |
Old Index