[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-29 Thread Francesc Elies
Francesc Elies added the comment: I am closing this one, bad-free is in this case a false positive. Starting python and loading a dll which was linked with asan is incorrect. One should asan-rt as earyly as possible, in order to do that in linux one should use LD_PRELOAD but in windows it's

[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-25 Thread Francesc Elies
Francesc Elies added the comment: I tested the same script in ubuntu and got the following. ==1361==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD. While on windows he does not complain

[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-19 Thread Francesc Elies
New submission from Francesc Elies : Hi, Context === we are compiling a dll with clang and it's address sanitizer and loading it via cffi, at random spots ASAN complains with bad-free. ==15100==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed