question about mecca fiber with address sanitizer

Johan j at j.nl
Tue Dec 15 19:44:35 UTC 2020


On Tuesday, 15 December 2020 at 04:42:41 UTC, Calvin P wrote:
> 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

It's not clear to me. asan_fiber.d is supposed to crash with a 
stack overflow error, so seems to work fine to me.

-Johan




More information about the digitalmars-d-ldc mailing list