Debian Bug report logs - #968703
python3 and python crashes if a specific .inputrc exists

version graph

Package: python3; Maintainer for python3 is Matthias Klose <doko@debian.org>; Source for python3 is src:python3-defaults (PTS, buildd, popcon).

Reported by: J Arun Mani <j.arunmani@protonmail.com>

Date: Thu, 20 Aug 2020 11:48:02 UTC

Severity: important

Found in version python3-defaults/3.8.2-3

Done: Stefano Rivera <stefanor@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, j.arunmani@protonmail.com, Matthias Klose <doko@debian.org>:
Bug#968703; Package python3. (Thu, 20 Aug 2020 11:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to J Arun Mani <j.arunmani@protonmail.com>:
New Bug report received and forwarded. Copy sent to j.arunmani@protonmail.com, Matthias Klose <doko@debian.org>. (Thu, 20 Aug 2020 11:48:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: J Arun Mani <j.arunmani@protonmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: python3 and python crashes if a specific .inputrc exists
Date: Thu, 20 Aug 2020 17:15:15 +0530
Package: python3
Version: 3.8.2-3
Severity: important
X-Debbugs-Cc: j.arunmani@protonmail.com

Dear Maintainer,

Content of .inputrc :
  ```
  # Based on Brendan Miller's initial bash .inputrc
  # INSTALL
  # to install, rename this file to just ".inputrc"
  # place this file in your home dir. e.g. ~/.inputrc
  # restart your terminal. Then, bash's keybinding for editing
  # should be like ErgoEmacs.
  # If no key works, try replace all \e to \M-. That's means change Esc to Meta
key.

  set editing-mode emacs
  "\M-j": backward-char
  "\M-l": forward-char
  "\M-u": backward-word
  "\C-M-b": backward-word
  "\M-o": forward-word
  "\C-M-f": forward-word
  "\M-g": kill-line
  "\<S-delete>": kill-line
  "\M-e": backward-kill-word
  "\M-r": kill-word
  "\M-f": delete-char
  "\C-z": undo
  "\<S-delete>": kill-region
  "\M-c": copy-region-as-kill
  "\<S-insertchar>": yank
  "\C-v": yank
  "\C-f": forward-search-history
  "\M-:": reverse-search-history

  ```

With .inputrc of above content in HOME, both python and python3 crash by
segmentation fault on interactive session.
The same happens if any python script takes input from user.
This was thought to be an Ergoemacs issue and a bug report was filed in their
repository. But the repository maintainers suggested reporting it to readline
or / and python package maintainers.

Clearing the contents of .inputrc or renaming the file to some trivial name,
fixes the issue.

Affected usage :
  1. Interactive sessions of python and python3
  2. Scripts that take input from user. (`python3 myScript.py`)
  3. Scripts that process a file and drop to interactive shell. (`python3 -i
myScript.py`)

Example observation :
  ```
  j_arun_mani@mysys:~$ python3
  Python 3.8.5 (default, Aug  2 2020, 15:09:07)
  [GCC 10.2.0] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  >>> <Press Enter>

  Segmentation fault
  ```

Please inform me if any other additional details are required.
Thanks ^_^



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.7.0-2-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3 depends on:
ii  libpython3-stdlib  3.8.2-3
ii  python3-minimal    3.8.2-3
ii  python3.8          3.8.5-2

python3 recommends no packages.

Versions of packages python3 suggests:
pn  python3-doc   <none>
pn  python3-tk    <none>
ii  python3-venv  3.8.2-3

-- no debconf information



Reply sent to Stefano Rivera <stefanor@debian.org>:
You have taken responsibility. (Sat, 28 Jan 2023 20:27:06 GMT) (full text, mbox, link).


Notification sent to J Arun Mani <j.arunmani@protonmail.com>:
Bug acknowledged by developer. (Sat, 28 Jan 2023 20:27:06 GMT) (full text, mbox, link).


Message #10 received at 968703-done@bugs.debian.org (full text, mbox, reply):

From: Stefano Rivera <stefanor@debian.org>
To: J Arun Mani <j.arunmani@protonmail.com>, 968703-done@bugs.debian.org
Subject: Re: Bug#968703: python3 and python crashes if a specific .inputrc exists
Date: Sat, 28 Jan 2023 16:24:30 -0400
Hi J (2020.08.20_07:45:15_-0400)

I can't reproduce this with Python 3.11.

If this is still an issue, please file it upstream with Python:
https://github.com/python/cpython/
Unless it's an issue specifically with Python in Debian.

SR

-- 
Stefano Rivera



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 26 Feb 2023 07:24:48 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Dec 6 07:59:52 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.