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 2.3.4 Valgrind Uninitialised Value Errors #89

Open
abnashkb opened this issue Jul 17, 2024 · 1 comment
Open

SystemC 2.3.4 Valgrind Uninitialised Value Errors #89

abnashkb opened this issue Jul 17, 2024 · 1 comment

Comments

@abnashkb
Copy link

Running Valgrind on a project using SystemC 2.3.4 reports many uninitialised value errors related to the SystemC library. The first three (cleaned up) error messages are as follows. Similar messages repeat and propagate into other SystemC functions:

Use of uninitialised value of size 8
at ________: ??? (in ______/systemc-2.3.4/build/src/libsystemc.so.2.3.4)
Uninitialised value was created by a stack allocation
at ________: ??? (in ______/systemc-2.3.4/build/src/libsystemc.so.2.3.4)

Use of uninitialised value of size 8
at ______: sc_cor_qt_wrapper (in ______/systemc-2.3.4/build/src/libsystemc.so.2.3.4)
Uninitialised value was created by a stack allocation
at ______: ??? (in ______/systemc-2.3.4/build/src/libsystemc.so.2.3.4)

Use of uninitialised value of size 8
at ______: sc_core::sc_thread_cor_fn(void*) (in ______/systemc-2.3.4/build/src/libsystemc.so.2.3.4)
Uninitialised value was created by a stack allocation
at ______: ??? (in______/systemc-2.3.4/build/src/libsystemc.so.2.3.4)

Is this a known issue in SystemC 2.3.4? How can this be resolved aside from updating the SystemC version?

@maehne
Copy link
Contributor

maehne commented Jul 17, 2024

A similar issue involving Valgrind was raised in #88 and also in the past (issue OSCI-WG/systemc#134). However, to understand whether it is the same issue, we need a reproducer for your specific problem that does not involve your specific application? Could you please also indicate the configuration (OS, compiler, used build system, parameters used for building Systemc, etc.)?

Please, check whether the issue is reproduceable with the last released SystemC PoC version 3.0.0 and ideally the HEAD of this repository.

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

2 participants