Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4706

Segmentation faults on Ubuntu 22.04

$
0
0

I am experiencing segmentation faults on Ubuntu 22.04 and wanted to ask for help debugging.

I got some running sudo apt-get update: Segmentation faultsts... 52%

Running the software updater I get: update-manager crashed with SIGSEV

Another instance was a removing a conda environment.

Sometimes running python scripts in spyder:

/home/max/anaconda3/envs/spyder-env/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/scripts/conda-activate.sh: line 18: 1216748 Segmentation fault      (core dumped) $CONDA_ENV_PYTHON -m spyder_kernels.console -f $SPYDER_KERNEL_SPECFatal Python error: Segmentation faultMain thread:Current thread 0x00007bc69791f440 (most recent call first):  File "/media/max/Workspace/Code/attention_states/tests/../src/temporal_response_function.py", line 55 in trf_train  File "/media/max/Workspace/Code/attention_states/tests/../src/temporal_response_function.py", line 135 in trf_cross_val  File "/media/max/Workspace/Code/attention_states/tests/../src/utils.py", line 128 in trf_region  File "<stdin>", line 1 in <module>  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spyderpdb.py", line 268 in default  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/cmd.py", line 214 in onecmd  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/pdb.py", line 853 in onecmd  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spyderpdb.py", line 683 in cmdloop  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spyderpdb.py", line 653 in _cmdloop  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spyderpdb.py", line 333 in interaction  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/pdb.py", line 437 in user_line  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/bdb.py", line 122 in dispatch_line  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/bdb.py", line 96 in trace_dispatch  File "/media/max/Workspace/Code/attention_states/tests/global_signal_phonemes_all.py", line 327 in <module>  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/bdb.py", line 651 in run  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spyderpdb.py", line 900 in run  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spydercustomize.py", line 473 in exec_code  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spydercustomize.py", line 615 in _exec_file  File "/home/max/anaconda3/envs/attention_states/lib/python3.13/site-packages/spyder_kernels/customize/spydercustomize.py", line 660 in debugfile  File "/tmp/ipykernel_1216748/3781023966.py", line 1 in <module>Restarting kernel...

In addition other programs, such as visual studio or google chrome crash without errors.

I tried:

  • Reinstalled spyder
  • Created a new conda environment reinstalling all packages I used.
  • Ran conda clean -a
  • Run update and upgrade with apt-get
  • Ran memtest, which passed without errors
  • Stresstest the CPU
  • Try to fix broken packages in recovery mode, which resulted in a Segmentation fault.
  • Update the BIOS
  • Upgrade to Ubuntu 24.04

Here is an excerpt from a log (journalctl) that just came up after a segmentation fault when removing a conda environment:

59 ip 000000000056e762 sp 00007ffe27297e60 error 6 inpython3.10[41f000+1fb000] likely on CPU 4 (core 8, socket 0) Dec 02 > 16:13:52 max-workstation kernel:  Code: 38 49 c7 44 24 48 00 00 00 00 48 85 ff 0f 859b 00 00 00 48 85 d2 0f 85 de 00 00 00 4d 85 ff 0f 85bf 00 00 00 49 8b 4c 24 10 <48> c7 41 > 

Does anyone have suggestions on how to find the root of this issue? I could reinstall Ubuntu as well, but I would like to understand what's going on.


Viewing all articles
Browse latest Browse all 4706