-
Notifications
You must be signed in to change notification settings - Fork 20
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
Segmentation fault (core dumped) #117
Comments
Hi, Could you also the full segmentation fault you got ? (If there is anything else) |
Yes, I tried to load it in Python (import cymetric), or I try to run it from the terminal (e.g. cymetric cyclus.sqlite -l). It only says Segmentation fault (core dumped). |
Thanks for reporting @maltefgoettsche
Yes, it could. Also,
|
Thanks for the response!
1.5
I'm not sure what the Python bindings are. I installed Cyclus from source (with Baptiste's help, actually, as there were several issues), using "python install.py."
No, same error.
Not yet. Can I install Cymetric from conda if I installed Cyclus from source? If somehow possible, I would like to keep my Cyclus installation from source, as I may need to make changes to the source code at some point in the future.
I hope I'm doing this right. I followed the instruction from here to get the backtrace. The output is:
|
Can you share the stdout of installing cyclus, please? It prints a bunch of diagnostic information at the top that can help us debug.
That is bad
Because cymetric is in Python you need to do something like the following to run through gdb: $ gdb python
(gdb) run /home/maltefgoettsche/.local/bin/cymetric -h
Segmentation Error
(gdb) bt |
I (successfully) re-compiled CYCLUS to get the log, which I attach: Interestingly, importing Cymetric into Python now gives Running cymetric from the terminal, I still get Segmentation fault (core dumped). (gdb) run /home/maltefgoettsche/.local/bin/cymetric -h gives me
(gdb) bt gives me
|
OK, great. It looks like the segfault it coming from PyNE, not cymetric or cyclus, which you seem to have compiled correctly with Python bindings. Try uninstalling PyNE or recompiling PyNE or eremoving PyNE from the cymetric imports. |
Recompiling PyNE did not change anything. Uninstalling PyNE does the job, thanks a lot!! Thanks so much, |
Yeah I think this is a PyNE issue on some level. Cyclus duplicates PyNE's C++ API. So it is possible that, due to link optimization, the Cyclus version of some of the data management is getting read in instead of the current version. I have been able to have both PyNE and Cyclus installed at the same time for a while now so this is a new one on me. I am not sure what the strategy should be going forward. |
No problem, thanks a lot for your help. |
I might try to uninstall tcmalloc and recompile cyclus. It is optional anyway. |
FWIW I have had an incredibly hard time getting tcmalloc working in the past. I have abandoned it personally. |
Great - this resolved that issue. So everything works now, except for not being able to use both Pyne and Cymetric. But this should be ok. Thanks for your help! |
Yeah, PyNE needs some love these days. |
@maltefgoettsche do you still experience those issue if not any idea how you fixed it ? |
I haven't installed PyNE since then (as I haven't needed it so far). |
Dear all,
I tried to compile the 1.5.0 version of Cymetric on Ubuntu 16.04. I get "Segmentation fault (core dumped)" when trying to run it. Running "nosetests -w tests/" gives me "src/tcmalloc.cc:278] Attempt to free invalid pointer 0x3331e80 Aborted (core dumped)".
~/.local/lib/python2.7/site-packages/cymetric contains:
Any ideas how to fix this? I had previously tried to install Cymetric without success. Could the issue also be related to me not having cleaned up the previous installation attempt properly?
I also include the log from the Cymetric installations below.
Thanks,
Malte
install.log:
The text was updated successfully, but these errors were encountered: