[Python-bugs-list] [ python-Bugs-598160 ] import _tkinter python dumps core.
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 04 Sep 2002 01:53:45 -0700
Bugs item #598160, was opened at 2002-08-21 11:33
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=598160&group_id=5470
Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 3
Submitted By: Göran Uddeborg (goeran)
Assigned to: Nobody/Anonymous (nobody)
Summary: import _tkinter python dumps core.
Initial Comment:
We are trying to build python on a HP-UX 11.00 using gcc
3.1. But when it comes to the stage when it tries to
load _tkinter i.e.
import _tkinter
python dumps core.
running gdb on the core file gives us that it get's a
segfault on the line Python/import.c:210 i.e
if (interp->modules == NULL)
and yes, interp is null...
any clue how to continue?
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-09-04 10:53
Message:
Logged In: YES
user_id=21627
I would recommend to trace the value of
_PyThreadState_Current, perhaps by adding printfs every time
this variable changes, and is accessed.
I think it is impossible to create a thread state that has a
NULL interp, so when you find that the thread state is the
same all the time, you should then try to find out where
->interp is cleared (do you have watchpoints in gdb on HP-UX?)
Somebody might be overwriting memory.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2002-09-03 21:31
Message:
Logged In: YES
user_id=6380
Things like this are notoriously hard to debug.
Perhaps GCC 3.1 has a bug (it's rather new, and HP-UX is an
infrequently used platform for this compiler).
Could you try with an older GCC version? I don't think I've
seen this report before.
Are there problems with any other modules? Does the test
suite run successfully?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=598160&group_id=5470