[Bug 221337] -fsanitize=address (asan) fails on i386

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 16 10:37:39 UTC 2017


--- Comment #2 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Dimitry Andric from comment #1)
Module tls is allocated in rtld.c:allocate_module_tls().  We use the requested
alignment of the TLS initialization segment as the guaranteed alignment value.

There are several possibilities how something might not get aligned:
1. The segment has inappropriate alignment requirement, check with readelf.
2. The symbol inside the TLS segment is unaligned, so the segment alignment
does not help.  Again, check with readelf.
3. The allocate_module_tls() is buggy. Probably check this last, by inserting
rtld_printf() into rtld code.

I would bet that the cause is either 1 or 2, esp. because this sounds like a
deja vu, isn't it ?

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list