question about mecca fiber with address sanitizer
Calvin P
cloudlessapp at gmail.com
Tue Dec 15 04:42:41 UTC 2020
On Monday, 14 December 2020 at 19:10:41 UTC, Johan wrote:
> On Monday, 14 December 2020 at 19:09:16 UTC, Johan wrote:
>>
>> I worked on this, but I don't remember all the details any
>> more. I recommend making testcases and carefully check what is
>> working / what is not. We can add such tests to our testsuite.
>> See for example:
>> https://github.com/ldc-developers/ldc/blob/master/tests/sanitizers/asan_fiber.d
>
> A testcase with FakeStake enabled:
> https://github.com/ldc-developers/ldc/blob/master/tests/sanitizers/asan_fiber_main.d
Hi @Johan, Thanks for the tips.
With export ASAN_OPTIONS=detect_stack_use_after_return=1, I get
this results for
https://github.com/ldc-developers/ldc/blob/master/tests/sanitizers/asan_fiber.d.
On my Mecca style fiber, all my own unittest passed on macOS, but
on linux I get wired error at random:
https://gist.github.com/InnotSagg/9217ebd4d9b50e9b77ae8ae24b6cc51b
The error line is on function declaration, only get with linux +
nolto + norelease.
I am not sure it related with
https://github.com/dlang/dmd/pull/12012, this error stop my work
for days and I have no clue.
More information about the digitalmars-d-ldc
mailing list