On 01/26/2017 09:27 PM, Thorsten Glaser wrote:
>> Christian Seiler dixit:
> 
>>> Could you do me a favor, if you're on the porterbox anyway?
>>
>> … that’s a lengthy process, but I’ll do anyway…
> 
> Surprise!

Yay for nondeterminism...

> (sid_arm64-dchroot)tg@asachi:~/dietlibc-0.34~cvs20160606$ dpkg -l | fgrep 
> dietlibc
> ii  dietlibc-dev:arm64         0.34~cvs20160606-5   arm64        diet libc - 
> a libc optimized for small size
> (sid_arm64-dchroot)tg@asachi:~/dietlibc-0.34~cvs20160606$ diet -v -Os gcc 
> -nostdinc -fstack-protector-strong -static \
>> -o debian/unittests/ttt test/stdlib/tst-calloc.c \
>> -lpthread # sollte eigentlich -pthread sein AFAIK
> gcc -nostdlib -static -L/usr/lib/aarch64-linux-gnu/diet/lib-aarch64 
> -L/usr/lib/diet/lib /usr/lib/aarch64-linux-gnu/diet/lib-aarch64/start.o 
> -nostdinc -fstack-protector-strong -static -o debian/unittests/ttt 
> test/stdlib/tst-calloc.c -lpthread -isystem 
> /usr/lib/aarch64-linux-gnu/diet/include -D__dietlibc__ -Os 
> -fomit-frame-pointer /usr/lib/aarch64-linux-gnu/diet/lib-aarch64/libc.a -lgcc
> test/stdlib/tst-calloc.c: In function 'random_test':
> test/stdlib/tst-calloc.c:71:19: warning: implicit declaration of function 
> 'random' [-Wimplicit-function-declaration]
>        int n = 1 + random () % 10;
>                    ^~~~~~
> /usr/lib/aarch64-linux-gnu/diet/lib-aarch64/libc.a(vfprintf.o): In function 
> `vfprintf':
> (.text+0x5c): warning: warning: the printf functions add several kilobytes of 
> bloat.
> /usr/lib/aarch64-linux-gnu/diet/lib-aarch64/libc.a(stderr.o): In function 
> `__fflush_stderr':
> (.text+0x8): warning: warning: your code uses stdio (7+k bloat).
> (sid_arm64-dchroot)tg@asachi:~/dietlibc-0.34~cvs20160606$ 
> ./debian/unittests/ttt
> Bus error

If you have time, could you install gdb, compile the binary with
-g, and generate a backtrace? That might already help me to figure
out what's going on...

Regards,
Christian

Reply via email to