Closed ramosian-glider closed 9 years ago
ASan increases the size of stack frames. In your case, the stack size is at least:
0x0000000000406d4e <+14>: sub $0xf42590,%rsp
that is, about 16Mb, so probably you're just hitting the stack size limit.
Reported by samsonov@google.com
on 2012-08-07 09:36:30
This happens because ASan adds redzones to the stack variables, which increases the
footprint. In order to make your program work with ASan you can increase the system
limit on the main thread stack:
$ ulimit -s 81920
$ ./test
If your program needs more stack space for the child threads, refer to pthread_attr_setstacksize().
Reported by ramosian.glider
on 2012-08-07 09:45:48
WontFix
Great, thanks for the explanation!
Reported by peter.waller
on 2012-08-07 12:24:27
Adding Project:AddressSanitizer as part of GitHub migration.
Reported by ramosian.glider
on 2015-07-30 09:12:59
Originally reported on Google Code with ID 98
Reported by
peter.waller
on 2012-08-07 09:20:54