[Python-bugs-list] [ python-Bugs-660476 ] readline and threads crashes

noreply@sourceforge.net noreply@sourceforge.net
Tue, 31 Dec 2002 11:20:47 -0800


Bugs item #660476, was opened at 2002-12-31 19:20
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=660476&group_id=5470

Category: Threads
Group: Python 2.2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Stone (mbrierst)
Assigned to: Nobody/Anonymous (nobody)
Summary: readline and threads crashes

Initial Comment:

Python 2.2.2 with linux kernel 2.2.17
paste into the interpreter:


import readline, rlcompleter
readline.parse_and_bind('tab: complete')
import thread
import math
def starter(a):
  for i in range(1000000):
    a = math.cos(i)

thread.start_new_thread(starter, (1,))


now type any letter and hit <tab>
segfault or "Fatal Python error: ceval: tstate mix-up"
will occur, if not the first time, then eventually if you keep hitting tab

this might be related to:
http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=513033
but I'm posting anyway as I'm not sure it's the same, and that one doesn't seem to be getting attention

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

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