Bug 461860

Summary: SIGSEGV when trying to configure python interpreter
Product: [Fedora] Fedora Reporter: Jesse Keating <jkeating>
Component: eclipse-pydevAssignee: Michal Nowak <mnowak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dcantrell, madko, mnowak, ohudlick, overholt
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-26 16:49:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
error report file
none
error report file
none
Crash in org.python.pydev.ui.filetypes.FileTypesPreferencesPage.getDottedValidSourceFiles() none

Description Jesse Keating 2008-09-10 23:40:00 UTC
Created attachment 316373 [details]
error report file

When trying to setup the python interpreter in pydev preferences I get a SEGSEGV.

!SESSION 2008-09-10 15:36:13.129 -----------------------------------------------
eclipse.buildId=I20080617-2000
java.version=1.6.0_0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64 -debug -consoleLog

!ENTRY org.eclipse.update.configurator 4 0 2008-09-10 15:36:14.214
!MESSAGE /home/jkeating/.eclipse/org.eclipse.platform_3.4.0_793567567/plugins is not a valid plugins directory.
Application Started: 5909
org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
Please go to window->preferences->PyDev->Python Interpreters and configure it.
If this is not supposed to be a Python project, change the project type on the
project properties to the project you want (e.g.: Jython project).
org.python.pydev.ui.NotConfiguredInterpreterException: org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
Please go to window->preferences->PyDev->Python Interpreters and configure it.
If this is not supposed to be a Python project, change the project type on the
project properties to the project you want (e.g.: Jython project).
	at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreter(AbstractInterpreterManager.java:124)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getSystemModulesManager(ProjectModulesManager.java:191)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagers(ProjectModulesManager.java:413)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagersInvolved(ProjectModulesManager.java:506)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getCompletePythonPath(ProjectModulesManager.java:523)
	at org.python.pydev.plugin.nature.PythonPathNature.getCompleteProjectPythonPath(PythonPathNature.java:81)
	at org.python.pydev.plugin.nature.PythonNature$RebuildPythonNatureModules.run(PythonNature.java:110)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.python.pydev.core 4 4 2008-09-10 15:36:19.370
!MESSAGE org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
Please go to window->preferences->PyDev->Python Interpreters and configure it.
If this is not supposed to be a Python project, change the project type on the
project properties to the project you want (e.g.: Jython project).
!STACK 0
org.python.pydev.ui.NotConfiguredInterpreterException: org.python.pydev.ui.interpreters.PythonInterpreterManager:Interpreter is not properly configured!
Please go to window->preferences->PyDev->Python Interpreters and configure it.
If this is not supposed to be a Python project, change the project type on the
project properties to the project you want (e.g.: Jython project).
	at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreter(AbstractInterpreterManager.java:124)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getSystemModulesManager(ProjectModulesManager.java:191)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagers(ProjectModulesManager.java:413)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getManagersInvolved(ProjectModulesManager.java:506)
	at org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager.getCompletePythonPath(ProjectModulesManager.java:523)
	at org.python.pydev.plugin.nature.PythonPathNature.getCompleteProjectPythonPath(PythonPathNature.java:81)
	at org.python.pydev.plugin.nature.PythonNature$RebuildPythonNatureModules.run(PythonNature.java:110)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.python.pydev 1 1 2008-09-10 15:36:33.871
!MESSAGE Information about process of adding new interpreter:
- Opening dialog to request executable (or jar).
- Chosen interpreter file:'/usr/bin/python
- Ok, file is non-null. Getting info on:/usr/bin/python
- Beggining task:Getting libs totalWork:100
- Setting task name:Mounting executable string...
- Setting task name:Executing:  /usr/bin/python -u /usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_1.3.18/PySrc/interpreterInfo.py
- Setting task name:Making pythonpath environment... /usr/bin/python -u /usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_1.3.18/PySrc/interpreterInfo.py
- Setting task name:Making exec... /usr/bin/python -u /usr/share/eclipse/dropins/pydev/eclipse/plugins/org.python.pydev_1.3.18/PySrc/interpreterInfo.py
- Setting task name:Reading output...
- Setting task name:Waiting for process to finish.
- Success getting the info. Result:/usr/bin/python

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000000008267fd, pid=31103, tid=140551574591824
#
# Java VM: OpenJDK 64-Bit Server VM (1.6.0_0-b11 mixed mode linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x21d7fd]
#
# An error report file with more information is saved as:
# /home/jkeating/hs_err_pid31103.log
#
# If you would like to submit a bug report, please visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Comment 1 Jesse Keating 2008-09-10 23:44:48 UTC
I tried again after removing .eclipse and projects/.metadata and got another crash.   Attached.

Comment 2 Jesse Keating 2008-09-10 23:45:27 UTC
Created attachment 316376 [details]
error report file

Comment 3 Andrew Overholt 2008-09-11 13:33:02 UTC
org.python.pydev.editor.codecompletion.revisited.PythonPathHelper.isValidSourceFile should probably be added to the JIT excludes in eclipse.ini (part of the eclipse SRPM).  I'll be away for the next two weeks but won't complain if someone does this and pushes a build.

Comment 4 Michal Nowak 2008-09-16 11:12:05 UTC
Hmm, it's not reproducible for me on x86-64, nor i386, with rawhide packages. Is it still happening?

Can, you please provide versions of java-1.6.0-openjdk, eclipse-platform and eclipse-pydev?

When reproducible we can have a look at the Andrew's proposal whether is effective, or not.

Comment 5 Jesse Keating 2008-09-16 21:51:17 UTC
java-1.6.0-openjdk-1.6.0.0-0.20.b11.fc10.x86_64
eclipse-platform-3.4.0-23.fc10.x86_64
eclipse-pydev-1.3.18-1.fc10.x86_64

Still happens here.

Comment 6 Michal Nowak 2008-09-18 09:09:36 UTC
Thanks for the info.

I finally reproduced it. It happens only when selecting /usr/bin/python2 for me, which is symlink to /usr/bin/python binary (which when selected runs OK). 

Seems to be x86-64 related only, i386 runs nice.

Will have a look whether 1) is it happening with eclipse-pydev-1.3.20, 2) fix in eclipse.ini would do the trick.

Comment 7 Michal Nowak 2008-09-18 10:41:58 UTC
OK, this happens with 1.3.20 too and whether /usr/bin/python* is symlink or not.

Comment 8 Michal Nowak 2008-09-25 07:46:50 UTC
Created attachment 317664 [details]
Crash in org.python.pydev.ui.filetypes.FileTypesPreferencesPage.getDottedValidSourceFiles()

Comment 9 Michal Nowak 2008-09-25 07:53:14 UTC
I did locally what Andrew suggested 

-XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/revisited/PythonPathHelper,isValidSourceFile


but had to add this one more line, because I faced one more crash

-XX:CompileCommand=exclude,org/python/pydev/ui/filetypes/FileTypesPreferencesPage,getDottedValidSourceFiles

Attaching log.

(This is just a workaround, OpenJDK is what should be fixed I guess.)

Will build eclipse (platform) package.

Comment 10 Michal Nowak 2008-09-26 06:43:48 UTC
eclipse passed build in Koji: http://koji.fedoraproject.org/koji/buildinfo?buildID=64266

eclipse-3.4.0-24.fc10 should fix your problem, please confirm when in Rawhide.

Comment 11 Jesse Keating 2008-09-26 16:49:54 UTC
I can now setup the interpreter.  Things are looking better.