Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SystemC simulations cause signal 11 when run with addresssanitizer #27

Open
tkuyucu-nordicsemi opened this issue Feb 17, 2022 · 3 comments

Comments

@tkuyucu-nordicsemi
Copy link

All simulations end with the tracer catching a signal 11 when built and run with the option -fsanitize=address
For example the async_reset test.

        Copyright (c) 1996-2017 by all Contributors,
        ALL RIGHTS RESERVED
SystemC Simulation
==1301179==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff0c98e000; bottom 0x7fa99d1fe000; size: 0x00556f790000 (366942420992)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189

Success
Tracer caught signal 11: addr=0x7fa99d353000 pc=0x7fa9a07b88b0 sp=0x7fa99c3fdca0
==1301179==LeakSanitizer has encountered a fatal error.
==1301179==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==1301179==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
End of SystemC Simulation

I also have -std=c++11 in my ccflags.

@maehne
Copy link
Contributor

maehne commented Apr 1, 2022

@aut0 and @janweinstock: Could you maybe comment on this issue, as you contributed PRs, which were considered by the LWG for inclusion to the next proof-of-concept release?

@aut0
Copy link
Contributor

aut0 commented Apr 2, 2022

I think this is expected, because the version in this github repo does not contain the patches that were merged upstream. You can manually fix this by applying these patches for this version:
#19

@maehne
Copy link
Contributor

maehne commented Apr 2, 2022

Thanks for the feedback @aut0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants