This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: import _tkinter python dumps core.
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: goeran, gvanrossum, loewis
Priority: low Keywords:

Created on 2002-08-21 09:33 by goeran, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (6)
msg12087 - (view) Author: Göran Uddeborg (goeran) Date: 2002-08-21 09:33
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?
msg12088 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-09-03 19:31
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?
msg12089 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-09-04 08:53
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.
msg12090 - (view) Author: Göran Uddeborg (goeran) Date: 2002-09-04 21:59
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.
msg12091 - (view) Author: Göran Uddeborg (goeran) Date: 2002-10-31 14:05
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.
msg12092 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-10-31 15:10
Logged In: YES 
user_id=6380

OK, closing.
History
Date User Action Args
2022-04-10 16:05:36adminsetgithub: 37068
2002-08-21 09:33:34goerancreate