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: seg fault when using Cntrl-q keymap to exit app
Type: crash Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder: readline macros can segfault Python
View: 25259
Assigned To: Nosy List: Britton Kerin, martin.panter
Priority: normal Keywords:

Created on 2017-11-11 22:18 by Britton Kerin, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
the.inputrc Britton Kerin, 2017-11-11 22:18 The ~/.inputrc file that is needed to trigger the problem
Messages (2)
msg306094 - (view) Author: Britton Kerin (Britton Kerin) Date: 2017-11-11 22:18
This probably applies to more recent version also.

It may be a readline bug, but I haven't seen it except when using the python interface, despite using this same .inputrc file with many different command line programs.

I've attached the ~/.inputrc which are required to trigger the problem. 
This simple script will allow the problem to be reproduced:

     #!/usr/bin/python3.4-dbg

     import readline

     input('the_prompt> ')

After launching test.py with the given ~/.inputrc in place, simply type Cntrl-q to trigger the seg fault.

Perhaps if this can be confirmed to be a readline issue someone can submit a bug report to that project.

Britton
msg306101 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2017-11-12 04:19
This looks the same as Issue 25259. The trigger is that multiple lines are generated at the same time, but Python only expects the first line.
History
Date User Action Args
2022-04-11 14:58:54adminsetgithub: 76190
2017-11-12 04:19:56martin.pantersetstatus: open -> closed

superseder: readline macros can segfault Python

nosy: + martin.panter
messages: + msg306101
resolution: duplicate
stage: resolved
2017-11-11 22:18:02Britton Kerincreate