[Bug 8061] print 64 bit data in pthread always becomes strange data

bugzilla at busybox.net bugzilla at busybox.net
Fri May 8 02:48:33 UTC 2015


https://bugs.busybox.net/show_bug.cgi?id=8061

--- Comment #6 from BigZJK <zhao.junkui at zte.com.cn> 2015-05-08 02:48:33 UTC ---
(In reply to comment #5)
> Created attachment 6021 [details]
> test file
> 
> Actually there are two strange places.
> Refer to our project code, I wrote two test code.
> First test the Strtoull API with 16 hex, it can run, but the result is not
> correct,whatever the num changes, Strtoull always return 0x7fffffffffffffff.
> Second test printf code in Pthread, but the code throws a segmentation fault(i
> can`t understand why,the same code of creating pthread can run in our project,
> althrough the printf is always strange)?
> The test platform X86-64, os:ubuntu.
> Test code in the accessory

sorry, now we resolved it, maybe it`s not uClibc`s problem, but the complier
gcc:
in my project, when i create a pthread, it`s stack was not 8b aligned, then the
result always become strange.Just keep the stack base address 8b aligned, it`s
ok.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list