Closed AlexanderHauser closed 6 years ago
I made the logic for finding libpython a little more robust -- can you try it again? I can't help with the segfault without a stack trace at minimum.
How do you get a stack trace of a segfault in a python lib? How would you do that on linux?
I tried running lldb -- python2 -c "import vmd"
, but mac has this silly SIP that prevented it. Now that I think about it it might have worked if we had put sudo
in front. @AlexanderHauser could you also try that?
sudo lldb -- python2 -c "import vmd"
# When its opened, press "r" and then "enter"
Hi Robin and Rasmus,
thats the output after doing:
sudo lldb -- python2 -c "import vmd"
(lldb) target create "python2" Current executable set to 'python2' (x86_64). (lldb) settings set -- target.run-args "-c" "import vmd" (lldb) r Process 73985 launched: '/usr/local/bin/python2' (x86_64) Process 73985 stopped
_dyld_start dyld
_dyld_start:
-> 0x10000519c <+0>: popq %rdi
0x10000519d <+1>: pushq $0x0
0x10000519f <+3>: movq %rsp, %rbp
0x1000051a2 <+6>: andq $-0x10, %rsp
Target 0: (Python) stopped.Alex
On 27 January 2018 at 01:51, Rasmus Fonseca notifications@github.com wrote:
How do you get a stack trace of a segfault in a python dir? How would you do that on linux?
I tried running lldb -- python2 -c "import vmd", but mac has this silly SIP https://support.apple.com/en-us/HT204899 that prevented it. Now that I think about it it might have worked id we had put sudo in front. @AlexanderHauser https://github.com/alexanderhauser could you also try that?
sudo lldb -- python2 -c "import vmd"# When its opened, press "r" and then "enter"
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Eigenstate/vmd-python/issues/11#issuecomment-360944770, or mute the thread https://github.com/notifications/unsubscribe-auth/AMysdpVcPanVTHd0G_scSdy2bG9k6U-nks5tOnMPgaJpZM4Rufyz .
Hm. Thats not super informative unfortunately. Did you try
$ git pull
$ python3 setup.py build
Hi,
seems to work now after git pull !
Cheers,
Alex
On 28 January 2018 at 20:10, Rasmus Fonseca notifications@github.com wrote:
Hm. Thats not super informative. Did you try
$ git pull $ python3 setup.py build
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Eigenstate/vmd-python/issues/11#issuecomment-361087321, or mute the thread https://github.com/notifications/unsubscribe-auth/AMysdlOIJ7ccWgtP4XRdSV3sI7s2I7WEks5tPMYYgaJpZM4Rufyz .
Awesome. Thanks for testing @AlexanderHauser . Hope you get something interesting
compiles on python 2.7. However, when
import vmd
in python2.7 leads toSegmentation fault: 11