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: Crash of python3.7 with virt-manager
Type: crash Stage: resolved
Components: Installation Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: mother-earth40, vstinner
Priority: normal Keywords:

Created on 2019-07-30 10:14 by mother-earth40, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
crash_and_packages.log mother-earth40, 2019-07-30 10:14 Crash.log and installed packages-list
Messages (5)
msg348730 - (view) Author: Hans Peter (mother-earth40) Date: 2019-07-30 10:14
Hi!

A few days ago, I upgraded to UbuntuMate 19.04.

I can't run 'virt-manager' because of this:

# virt-manager
Output: Segmentation fault


kernel: [ 2003.888116] virt-manager[16014]: segfault at 32d0 ip 00000000000032d0 sp 00007ffeb09ac658 error 14 in python3.7[400000+21000]

kernel: [ 2003.888124] Code: Bad RIP value.

Look at "crash_and_packages.log" I added to attachment.

Please help, to fix that. Thanks!
msg348731 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-07-30 10:19
Try to run virt-manager with faulthandler enabled to get the Python traceback where the bug occurs:

PYTHONDEVMODE=1 virt-manager --no-fork

I expect that the bug comes from a third-party C extension (no part of Python standard library). My notes to debug a Python crash:
https://pythondev.readthedocs.io/debug_tools.html
msg348732 - (view) Author: Hans Peter (mother-earth40) Date: 2019-07-30 10:28
PYTHONDEVMODE=1 virt-manager --no-fork
Fatal Python error: Segmentation fault

Current thread 0x00007f835bafd740 (most recent call first):
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1043 in create_module
  File "<frozen importlib._bootstrap>", line 583 in module_from_spec
  File "<frozen importlib._bootstrap>", line 670 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/usr/lib/python3.7/lzma.py", line 27 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/usr/lib/python3.7/shutil.py", line 29 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/usr/lib/python3.7/tempfile.py", line 44 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/usr/lib/python3/dist-packages/apport/report.py", line 12 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63 in apport_excepthook
Segmentation fault
msg348733 - (view) Author: Hans Peter (mother-earth40) Date: 2019-07-30 10:49
How to fix that? See above post.
msg348736 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2019-07-30 11:10
That's a crash in the apport project itself which is specific to Ubuntu, and unrelated to Python standard library. I close this issue.

Please report issues specific to Ubuntu to the Ubuntu bug tracker.
History
Date User Action Args
2022-04-11 14:59:18adminsetgithub: 81901
2019-07-30 11:10:22vstinnersetstatus: open -> closed
resolution: third party
messages: + msg348736

stage: resolved
2019-07-30 10:49:12mother-earth40setmessages: + msg348733
2019-07-30 10:28:04mother-earth40setmessages: + msg348732
2019-07-30 10:19:45vstinnersetnosy: + vstinner
messages: + msg348731
2019-07-30 10:14:00mother-earth40create