Christian Buttner

Results 89 comments of Christian Buttner

The macOS linker issue with `-fsanitize=address` is fixed by passing the correct `-resource-dir` to the system linker. For example for me it would be `-resource-dir=/opt/homebrew/opt/llvm/lib/clang/17`. I don't know what the...

I don't know how `-fsanitize=...` selects the libraries to link, but no. The problem is more how to get the library path.

> It seems to depend. For example, if I look into: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/lib/darwin on my machine I have a bunch of asan dylibs. Yeah those are not ABI compatible anymore though.

Windows *almost* looks good now with the new asan pass, however you still need to add this to not exit with an `odr-violation` error on startup: ```c fn ZString __asan_default_options()...

I've added a warning for the odr-violation issue on Windows since I can't think of a better solution. Other than that it's pretty close to being done on my end....

This is ready for review @lerno, I'd like for this to be merged soon.

I squashed it and preserved the commit history in another branch.

This can go completely unnoticed, in fact it almost did for me, especially when the alignment just happens to match up. Then one day it just crashes and you're left...

I haven't encountered any issues so far.