[Python-modules-team] Bug#868055: virtualenv'ed python-dbg doesn't work smoothly with gdb (py- commands are gone)

Yaroslav Halchenko debian at onerussian.com
Tue Jul 11 15:11:59 UTC 2017


Package: python-virtualenv
Version: 15.1.0+ds-1
Severity: normal

Not 100% sure if it is not a python-dbg or gdb issue, but I think it might as
well be virtualenv:

$> virtualenv --python=/usr/bin/python-dbg venv-dbg
Running virtualenv with interpreter /usr/bin/python-dbg
New python executable in /tmp/venv-dbg/bin/python-dbg
Also creating executable in /tmp/venv-dbg/bin/python
[21403 refs]
Installing setuptools, pkg_resources, pip, wheel...done.
[47796 refs]

$> gdb -q -ex 'py-bt' -ex quit /usr/bin/python-dbg
Reading symbols from /usr/bin/python-dbg...done.
Traceback (most recent call first):
Python Exception <class 'gdb.error'> No frame is currently selected.:
Error occurred in Python command: No frame is currently selected.

$> gdb -q -ex 'py-bt' -ex quit $PWD/venv-dbg/bin/python-dbg
Reading symbols from /tmp/venv-dbg/bin/python-dbg...done.
Undefined command: "py-bt".  Try "help".


This complicates debugging some extensions etc

-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (600, 'unstable'), (300, 'experimental'), (100, 'unstable-debug'), (100, 'stable')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-virtualenv depends on:
ii  python                2.7.13-2
ii  python-pip-whl        9.0.1-2
ii  python-pkg-resources  33.1.1-1

Versions of packages python-virtualenv recommends:
ii  virtualenv  15.1.0+ds-1

python-virtualenv suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list