[Python-bugs-list] [ python-Bugs-598160 ] import _tkinter python dumps core.

noreply@sourceforge.net noreply@sourceforge.net
Thu, 31 Oct 2002 06:05:25 -0800


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: Göran Uddeborg (goeran)
Date: 2002-10-31 15:05

Message:
Logged In: YES 
user_id=55884

There was a delay before we could continue with this.  Now
when we returned to it, we decided to try GCC 3.2, since you
mentioned potential GCC 3.1 errors.  We also upgraded tk to
8.3.3.  After that, things works. :-)

>From our point of view the problem is solved, even if we
never found what the precise error was.

----------------------------------------------------------------------

Comment By: Göran Uddeborg (goeran)
Date: 2002-09-04 23:59

Message:
Logged In: YES 
user_id=55884

We don't have any previous GCC, 2.9x-series didn't like
HP-UX 11 very much.

But to begin with I'll compile GCC 3.2 for it and see if
that makes any difference.

----------------------------------------------------------------------

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