|
From: Tom H. <to...@co...> - 2015-01-02 19:24:45
|
On 02/01/15 19:15, "João M. S. Silva" wrote: > Spoke too early. Sorry for the noise. > > -fsanitize=address does not seem to work on armv7l, it seems to crash on > runtime (I thought it worked on compile-time only): > > ==1280== ERROR: AddressSanitizer: stack-buffer-overflow on address > 0xbe99efb0 at pc 0x29483 bp 0xbe99ef38 sp 0xbe99ef3c > WRITE of size 4 at 0xbe99efb0 thread T0 > #0 0x29481 (/home/ubuntu/fidelio/software/test+0x29481) > #1 0x3376d (/home/ubuntu/fidelio/software/test+0x3376d) > (...) > #251 0x3376d (/home/ubuntu/fidelio/software/test+0x3376d) > #252 0x3376d (/home/ubuntu/fidelio/software/test+0x3376d) > ==1280== AddressSanitizer CHECK failed: > ../../../../src/libsanitizer/asan/asan_report.cc:250 "((name_end)) != > (0)" (0x0, 0x0) > #0 0xb594dc61 (/usr/lib/arm-linux-gnueabihf/libasan.so.0.0.0+0xdc61) > #1 0xb5953353 (/usr/lib/arm-linux-gnueabihf/libasan.so.0.0.0+0x13353) > (...) > #254 0x3376d (/home/ubuntu/fidelio/software/test+0x3376d) > > Or is this the expected behavior? That's not a "crash" it's address sanitizer telling you it has found a problem in your program. Unlike valgrind it stops as soon as it finds a problem - in this case you have overflowed a buffer on the stack. Tom -- Tom Hughes (to...@co...) http://compton.nu/ |