Programs has segmentation fault randomly but quite often

Many programs, especially Python, have started to have segmentation faults randomly. This is after the last update. When I install python packages using pip, I always use venv. Please help and many thanks in advanced.

These are some of my system’s information.

fpaste --sysinfo --printonly

Output

=== fpaste 0.4.4.0 System Information ===
=== fpaste 0.4.4.0 System Information ===
* OS Release (cat /etc/*-release | uniq):
     Fedora release 39 (Thirty Nine)
     NAME="Fedora Linux"
     VERSION="39 (KDE Plasma)"
     ID=fedora
     VERSION_ID=39
     VERSION_CODENAME=""
     PLATFORM_ID="platform:f39"
     PRETTY_NAME="Fedora Linux 39 (KDE Plasma)"
     ANSI_COLOR="0;38;2;60;110;180"
     LOGO=fedora-logo-icon
     CPE_NAME="cpe:/o:fedoraproject:fedora:39"
     DEFAULT_HOSTNAME="fedora"
     HOME_URL="https://fedoraproject.org/"
     DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f39/system-administrators-guide/"
     SUPPORT_URL="https://ask.fedoraproject.org/"
     BUG_REPORT_URL="https://bugzilla.redhat.com/"
     REDHAT_BUGZILLA_PRODUCT="Fedora"
     REDHAT_BUGZILLA_PRODUCT_VERSION=39
     REDHAT_SUPPORT_PRODUCT="Fedora"
     REDHAT_SUPPORT_PRODUCT_VERSION=39
     SUPPORT_END=2024-11-12
     VARIANT="KDE Plasma"
     VARIANT_ID=kde
     Fedora release 39 (Thirty Nine)
     
* Kernel (uname -r ; cat /proc/cmdline):
     6.6.8-200.fc39.x86_64
     BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.6.8-200.fc39.x86_64 root=/dev/mapper/fedora_localhost--live-root ro nvidia-drm.modeset=1 resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
     
* Desktop(s) Running (without results: "ps -eo comm= | grep -E '(gnome-session|startkde|startactive|xfce.?-session|fluxbox|blackbox|hackedbox|ratpoison|enlightenment|icewm-session|od-session|wmaker|wmx|openbox-lxde|openbox-gnome-session|openbox-kde-session|mwm|e16|fvwm|xmonad|sugar-session|mate-session|lxqt-session|cinnamon|lxdm-session)' "):
     N/A

* Desktop(s) Installed (ls -m /usr/share/xsessions/ | sed 's/\.desktop//g' ):
     plasmax11
     
* SELinux Status (sestatus):
     SELinux status:                 enabled
     SELinuxfs mount:                /sys/fs/selinux
     SELinux root directory:         /etc/selinux
     Loaded policy name:             targeted
     Current mode:                   enforcing
     Mode from config file:          enforcing
     Policy MLS status:              enabled
     Policy deny_unknown status:     allowed
     Memory protection checking:     actual (secure)
     Max kernel policy version:      33
     
* SELinux Errors (without results: "selinuxenabled && journalctl --since yesterday |grep avc: | grep -Eo comm="[^ ]+" | sort |uniq -c |sort -rn"):
     N/A

* CPU Model (grep 'model name' /proc/cpuinfo | awk -F: '{print $2}' | uniq -c |
     sed -re 's/^ +//' ):
     4  Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz
     
* 64-bit Support (grep -q ' lm ' /proc/cpuinfo && echo Yes || echo No):
     Yes
     
* Hardware Virtualization Support (grep -Eq '(vmx|svm)' /proc/cpuinfo && echo Yes || echo No):
     Yes
     
* Load average (uptime):
      20:14:04 up 19 min,  4 users,  load average: 0.67, 0.70, 0.51
     
* Pressure Stall Information (grep -R . /proc/pressure/):
     /proc/pressure/io:some avg10=0.30 avg60=0.36 avg300=0.21 total=11775376
     /proc/pressure/io:full avg10=0.30 avg60=0.34 avg300=0.16 total=7697851
     /proc/pressure/cpu:some avg10=0.58 avg60=0.39 avg300=0.65 total=20755969
     /proc/pressure/cpu:full avg10=0.00 avg60=0.00 avg300=0.00 total=0
     /proc/pressure/irq:full avg10=0.00 avg60=0.00 avg300=0.00 total=3803487
     /proc/pressure/memory:some avg10=0.00 avg60=0.00 avg300=0.00 total=3820
     /proc/pressure/memory:full avg10=0.00 avg60=0.00 avg300=0.00 total=22
     
* Memory usage (free -m):
                    total        used        free      shared  buff/cache   available
     Mem:           15918        3481        9497         146        3403       12436
     Swap:          40959           0       40959
     
* ZRAM usage (zramctl --output-all):
     NAME       DISKSIZE DATA COMPR ALGORITHM STREAMS ZERO-PAGES TOTAL MEM-LIMIT MEM-USED MIGRATED MOUNTPOINT
     /dev/zram0       8G   4K   80B lzo-rle         4          0   12K        0B      12K       0B [SWAP]
     
* Top 5 CPU hogs (ps axuScnh | awk '$2!=6119' | sort -rnk3 | head -5):
         1000    6254  100  0.0 226304  4992 pts/2    R+   20:14   0:00 ps
         1000    6203 17.8  0.5 919324 84528 ?        Sl   20:14   0:00 gnome-abrt
         1000    1787 15.5  0.1  33324 17680 ?        Ss   19:54   2:58 systemd
         1000    1994 12.2  1.2 1200692 199568 ?      Sl   19:54   2:20 kwin_wayland
         1000    4165  9.6  1.7 1188660436 287252 ?   Sl   19:56   1:40 chrome
     
* Top 5 Memory hogs (ps axuScnh | sort -rnk4 | head -5):
         1000    3837  3.8  3.0 34726932 493988 ?     Sl   19:56   0:41 chrome
         1000    2148  2.4  2.4 3243504 403728 ?      Ssl  19:54   0:27 plasmashell
         1000    3886  4.1  1.8 34517896 308184 ?     Sl   19:56   0:44 chrome
         1000    4165  9.6  1.7 1188660436 287252 ?   Sl   19:56   1:40 chrome
         1000    4463  0.7  1.5 1186465924 256872 ?   Sl   19:57   0:07 chrome
     
* Disk space usage (df -hT):
     Filesystem                              Type      Size  Used Avail Use% Mounted on
     /dev/mapper/fedora_localhost--live-root ext4      393G  190G  183G  51% /
     devtmpfs                                devtmpfs  4.0M     0  4.0M   0% /dev
     tmpfs                                   tmpfs     7.8G   78M  7.7G   1% /dev/shm
     efivarfs                                efivarfs  128K  117K  7.0K  95% /sys/firmware/efi/efivars
     tmpfs                                   tmpfs     3.2G  1.8M  3.2G   1% /run
     tmpfs                                   tmpfs     7.8G   17M  7.8G   1% /tmp
     /dev/sda2                               ext4      974M  356M  552M  40% /boot
     /dev/sda1                               vfat      599M   18M  582M   3% /boot/efi
     /dev/mapper/data_1-home                 ext4      763G  245G  482G  34% /home
     tmpfs                                   tmpfs     1.6G  136K  1.6G   1% /run/user/1000
     
* Block devices (without results: "blkid" AND "/sbin/blkid"):
     N/A

* PCI devices (lspci -nn):
     00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers [8086:191f] (rev 07)
     00:01.0 PCI bridge [0604]: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07)
     00:14.0 USB controller [0c03]: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller [8086:a12f] (rev 31)
     00:16.0 Communication controller [0780]: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 [8086:a13a] (rev 31)
     00:17.0 SATA controller [0106]: Intel Corporation Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] [8086:a102] (rev 31)
     00:1b.0 PCI bridge [0604]: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #17 [8086:a167] (rev f1)
     00:1c.0 PCI bridge [0604]: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 [8086:a110] (rev f1)
     00:1d.0 PCI bridge [0604]: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #9 [8086:a118] (rev f1)
     00:1f.0 ISA bridge [0601]: Intel Corporation Z170 Chipset LPC/eSPI Controller [8086:a145] (rev 31)
     00:1f.2 Memory controller [0580]: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller [8086:a121] (rev 31)
     00:1f.3 Audio device [0403]: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller [8086:a170] (rev 31)
     00:1f.4 SMBus [0c05]: Intel Corporation 100 Series/C230 Series Chipset Family SMBus [8086:a123] (rev 31)
     00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-V [8086:15b8] (rev 31)
     01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce GTX 970] [10de:13c2] (rev a1)
     01:00.1 Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio Controller [10de:0fbb] (rev a1)
     
* USB devices (lsusb):
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
     Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
     Bus 001 Device 004: ID 2357:0109 TP-Link TL-WN823N v2/v3 [Realtek RTL8192EU]
     Bus 001 Device 005: ID 1017:0002 Speedy Industrial Supplies, Pte., Ltd [unknown]
     Bus 001 Device 006: ID 1017:8003 Speedy Industrial Supplies, Pte., Ltd [unknown]
     Bus 001 Device 007: ID 056a:033b Wacom Co., Ltd CTL-490 [Intuos Draw (S)]
     Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
     Bus 002 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
     Bus 002 Device 003: ID 05e3:0620 Genesys Logic, Inc. GL3523 Hub
     
* DRM Information (journalctl -k -b | grep -o 'kernel:.*drm.*$' | cut -d ' ' -f 2- ):
     Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.6.8-200.fc39.x86_64 root=/dev/mapper/fedora_localhost--live-root ro nvidia-drm.modeset=1 resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
     The simpledrm driver will not be probed
     The simpledrm driver will not be probed
     Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.6.8-200.fc39.x86_64 root=/dev/mapper/fedora_localhost--live-root ro nvidia-drm.modeset=1 resume=/dev/mapper/fedora_localhost--live-swap rd.lvm.lv=fedora_localhost-live/root rd.lvm.lv=fedora_localhost-live/swap rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
     ACPI: bus type drm_connector registered
     audit: type=1130 audit(1704196479.254:10): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=modprobe@drm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
     audit: type=1131 audit(1704196479.254:11): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=modprobe@drm comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
     [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
     [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
     fbcon: nvidia-drmdrmfb (fb0) is primary device
     nvidia 0000:01:00.0: [drm] fb0: nvidia-drmdrmfb frame buffer device
     
* Xorg modules (grep LoadModule /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d \" -f 2 | xargs):
     glx nvidia nouveau nv modesetting fbdev vesa fb wfb fbdevhw glxserver_nvidia dri2 libinput
     
* GL Support (glxinfo | grep -E "OpenGL version|OpenGL renderer"):
     OpenGL renderer string: NVIDIA GeForce GTX 970/PCIe/SSE2
     OpenGL version string: 4.6.0 NVIDIA 545.29.06
     
* Xorg errors (grep '^\[.*(EE)' /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d ':' -f 2- ):
     [   738.013] (EE) Failed to load module "nv" (module does not exist, 0)
     [   738.023] (EE) open /dev/fb0: Permission denied
     
* Kernel buffer tail (dmesg | tail):
     [ 1048.208223] dnf[5721]: segfault at 4 ip 00007f66c49f4885 sp 00007ffe98065e00 error 4 in libpython3.12.so.1.0[7f66c48fe000+21e000] likely on CPU 2 (core 2, socket 0)
     [ 1048.208232] Code: 48 8d 05 9e ff ff ff 48 83 63 f8 01 48 c7 43 f0 00 00 00 00 49 39 45 30 0f 85 8c 02 00 00 48 8d 3d f0 cf 2e 00 e8 9b a1 f0 ff <4c> 8b a8 00 00 00 00 4d 85 ed 0f 84 dc 32 f1 ff 41 8b 85 98 00 00
     [ 1051.030014] dnf[5736]: segfault at 4 ip 00007f035b9f4885 sp 00007ffd6dfa1480 error 4 in libpython3.12.so.1.0[7f035b8fe000+21e000] likely on CPU 2 (core 2, socket 0)
     [ 1051.030023] Code: 48 8d 05 9e ff ff ff 48 83 63 f8 01 48 c7 43 f0 00 00 00 00 49 39 45 30 0f 85 8c 02 00 00 48 8d 3d f0 cf 2e 00 e8 9b a1 f0 ff <4c> 8b a8 00 00 00 00 4d 85 ed 0f 84 dc 32 f1 ff 41 8b 85 98 00 00
     [ 1120.466828] dnf[5748]: segfault at 4 ip 00007fc003df4885 sp 00007fff60dffd70 error 4 in libpython3.12.so.1.0[7fc003cfe000+21e000] likely on CPU 2 (core 2, socket 0)
     [ 1120.466838] Code: 48 8d 05 9e ff ff ff 48 83 63 f8 01 48 c7 43 f0 00 00 00 00 49 39 45 30 0f 85 8c 02 00 00 48 8d 3d f0 cf 2e 00 e8 9b a1 f0 ff <4c> 8b a8 00 00 00 00 4d 85 ed 0f 84 dc 32 f1 ff 41 8b 85 98 00 00
     [ 1160.773322] fpaste[6081]: segfault at 2 ip 00007fad727f4885 sp 00007ffc0353fcf0 error 4 in libpython3.12.so.1.0[7fad726fe000+21e000] likely on CPU 2 (core 2, socket 0)
     [ 1160.773331] Code: 48 8d 05 9e ff ff ff 48 83 63 f8 01 48 c7 43 f0 00 00 00 00 49 39 45 30 0f 85 8c 02 00 00 48 8d 3d f0 cf 2e 00 e8 9b a1 f0 ff <4c> 8b a8 00 00 00 00 4d 85 ed 0f 84 dc 32 f1 ff 41 8b 85 98 00 00
     [ 1161.913254] fpaste[6095]: segfault at 1 ip 00007fd5d01f4885 sp 00007fffa96c5120 error 4 in libpython3.12.so.1.0[7fd5d00fe000+21e000] likely on CPU 2 (core 2, socket 0)
     [ 1161.913263] Code: 48 8d 05 9e ff ff ff 48 83 63 f8 01 48 c7 43 f0 00 00 00 00 49 39 45 30 0f 85 8c 02 00 00 48 8d 3d f0 cf 2e 00 e8 9b a1 f0 ff <4c> 8b a8 00 00 00 00 4d 85 ed 0f 84 dc 32 f1 ff 41 8b 85 98 00 00
     
* Last few reboots (last -x -n10 reboot runlevel):
     runlevel (to lvl 5)   6.6.8-200.fc39.x Tue Jan  2 19:54   still running
     reboot   system boot  6.6.8-200.fc39.x Tue Jan  2 19:54   still running
     runlevel (to lvl 5)   6.6.8-200.fc39.x Mon Jan  1 21:08 - 21:57  (00:48)
     reboot   system boot  6.6.8-200.fc39.x Mon Jan  1 21:08 - 21:57  (00:48)
     runlevel (to lvl 5)   6.6.8-200.fc39.x Mon Jan  1 15:09 - 18:08  (02:58)
     reboot   system boot  6.6.8-200.fc39.x Mon Jan  1 15:09 - 18:08  (02:59)
     runlevel (to lvl 5)   6.6.8-200.fc39.x Mon Jan  1 10:50 - 11:55  (01:04)
     reboot   system boot  6.6.8-200.fc39.x Mon Jan  1 10:50 - 11:55  (01:04)
     runlevel (to lvl 5)   6.6.8-200.fc39.x Mon Jan  1 10:16 - 10:50  (00:34)
     reboot   system boot  6.6.8-200.fc39.x Mon Jan  1 10:16 - 10:50  (00:34)
     
     wtmp begins Sun Oct  8 10:55:46 2023
     
* DNF Repositories (dnf repolist):
     repo id                              repo name
     code                                 Visual Studio Code
     fedora                               Fedora 39 - x86_64
     fedora-cisco-openh264                Fedora 39 openh264 (From Cisco) - x86_64
     gitlab.com_paulcarroty_vscodium_repo download.vscodium.com
     google-chrome                        google-chrome
     rpmfusion-nonfree                    RPM Fusion for Fedora 39 - Nonfree
     rpmfusion-nonfree-updates            RPM Fusion for Fedora 39 - Nonfree - Updates
     sublime-text                         Sublime Text - x86_64 - Stable
     updates                              Fedora 39 - x86_64 - Updates
     
* DNF Extras (dnf -C list extras):
     Last metadata expiration check: 0:17:59 ago on Tue 02 Jan 2024 07:56:07 PM +08.
     Extra Packages
     VirtualBox-kmodsrc.noarch                    7.0.12-1.fc38                     @rpmfusion-free-updates
     VirtualBox-server.x86_64                     7.0.12-1.fc38                     @rpmfusion-free-updates
     akmod-VirtualBox.x86_64                      7.0.12-1.fc38                     @rpmfusion-free-updates
     gitkraken.x86_64                             9.11.0-1                          @System                
     glibc-debuginfo.x86_64                       2.38-14.fc39                      @updates-debuginfo     
     glibc-debugsource.x86_64                     2.38-14.fc39                      @updates-debuginfo     
     kmod-VirtualBox-6.6.6-100.fc38.x86_64.x86_64 7.0.12-1.fc38                     @@commandline          
     kmod-VirtualBox-6.6.7-100.fc38.x86_64.x86_64 7.0.12-1.fc38                     @@commandline          
     kmod-VirtualBox-6.6.7-200.fc39.x86_64.x86_64 7.0.12-1.fc39                     @@commandline          
     kmod-VirtualBox-6.6.8-200.fc39.x86_64.x86_64 7.0.12-1.fc39                     @@commandline          
     kmod-nvidia-6.6.6-100.fc38.x86_64.x86_64     3:545.29.06-1.fc38                @@commandline          
     kmod-nvidia-6.6.7-100.fc38.x86_64.x86_64     3:545.29.06-1.fc38                @@commandline          
     kmod-nvidia-6.6.7-200.fc39.x86_64.x86_64     3:545.29.06-1.fc39                @@commandline          
     kmod-nvidia-6.6.8-200.fc39.x86_64.x86_64     3:545.29.06-2.fc39                @@commandline          
     libde265.x86_64                              1.0.14-1.fc39                     @rpmfusion-free-updates
     ncurses-debuginfo.x86_64                     6.4-7.20230520.fc39               @fedora-debuginfo      
     ncurses-debugsource.x86_64                   6.4-7.20230520.fc39               @fedora-debuginfo      
     ncurses-libs-debuginfo.x86_64                6.4-7.20230520.fc39               @fedora-debuginfo      
     openCOLLADA.x86_64                           1.6.70-2.fc37                     @fedora                
     python3.12-debuginfo.x86_64                  3.12.1-2.fc39                     @updates-debuginfo     
     python3.12-debugsource.x86_64                3.12.1-2.fc39                     @updates-debuginfo     
     readline-debuginfo.x86_64                    8.2-4.fc39                        @fedora-debuginfo      
     readline-debugsource.x86_64                  8.2-4.fc39                        @fedora-debuginfo      
     sagemath-doc.x86_64                          9.8-1.fc38                        @fedora                
     x264-libs.x86_64                             0.164-10.20231001git31e19f92.fc39 @rpmfusion-free        
     x265-libs.x86_64                             3.5-6.fc39                        @rpmfusion-free        
     
* Last 20 packages installed (rpm -qa --nodigest --nosignature --last | head -20):
     readline-debugsource-8.2-4.fc39.x86_64        Tue 02 Jan 2024 08:13:44 PM +08
     readline-debuginfo-8.2-4.fc39.x86_64          Tue 02 Jan 2024 08:13:44 PM +08
     ncurses-libs-debuginfo-6.4-7.20230520.fc39.x86_64 Tue 02 Jan 2024 08:13:44 PM +08
     glibc-debugsource-2.38-14.fc39.x86_64         Tue 02 Jan 2024 08:13:44 PM +08
     glibc-debuginfo-2.38-14.fc39.x86_64           Tue 02 Jan 2024 08:13:44 PM +08
     ncurses-debuginfo-6.4-7.20230520.fc39.x86_64  Tue 02 Jan 2024 08:13:41 PM +08
     ncurses-debugsource-6.4-7.20230520.fc39.x86_64 Tue 02 Jan 2024 08:13:40 PM +08
     libaom-3.8.0-1.fc39.x86_64                    Tue 02 Jan 2024 07:56:18 PM +08
     libgcc-13.2.1-6.fc39.x86_64                   Mon 01 Jan 2024 09:37:54 PM +08
     libgcc-13.2.1-6.fc39.i686                     Mon 01 Jan 2024 09:37:54 PM +08
     python3-libxml2-2.10.4-3.fc39.x86_64          Mon 01 Jan 2024 09:33:48 PM +08
     python3-libvirt-9.7.0-1.fc39.x86_64           Mon 01 Jan 2024 09:33:48 PM +08
     python3-libsemanage-3.5-4.fc39.x86_64         Mon 01 Jan 2024 09:33:48 PM +08
     python3-libselinux-3.5-5.fc39.x86_64          Mon 01 Jan 2024 09:33:48 PM +08
     python3-libsass-0.22.0-1.fc39.x86_64          Mon 01 Jan 2024 09:33:48 PM +08
     python3-libreport-2.17.11-3.fc39.x86_64       Mon 01 Jan 2024 09:33:48 PM +08
     python3-libguestfs-1.51.9-1.fc39.x86_64       Mon 01 Jan 2024 09:33:48 PM +08
     python3-libdnf-0.72.0-1.fc39.x86_64           Mon 01 Jan 2024 09:33:48 PM +08
     python3-libcomps-0.1.20-1.fc39.x86_64         Mon 01 Jan 2024 09:33:48 PM +08
     python3-libs-3.12.1-2.fc39.x86_64             Mon 01 Jan 2024 09:33:47 PM +08
     
* EFI boot manager output (efibootmgr -v):
     BootCurrent: 0000
     Timeout: 1 seconds
     BootOrder: 0000,0005
     Boot0000* Fedora   HD(1,GPT,190af54b-678e-4dd3-baa2-932fa1e854d2,0x800,0x12c000)/File(\EFI\FEDORA\SHIMX64.EFI)
           dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 c0 12 00 00 00 00 00 4b f5 0a 19 8e 67 d3 4d ba a2 93 2f a1 e8 54 d2 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 46 00 45 00 44 00 4f 00 52 00 41 00 5c 00 53 00 48 00 49 00 4d 00 58 00 36 00 34 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
     Boot0005* Hard Drive       BBS(HD,,0x0)0000474f00004e4fad000000010000006f004b0049004e004700530054004f004e00200053004100340030003000530033003700340038003000470000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000200ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63000350032003000420036003200370033003800350031003000300043004200200020002000200000007fff04000000424f00004e4fad000000010000006f004b0049004e004700530054004f004e00200053004100340030003000530033003700390036003000470000000501090002000000007fff040002010c00d041030a0000000001010600001703120a000300ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63000350032003000420036003700370035003800430035003900460037004300200020002000200000007fff04000000424f
           dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
         data: 00 00 47 4f 00 00 4e 4f ad 00 00 00 01 00 00 00 6f 00 4b 00 49 00 4e 00 47 00 53 00 54 00 4f 00 4e 00 20 00 53 00 41 00 34 00 30 00 30 00 53 00 33 00 37 00 34 00 38 00 30 00 47 00 00 00 05 01 09 00 02 00 00 00 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 17 03 12 0a 00 02 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 35 00 32 00 30 00 42 00 36 00 32 00 37 00 33 00 38 00 35 00 31 00 30 00 30 00 43 00 42 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f ad 00 00 00 01 00 00 00 6f 00 4b 00 49 00 4e 00 47 00 53 00 54 00 4f 00 4e 00 20 00 53 00 41 00 34 00 30 00 30 00 53 00 33 00 37 00 39 00 36 00 30 00 47 00 00 00 05 01 09 00 02 00 00 00 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 00 17 03 12 0a 00 03 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 35 00 32 00 30 00 42 00 36 00 37 00 37 00 35 00 38 00 43 00 35 00 39 00 46 00 37 00 43 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 00 00 42 4f

This is a core dump of output of the python crash

[junyi@fedora ~]$ python 
Python 3.12.1 (main, Dec 18 2023, 00:00:00) [GCC 13.2.1 20231205 (Red Hat 13.2.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[junyi@fedora ~]$ python 
Segmentation fault (core dumped)
[junyi@fedora ~]$ coredumpctl debug
           PID: 5263 (python)
           UID: 1000 (junyi)
           GID: 1000 (junyi)
        Signal: 11 (SEGV)
     Timestamp: Tue 2024-01-02 20:04:14 +08 (8s ago)
  Command Line: python
    Executable: /usr/bin/python3.12
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole-698eb1c5ad614618bb351376359adfd5.scope
          Unit: user@1000.service
     User Unit: app-org.kde.konsole-698eb1c5ad614618bb351376359adfd5.scope
         Slice: user-1000.slice
     Owner UID: 1000 (junyi)
       Boot ID: faa7df2a95cd4f60bd40bd279c942e85
    Machine ID: 03602e61a9df4544ae4e5504330aabf2
      Hostname: fedora
       Storage: /var/lib/systemd/coredump/core.python.1000.faa7df2a95cd4f60bd40bd279c942e85.5263.1704197054000000.zst (present)
  Size on Disk: 1.0M
       Package: python3.12/3.12.1-2.fc39
      build-id: b30b4b34c148c6ea3a4acb68b33c823a52e3417a
       Message: Process 5263 (python) of user 1000 dumped core.
                
                Module libtinfo.so.6 from rpm ncurses-6.4-7.20230520.fc39.x86_64
                Module libreadline.so.8 from rpm readline-8.2-4.fc39.x86_64
                Module readline.cpython-312-x86_64-linux-gnu.so from rpm python3.12-3.12.1-2.fc39.x86_64
                Module libpython3.12.so.1.0 from rpm python3.12-3.12.1-2.fc39.x86_64
                Module python3.12 from rpm python3.12-3.12.1-2.fc39.x86_64
                Stack trace of thread 5263:
                #0  0x00007fdb8c9f4885 current_fast_get (libpython3.12.so.1.0 + 0x1f4885)
                #1  0x00007fdb8c9f717b _Py_Dealloc (libpython3.12.so.1.0 + 0x1f717b)
                #2  0x00007fdb8c90f75a _PyEval_EvalFrameDefault (libpython3.12.so.1.0 + 0x10f75a)
                #3  0x00007fdb8c9f9856 _PyFunction_Vectorcall (libpython3.12.so.1.0 + 0x1f9856)
                #4  0x00007fdb8ca1e6a2 _PyObject_Call_Prepend (libpython3.12.so.1.0 + 0x21e6a2)
                #5  0x00007fdb8c9f73ab type_call (libpython3.12.so.1.0 + 0x1f73ab)
                #6  0x00007fdb8c9f7156 _PyObject_MakeTpCall (libpython3.12.so.1.0 + 0x1f7156)
                #7  0x00007fdb8c90f75a _PyEval_EvalFrameDefault (libpython3.12.so.1.0 + 0x10f75a)
                #8  0x00007fdb8ca35346 _PyFunction_Vectorcall (libpython3.12.so.1.0 + 0x235346)
                #9  0x00007fdb8c91265a _PyObject_VectorcallTstate (libpython3.12.so.1.0 + 0x11265a)
                #10 0x00007fdb8c9faf25 _PyObject_VectorcallTstate (libpython3.12.so.1.0 + 0x1faf25)
                #11 0x00007fdb8ca39e2e PyObject_CallMethodOneArg (libpython3.12.so.1.0 + 0x239e2e)
                #12 0x00007fdb8ca3459a PyImport_ImportModuleLevelObject (libpython3.12.so.1.0 + 0x23459a)
                #13 0x00007fdb8c9157b7 import_name (libpython3.12.so.1.0 + 0x1157b7)
                #14 0x00007fdb8ca8b196 PyEval_EvalCode (libpython3.12.so.1.0 + 0x28b196)
                #15 0x00007fdb8caa61dc builtin_exec_impl (libpython3.12.so.1.0 + 0x2a61dc)
                #16 0x00007fdb8ca0b08c cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.12.so.1.0 + 0x20b08c)
                #17 0x00007fdb8c91017b PyCFunction_Call (libpython3.12.so.1.0 + 0x11017b)
                #18 0x00007fdb8ca12cdb _PyObject_VectorcallTstate (libpython3.12.so.1.0 + 0x212cdb)
                #19 0x00007fdb8ca34eca PyObject_CallMethodObjArgs (libpython3.12.so.1.0 + 0x234eca)
                #20 0x00007fdb8ca347d2 import_find_and_load (libpython3.12.so.1.0 + 0x2347d2)
                #21 0x00007fdb8c9157b7 import_name (libpython3.12.so.1.0 + 0x1157b7)
                #22 0x00007fdb8ca8b196 PyEval_EvalCode (libpython3.12.so.1.0 + 0x28b196)
                #23 0x00007fdb8caa61dc builtin_exec_impl (libpython3.12.so.1.0 + 0x2a61dc)
                #24 0x00007fdb8ca0b08c cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.12.so.1.0 + 0x20b08c)
                #25 0x00007fdb8c91017b PyCFunction_Call (libpython3.12.so.1.0 + 0x11017b)
                #26 0x00007fdb8ca12cdb _PyObject_VectorcallTstate (libpython3.12.so.1.0 + 0x212cdb)
                #27 0x00007fdb8ca34eca PyObject_CallMethodObjArgs (libpython3.12.so.1.0 + 0x234eca)
                #28 0x00007fdb8ca347d2 import_find_and_load (libpython3.12.so.1.0 + 0x2347d2)
                #29 0x00007fdb8c9157b7 import_name (libpython3.12.so.1.0 + 0x1157b7)
                #30 0x00007fdb8ca8b196 PyEval_EvalCode (libpython3.12.so.1.0 + 0x28b196)
                #31 0x00007fdb8caa61dc builtin_exec_impl (libpython3.12.so.1.0 + 0x2a61dc)
                #32 0x00007fdb8ca0b08c cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.12.so.1.0 + 0x20b08c)
                #33 0x00007fdb8c91017b PyCFunction_Call (libpython3.12.so.1.0 + 0x11017b)
                #34 0x00007fdb8ca12cdb _PyObject_VectorcallTstate (libpython3.12.so.1.0 + 0x212cdb)
                #35 0x00007fdb8ca34eca PyObject_CallMethodObjArgs (libpython3.12.so.1.0 + 0x234eca)
                #36 0x00007fdb8ca347d2 import_find_and_load (libpython3.12.so.1.0 + 0x2347d2)
                #37 0x00007fdb8c9157b7 import_name (libpython3.12.so.1.0 + 0x1157b7)
                #38 0x00007fdb8ca8b196 PyEval_EvalCode (libpython3.12.so.1.0 + 0x28b196)
                #39 0x00007fdb8caa61dc builtin_exec_impl (libpython3.12.so.1.0 + 0x2a61dc)
                #40 0x00007fdb8ca0b08c cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.12.so.1.0 + 0x20b08c)
                #41 0x00007fdb8c91017b PyCFunction_Call (libpython3.12.so.1.0 + 0x11017b)
                #42 0x00007fdb8ca12cdb _PyObject_VectorcallTstate (libpython3.12.so.1.0 + 0x212cdb)
                #43 0x00007fdb8ca34eca PyObject_CallMethodObjArgs (libpython3.12.so.1.0 + 0x234eca)
                #44 0x00007fdb8ca347d2 import_find_and_load (libpython3.12.so.1.0 + 0x2347d2)
                #45 0x00007fdb8ca4054e builtin___import___impl (libpython3.12.so.1.0 + 0x24054e)
                #46 0x00007fdb8ca0b08c cfunction_vectorcall_FASTCALL_KEYWORDS (libpython3.12.so.1.0 + 0x20b08c)
                #47 0x00007fdb8c9f312a _PyObject_VectorcallTstate (libpython3.12.so.1.0 + 0x1f312a)
                #48 0x00007fdb8c9f3052 PyObject_CallFunction (libpython3.12.so.1.0 + 0x1f3052)
                #49 0x00007fdb8ca40290 PyImport_Import (libpython3.12.so.1.0 + 0x240290)
                #50 0x00007fdb8caab9c0 PyImport_ImportModule (libpython3.12.so.1.0 + 0x2ab9c0)
                #51 0x00007fdb8c94748b pymain_import_readline (libpython3.12.so.1.0 + 0x14748b)
                #52 0x00007fdb8ca74f5c Py_BytesMain (libpython3.12.so.1.0 + 0x274f5c)
                #53 0x00007fdb8c64614a __libc_start_call_main (libc.so.6 + 0x2814a)
                #54 0x00007fdb8c64620b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2820b)
                #55 0x000055777e8f8095 _start (python3.12 + 0x1095)
                ELF object binary architecture: AMD x86-64

GNU gdb (Fedora Linux) 14.1-1.fc39
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/python3.12...
Reading symbols from /usr/lib/debug/usr/bin/python3.12-3.12.1-2.fc39.x86_64.debug...
[New LWP 5263]

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>

Also,

python -c 'import sys; print(sys.path)'
['', '/usr/lib64/python312.zip', '/usr/lib64/python3.12', '/usr/lib64/python3.12/lib-dynload', '/usr/lib64/python3.12/site-packages', '/usr/lib/python3.12/site-packages']

I’d bet that you have a hardware fault.

What do you see in dmesg when these SEGV happen?

You could try running memtest to see if it finds a fault with your RAM.

You could try removing then reinserting the RAM modules hoping that
any dust will be dislodged and make a reliable contact.

Hi. Thanks for the reply. The dmesg when SEGV happened is as follows.

[   18.880390] warning: `QSampleCache::L' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[   24.201653] systemd-journald[688]: /var/log/journal/03602e61a9df4544ae4e5504330aabf2/user-1000.journal: Journal file uses a different sequence number ID, rotating.
[   56.577091] show_signal: 51 callbacks suppressed
[   56.577093] traps: python[3902] general protection fault ip:7fb2aa178570 sp:7ffd78d83438 error:0 in ld-linux-x86-64.so.2[7fb2aa164000+27000]

I will run a memtest to check if it is a hardware issue. Thanks.

I think your have a RAM problem given that evidence.

1 Like

Hi. Memtest appears to be pass. However, I noticed that the crash happens on python and programs written in it, such as dnf and uvicorn. I have reinstalled all python3-* packages using dnf and the segmentation fault is still happening.

Could it be selinux? sealert appears to crash a lot also.

Thanks.

One problem with memtest86+ is that it doesn’t generate as much heat as CPU/GPU intensive programs, so memory problems that occur frequently when a system is working hard may need a few overnight tests to see a problem.

As @gnwiii said memtest can pass even when there is an itermittent fault with the RAM.
As George said run it for a long time 8 or more hours and see if it still passes.

python is the victim not the cause. I use python extensively and it does not crash like this for me at all.

DId you try reseating the RAM modules as I suggested?

There is another tool that does stress testing of both cpu and ram.
Try y-cruncher available from y-cruncher - A Multi-Threaded Pi Program

For some reason, this thread reminds me of this story.

1 Like

Noted. Reseated the ram before the memtest. Will run the memtest longer. Thanks.

Ran the memtest for around 8 hours. Still passing.

I have also tried swapping ram slots. Removing one stick and test each stick individually and the sigsegv still occurs.

Unfortunately, I don’t have extra Ram to test. Could it be cpu or motherboard issue?

Lol. I guess I should get a geiger counter.

Certainly. The first thing I do with such issues is swap the power supply (easy for me to say, as I worked in lab where most systems were bought in bulk orders so easy to find system that wasn’t being at the moment to serve as a donor). The most common source of random crashes is a bad connection due connector or cable problems. Auto supply stores sell “contact enhancer” due to the number of connectors and computers in today’s cars. Second most often cause is bad electrolytic capacitors (large cylinders with a “cross” on top that are bulging). 3nd most often is a broken circuit trace or bad solder joint that causes crashes when the system is jiggled or tapped with a small hammer. Sometimes you can find the bad joint, but usually you are better off replacing the board. With a donar system you can swap the main board to make sure the problem moves to the donor. Sometimes the problem is on a graphics card.

It’s unlikely, but another thing to check would be to make sure the files in question are not corrupt. Does the following command output anything on your system?

$ rpm -V glibc python3 python3-libs

Also, are you using swap memory that is backed by a HDD or SSD?

Edit: Your virtual memory (swap) configuration looks interesting to me.

* Memory usage (free -m):
                    total        used        free      shared  buff/cache   available
     Mem:           15918        3481        9497         146        3403       12436
     Swap:          40959           0       40959
     
* ZRAM usage (zramctl --output-all):
     NAME       DISKSIZE DATA COMPR ALGORITHM STREAMS ZERO-PAGES TOTAL MEM-LIMIT MEM-USED MIGRATED MOUNTPOINT
     /dev/zram0       8G   4K   80B lzo-rle         4          0   12K        0B      12K       0B [SWAP]

That appears to be showing that you have 40G of swap, but only 8G of it is coming from zram. Where is the rest coming from? What does the swapon command show?

Unfortunately, I don’t have any donor components that I can make use for now.

rpm -V glibc python3 python3-libs

This returns nothing, so it appears that these packages are not corrupted.

I have 32GB of swap memory from SSD

swapon
NAME       TYPE      SIZE USED PRIO
/dev/dm-1  partition  32G   0B   -2
/dev/zram0 partition   8G   0B  100

In that case, does sudo smartctl -x <devpath-to-your-ssd> report any problems/errors from the SSD?

Hi. The output is this

smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.8-200.fc39.x86_64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Phison Driven SSDs
Device Model:     KINGSTON SA400S37480G
Serial Number:    50026B72831500BC
LU WWN Device Id: 5 0026b7 2831500bc
Firmware Version: 020KST17
User Capacity:    480,103,981,056 bytes [480 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
TRIM Command:     Available
Device is:        In smartctl database 7.3/5528
ATA Version is:   ACS-3 T13/2161-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Jan  6 20:29:55 2024 +08
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Unavailable

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (65535) seconds.
Offline data collection
capabilities:                    (0x79) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  30) minutes.
Conveyance self-test routine
recommended polling time:        (   6) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     -O--CK   100   100   000    -    100
  9 Power_On_Hours          -O--CK   100   100   000    -    211
 12 Power_Cycle_Count       -O--CK   100   100   000    -    166
148 Unknown_Attribute       ------   100   100   000    -    0
149 Unknown_Attribute       ------   100   100   000    -    0
167 Write_Protect_Mode      ------   100   100   000    -    0
168 SATA_Phy_Error_Count    -O--C-   100   100   000    -    0
169 Bad_Block_Rate          ------   100   100   000    -    0
170 Bad_Blk_Ct_Lat/Erl      ------   100   100   010    -    0/0
172 Erase_Fail_Count        -O--CK   100   100   000    -    0
173 MaxAvgErase_Ct          ------   100   100   000    -    0
181 Program_Fail_Count      -O--CK   100   100   000    -    0
182 Erase_Fail_Count        ------   100   100   000    -    0
187 Reported_Uncorrect      -O--CK   100   100   000    -    0
192 Unsafe_Shutdown_Count   -O--C-   100   100   000    -    47
194 Temperature_Celsius     -O---K   027   057   000    -    27 (Min/Max 16/57)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
199 SATA_CRC_Error_Count    -O--CK   100   100   000    -    0
218 CRC_Error_Count         -O--CK   100   100   000    -    0
231 SSD_Life_Left           ------   100   100   000    -    99
233 Flash_Writes_GiB        -O--CK   100   100   000    -    619
241 Lifetime_Writes_GiB     -O--CK   100   100   000    -    623
242 Lifetime_Reads_GiB      -O--CK   100   100   000    -    709
244 Average_Erase_Count     ------   100   100   000    -    1
245 Max_Erase_Count         ------   100   100   000    -    4
246 Total_Erase_Count       ------   100   100   000    -    2145
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O     51  Comprehensive SMART error log
0x03       GPL     R/O     64  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log

SMART Extended Comprehensive Error Log Version: 1 (64 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

SCT Commands not supported

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             166  ---  Lifetime Power-On Resets
0x01  0x010  4             211  ---  Power-on Hours
0x01  0x018  6      1308565191  ---  Logical Sectors Written
0x01  0x028  6      1486944758  ---  Logical Sectors Read
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              28  ---  Current Temperature
0x05  0x020  1              57  ---  Highest Temperature
0x05  0x028  1              16  ---  Lowest Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x018  4               0  ---  Number of Interface CRC Errors
0x07  =====  =               =  ===  == Solid State Device Statistics (rev 1) ==
0x07  0x008  1               0  ---  Percentage Used Endurance Indicator
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0008  2            0  Device-to-host non-data FIS retries
0x0009  4            2  Transition from drive PhyRdy to drive PhyNRdy
0x000a  4            2  Device-to-host register FISes sent due to a COMRESET
0x000f  2            0  R_ERR response for host-to-device data FIS, CRC
0x0010  2            0  R_ERR response for host-to-device data FIS, non-CRC
0x0012  2            0  R_ERR response for host-to-device non-data FIS, CRC
0x0013  2            0  R_ERR response for host-to-device non-data FIS, non-CRC

Thanks

I’m not entirely convinced you have a hardware fault. What other programs aside from Python are segfaulting? Perhaps a common pattern will be apparent from what other ones are failing.

That SSD report doesn’t look bad. I wonder if the connection or cable could be bad though? Have you tried running your system without that swap memory enabled?