Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2017 10:37:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 221337] -fsanitize=address (asan) fails on i386
Message-ID:  <bug-221337-8-jYHwejYzJB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-221337-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-221337-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221337

--- Comment #2 from Konstantin Belousov <kib@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221337-8-jYHwejYzJB>