[Python-bugs-list] [ python-Bugs-416944 ] 2.0: cum sympt; w/gdb bktr; OBSD2.8.

noreply@sourceforge.net noreply@sourceforge.net
Tue, 24 Jul 2001 00:14:13 -0700


Bugs item #416944, was opened at 2001-04-17 21:03
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=416944&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 3
Submitted By: Brad Allen (valaulmo)
Assigned to: Martin v. Löwis (loewis)
Summary: 2.0: cum sympt; w/gdb bktr; OBSD2.8.

Initial Comment:
Reverted to Python 2.0 + all patches on patch pages,
still with OpenBSD 2.8.  Only non-default module set is
zlib (needed for Mojo Nation according to the docs). 
System is Pentium 133MHz.

Ok, I'm getting better at this now.  This time, I ran
GDB on it, since I noticed that one of the bugs may
have cumulative dependent symptoms.  Also, I'm typing
this bug report into the web browser so that it wraps
correctly (I'll cross my fingers that it doesn't crash
though; that's why I prefer Emacs; I suppose I could
try SSL W3 Emacs but that is hard; not now.)

Here is the gdb output where it did die:

[... lots of tests ...]
test_long

Program received signal SIGSEGV, Segmentation fault.
0x4017bc2f in _thread_machdep_switch ()
(gdb) bt
#0  0x4017bc2f in _thread_machdep_switch ()
#1  0x401c8308 in _sigq_check_reqd ()
#2  0x4017ba66 in _thread_kern_sig_undefer ()
#3  0x4017eb68 in pthread_cond_signal ()
#4  0x1510d in PyThread_release_lock (lock=0x27c320) at
thread_pthread.h:344
#5  0x43006 in eval_code2 (co=0x3c7d80,
globals=0x3c104c, locals=0x0, 
    args=0x25cd58, argcount=2, kws=0x25cd60, kwcount=0,
defs=0x0, defcount=0, 
    owner=0x0) at ceval.c:617
#6  0x450b3 in eval_code2 (co=0x3c7f40,
globals=0x3c104c, locals=0x0, 
    args=0x1a4d60, argcount=1, kws=0x1a4d64, kwcount=0,
defs=0x0, defcount=0, 
    owner=0x0) at ceval.c:1850
#7  0x450b3 in eval_code2 (co=0x4221c0,
globals=0x3c104c, locals=0x0, 
    args=0x39a140, argcount=0, kws=0x39a140, kwcount=0,
defs=0x29c1b8, 
    defcount=1, owner=0x0) at ceval.c:1850
#8  0x450b3 in eval_code2 (co=0x41c900,
globals=0x3c104c, locals=0x3c104c, 
    args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, owner=0x0)
    at ceval.c:1850
#9  0x42625 in PyEval_EvalCode (co=0x41c900,
globals=0x3c104c, locals=0x3c104c)
    at ceval.c:319
#10 0xacff in PyImport_ExecCodeModuleEx
(name=0xdfbfd180 "test_long", 
    co=0x41c900, pathname=0xdfbfcce0
"./Lib/test/test_long.py") at import.c:495
#11 0xb30a in load_source_module (name=0xdfbfd180
"test_long", 
    pathname=0xdfbfcce0 "./Lib/test/test_long.py",
fp=0x401fa83c)
    at import.c:758
#12 0xbc23 in load_module (name=0xdfbfd180 "test_long",
fp=0x401fa83c, 
    buf=0xdfbfcce0 "./Lib/test/test_long.py", type=1)
at import.c:1227
#13 0xc8fb in import_submodule (mod=0x1140fc,
subname=0xdfbfd180 "test_long", 
    fullname=0xdfbfd180 "test_long") at import.c:1755
#14 0xc4ca in load_next (mod=0x1140fc, altmod=0x1140fc,
p_name=0xdfbfd58c, 
    buf=0xdfbfd180 "test_long", p_buflen=0xdfbfd17c) at
import.c:1611
#15 0xc142 in import_module_ex (name=0x0,
globals=0x14624c, locals=0x1a538c, 
    fromlist=0x29c02c) at import.c:1462
---Type <return> to continue, or q <return> to quit---
#16 0xc277 in PyImport_ImportModuleEx (name=0x19f0d4
"test_long", 
    globals=0x14624c, locals=0x1a538c,
fromlist=0x29c02c) at import.c:1503
#17 0x3ce47 in builtin___import__ (self=0x0,
args=0x3b198c) at bltinmodule.c:31
#18 0x4668d in call_builtin (func=0x141070,
arg=0x3b198c, kw=0x0)
    at ceval.c:2650
#19 0x46507 in PyEval_CallObjectWithKeywords
(func=0x141070, arg=0x3b198c, 
    kw=0x0) at ceval.c:2618
#20 0x453ac in eval_code2 (co=0x1cc240,
globals=0x14624c, locals=0x0, 
    args=0x15fdcc, argcount=5, kws=0x15fde0, kwcount=0,
defs=0x1c4738, 
    defcount=1, owner=0x0) at ceval.c:1951
#21 0x450b3 in eval_code2 (co=0x1c9f00,
globals=0x14624c, locals=0x0, 
    args=0x140f44, argcount=0, kws=0x140f44, kwcount=0,
defs=0x18d918, 
    defcount=10, owner=0x0) at ceval.c:1850
#22 0x450b3 in eval_code2 (co=0x1c9f80,
globals=0x14624c, locals=0x14624c, 
    args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, owner=0x0)
    at ceval.c:1850
#23 0x42625 in PyEval_EvalCode (co=0x1c9f80,
globals=0x14624c, locals=0x14624c)
    at ceval.c:319
#24 0x1272f in run_node (n=0x155400, 
    filename=0xdfbfdb5a "./Lib/test/regrtest.py",
globals=0x14624c, 
    locals=0x14624c) at pythonrun.c:886
#25 0x126e8 in run_err_node (n=0x155400, 
    filename=0xdfbfdb5a "./Lib/test/regrtest.py",
globals=0x14624c, 
    locals=0x14624c) at pythonrun.c:874
#26 0x126c4 in PyRun_FileEx (fp=0x401fa7e4, 
    filename=0xdfbfdb5a "./Lib/test/regrtest.py",
start=257, globals=0x14624c, 
    locals=0x14624c, closeit=1) at pythonrun.c:866
#27 0x11cfe in PyRun_SimpleFileEx (fp=0x401fa7e4, 
    filename=0xdfbfdb5a "./Lib/test/regrtest.py",
closeit=1) at pythonrun.c:579
#28 0x118f3 in PyRun_AnyFileEx (fp=0x401fa7e4, 
    filename=0xdfbfdb5a "./Lib/test/regrtest.py",
closeit=1) at pythonrun.c:459
#29 0x24bb in Py_Main (argc=2, argv=0xdfbfdac8) at
main.c:289
---Type <return> to continue, or q <return> to quit---
#30 0x17b5 in main (argc=4, argv=0xdfbfdac8) at
python.c:10
(gdb) 

Once again, I will attach the config.* (config.cache,
etc.) to this in a file.

Brad Allen <Ulmo@Q.Net>

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

>Comment By: Martin v. Löwis (loewis)
Date: 2001-07-24 00:14

Message:
Logged In: YES 
user_id=21627

There is a known bug on some BSD variants that causes 
problems when mixing both the threaded and the nonthreaded 
libc. So unless it can be established that this is not the 
cause, or unless other information on this bug becomes 
available, I close this as "won't fix".


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

Comment By: Martin v. Löwis (loewis)
Date: 2001-06-02 03:21

Message:
Logged In: YES 
user_id=21627

Without access to an OpenBSD machine, this is difficult to 
analyze. I agree with Jeremy that it looks like a bug in 
your C library and/or operating system, and I also 
recommend to build Python with --disable-threads.


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

Comment By: Martin v. Löwis (loewis)
Date: 2001-04-24 10:44

Message:
Logged In: YES 
user_id=21627

To me, this likes like a bug in the multithread support of
your operating system. To work around this bug, you should
configure python with --disable-threads.

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=416944&group_id=5470