I tried creating a minimal test case, but did not succeed yet. I can reproduce with the following:
- Get Pyglet development branch: hg clone ssh://[email protected]/pyglet/pyglet - In pyglet/media/__init__.py add before "class StaticMemorySource" (line 635): -- "import pdb" - In pyglet/media/__init__.py add in def seek() (line 649): -- "pdb.set_trace()" Then run the unit tests: - python -m unittest tests.unit.test_media Each time pdb is activated enter "n" a few times (max 5). If it does not crash enter "c" to skip to the next test case and repeat. Usually it segfaults in the 2nd or 3rd test case. It seems to happen easier if you do it slowly. I will still try to get a minimal test case for it. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python2.7 in Ubuntu. https://bugs.launchpad.net/bugs/1426716 Title: Using Pdb for Python causes a segmentation fault in readline Status in python2.7 package in Ubuntu: New Bug description: I am debugging a Python unit test using pdb. In my code I use the following: import pdb ... pdb.set_trace() This drops me into a Pdb prompt (handled by readline). When entering 'n' a few time to step I encounter a segmentation fault. Details and backtrace are in attached log file. I tried using apport to report this, but apport keeps crashing while analysing the issue :-( ProblemType: Bug DistroRelease: Ubuntu 14.10 Package: python 2.7.8-1 ProcVersionSignature: Ubuntu 3.16.0-31.41-generic 3.16.7-ckt5 Uname: Linux 3.16.0-31-generic x86_64 ApportVersion: 2.14.7-0ubuntu8.2 Architecture: amd64 CurrentDesktop: KDE Date: Sat Feb 28 16:26:43 2015 InstallationDate: Installed on 2013-10-19 (497 days ago) InstallationMedia: Xubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130822) SourcePackage: python-defaults UpgradeStatus: Upgraded to utopic on 2014-10-25 (126 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1426716/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

