dangerzone icon indicating copy to clipboard operation
dangerzone copied to clipboard

Dangerzone segfaults on Fedora 39/40

Open apyrgio opened this issue 1 month ago • 0 comments

It has come to our attention that Fedora 39/40 users, who have updated their systems after Saturday, May 4th, cannot run Dangerzone. Opening the application via the desktop icon seems to do nothing, but if you open it through the CLI, you may see a segmentation fault similar to this:

$ PYTHONFAULTHANDLER=1  dangerzone                                                                                                                                                                        
Fatal Python error: Segmentation fault                                                                                 
                                                                                                                       
Current thread 0x00007fed65981b80 (most recent call first):                           
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1289 in create_module
  File "<frozen importlib._bootstrap>", line 813 in module_from_spec        
  File "<frozen importlib._bootstrap>", line 921 in _load_unlocked          
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load                       
  File "/usr/lib64/python3.12/site-packages/shiboken6/__init__.py", line 27 in <module>
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed     
  File "<frozen importlib._bootstrap_external>", line 995 in exec_module        
  File "<frozen importlib._bootstrap>", line 935 in _load_unlocked                
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
  File "/usr/lib64/python3.12/site-packages/PySide6/__init__.py", line 64 in _setupQtDirectories
  File "/usr/lib64/python3.12/site-packages/PySide6/__init__.py", line 124 in <module>
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 995 in exec_module
  File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
  File "/usr/lib/python3.12/site-packages/dangerzone/gui/__init__.py", line 20 in <module>
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 995 in exec_module
  File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
  File "/usr/lib/python3.12/site-packages/dangerzone/__init__.py", line 16 in <module>
  File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 995 in exec_module
  File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
  File "/usr/bin/dangerzone", line 5 in <module>
Segmentation fault (core dumped)

It seems that a recent Fedora patch in the Python 3.12 package (python3.12-3.12.3-2) has caused a regression when importing Pyside6.

PySide6 is an integral component of Dangerzone and, while we offer our own Fedora package for it, the regression occurs even with PySide6 installed from PyPI. So, at this point we have to wait for the Fedora maintainers to take a look at this bug report and offer a solution (possibly reverting the offending Python3 patch).

If you are affected, please follow this issue. We are monitoring the situation and we'll update it once we learn more.

apyrgio avatar May 08 '24 17:05 apyrgio