[ python-Bugs-971213 ] another threads+readline+signals nasty
SourceForge.net
noreply at sourceforge.net
Sat Aug 7 23:41:45 CEST 2004
Bugs item #971213, was opened at 2004-06-11 16:30
Message generated for change (Comment added) made by mwh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=971213&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Nobody/Anonymous (nobody)
Summary: another threads+readline+signals nasty
Initial Comment:
python -c "import time, readline, thread;
thread.start_new_thread(raw_input, ()); time.sleep(2)"
Segfaults on ^C<return>
Fails on Linux, freebsd.
On linux (FC - using kernel 2.6.1, glibc 2.3.3, gcc-3.3.3)
(gdb) where
#0 0x002627a2 in _dl_sysinfo_int80 () from
/lib/ld-linux.so.2
#1 0x008172b1 in ___newselect_nocancel () from
/lib/tls/libc.so.6
#2 0x0011280b in time_sleep (self=0x0, args=0xb7fe17ac)
at Modules/timemodule.c:815
on FreeBSD 5.2.1-RC, a different error.
Fatal error 'longjmp()ing between thread contexts is
undefined by POSIX 1003.1' at line 72 in file
/usr/src/lib/libc_r/uthread/uthread_jmp.c (errno = 2)
Abort (core dumped)
----------------------------------------------------------------------
>Comment By: Michael Hudson (mwh)
Date: 2004-08-07 22:41
Message:
Logged In: YES
user_id=6656
Bah, this still segfaults with CVS head.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2004-06-21 11:45
Message:
Logged In: YES
user_id=6656
Can you try the patch that's *now* in 960406? It seems to help
for me (but I really would rather not think too hard about this!).
----------------------------------------------------------------------
Comment By: Michal Pasternak (mpasternak)
Date: 2004-06-11 16:43
Message:
Logged In: YES
user_id=799039
readline used on FreeBSD was readline-4.3pl5; everything else: gcc 3.3.3,
ncurses, libc were standard from 5.2.1.
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2004-06-11 16:39
Message:
Logged In: YES
user_id=29957
The patch in #960406 doesn't help here.
The FC test system also has readline-4.3, if it helps, as
does the FreeBSD box. It apparently doesn't crash on OSX.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2004-06-11 16:38
Message:
Logged In: YES
user_id=6656
Hmm. Doesn't crash on OS X. Messes the terminal up good and
proper, though.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=971213&group_id=5470
More information about the Python-bugs-list
mailing list