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

Segmentation fault (core dumped) on import #46

Open
DeckardSG opened this issue Jun 20, 2017 · 7 comments
Open

Segmentation fault (core dumped) on import #46

DeckardSG opened this issue Jun 20, 2017 · 7 comments

Comments

@DeckardSG
Copy link

I am obtaining a "Segmentation fault (core dumped)" whenever I tried to import boilerpipe. It just happened in all my installations suddenly, as they were working fine just a few hours ago. The segmentation fault occurs just by typing "import boilerpipe" on Ubuntu 16.04.2 LTS machines. It seems to work fine on MacOS 10.11. I tried to double the heap memory on JVM but it did not work. Any suggestions?

@tuxdna
Copy link
Collaborator

tuxdna commented Jun 20, 2017

"Segmentation fault (core dumped)" usually means that the process crashed due to SIGSEGV. In case of Python, it could be that

  • Interpreter crashed ( very unlikely )
  • or some module crashed

In case of import boilerpipe, the error could happen due to the code called from init.py

This also includes the jpype module. I suspect that it is the jpype module that is causing the failure.

Can you share what versions of jpype and Java you are running ?

In [1]: import jpype

In [2]: jpype.__version__
Out[2]: '0.6.2'

@DeckardSG
Copy link
Author

I also suspected it, but import jpype had no apparent problems. My versions are:
jpype = 0.6.2
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

@tuxdna
Copy link
Collaborator

tuxdna commented Jun 20, 2017

@DeckardSG I have the same versions for both jpype and Java. To gain more insight, can you share the output of following command in a pastebin:

$ python -v -c 'import boilerpipe; print "DONE"'

@DeckardSG
Copy link
Author

Here it is:
https://pastebin.com/Tzex6EiE

I have started a new project from scratch in another machine and it seems to work, however the old ones are still showing the segfault.

Thanks for your time and sorry for the trouble.

@ghost
Copy link

ghost commented Nov 4, 2017

Same here. I have the same version of jpype and python crashes on first import line.
Python 3.6
Java 1.8.0_152-b16

@ghost
Copy link

ghost commented Nov 5, 2017

Same on another machine. Compilation goes well but importing boilerpipe causes python3 to crash
Any idea how to progress with that?

@tuxdna
Copy link
Collaborator

tuxdna commented Nov 6, 2017

@rubimazaki It is unlikely for me to find the root cause of this Seg Fault, because I only have Fedora 25 machine -- and it works for me. Could you try it once more and share your OS details, the commands used and logs ?

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