-
Notifications
You must be signed in to change notification settings - Fork 64
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
Some qiskit
unit tests fail when using symengine with tcmalloc
#475
Comments
Here is a backtrace after running above example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some tests from
qiskit
work fine when usingsymengine
from PyPI but failed when usingsymengine
andpython-symengine
from the Arch Linux repos. After using [the same PKGBUILD] to rebuild the packages but just disablingtcmalloc
the tests don't crash anymore.I've reported this in
qiskit
repo (Qiskit/qiskit#12359) but they think it's asymengine
bug.Here is a minimal example that can produce the crash affecting the unit tests:
This same example works fine when
symegine
is compiled withouttcmalloc
. Curiously, if one importssymengine
in the same script, it also works (even withsymengine
withtcmalloc
):Perhaps some extra 👀 from here can help understand this issue better :) Also, can you clarify if the recommended way to create packages for distros is to use
tcmalloc
or not? Arch usestcmalloc
but also-DWITH_SYMENGINE_THREAD_SAFE=ON
. I guess it's a mixture of the flags recommended for distros and the optimized build. Is this properly tested? I noticed that the official wheel packages for PyPI, for example, do not usetcmalloc
.The text was updated successfully, but these errors were encountered: