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: readline+no threads = core dump
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: anthonybaxter, mwh, teddrain
Priority: normal Keywords:

Created on 2003-09-24 15:46 by teddrain, last changed 2022-04-10 16:11 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
readline.diff anthonybaxter, 2003-09-26 17:30 Modules/readline.c.diff
Messages (4)
msg18320 - (view) Author: TEd Drain (teddrain) Date: 2003-09-24 15:46
Build 2.3 or 2.3.1 on linux with the following
configure command:

./configure --enable-shared --without-threads

Try running the rlcompleter example.  If you hit TAB
with completions enabled, you'll get a core dump after
you hit return on that line.  Works fine if I build
with threads enabled.  

This is a major problem for me since we have to deliver
our software on machines that do not support pthreads
(hpux 10.2 for example).

~: uname -a
Linux XXXX 2.4.9-21 #1 Thu Jan 17 14:16:30 EST 2002
i686 unknown

~/builds-gcc2: python
Python 2.3.1 (#1, Sep 24 2003, 08:13:26)
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import readline, rlcompleter
>>> readline.parse_and_bind("tab: complete")
>>> readline.par<TAB> se_and_bind()
Fatal Python error: PyThreadState_Get: no current thread
Abort (core dumped)
msg18321 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2003-09-24 16:17
Logged In: YES 
user_id=6656

i see this too.

oops.  hopefully easy to fix...
msg18322 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2003-09-26 17:30
Logged In: YES 
user_id=29957

Assuming the problem is just a shallow one, would the
following patch "fix" the problem?

It makes the crashes go away for me.
msg18323 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-04-07 09:12
Logged In: YES 
user_id=6656

This seems to have been fixed, at some indeterminate time in the past.
History
Date User Action Args
2022-04-10 16:11:20adminsetgithub: 39289
2003-09-24 15:46:42teddraincreate