This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about tst-stack4


On 16/08/17 14:08, Adhemerval Zanella wrote:
> On 15/08/2017 18:03, Steve Ellcey wrote:
>> Currently, with top-of-tree sources this test fails for me on
>> aarch64 with the new ILP32 ABI but passes with the LP64 ABI.
>> The failure I see in nptl/tst-stack4.out is:
>>
>> Didn't expect signal from child: got `Segmentation fault'
>>

aarch64 dl-tlsdesc.S dynamic tlsdesc resolver has:

	ldr	PTR_REG (0), [x0] /* Load val member of DTV entry.  */
	cmp	x0, #TLS_DTV_UNALLOCATED
	b.eq	2f

can it be that the cmp against -1 goes wrong because
x0 is 32bit 0xffffffff ? then this would be returned
as the tls address here instead of initializing the
dtv entry.. do you see segfault at tls access with
address 0xffffffff?.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]