Skip to content

monitor_cpu -f' terminated by signal SIGSEGV (Address boundary error) #20

@spinktvis

Description

@spinktvis

Installed the AUR package successfully, however when trying to run the included monitor_cpu it spits out the following error:

╭────────────────────────────────────────────────┬─────────────────────────────────────────────────╮
│                                      CPU Model │            AMD Ryzen 7 7800X3D 8-Core Processor │
│                            Processor Code Name │                                         Raphael │
│                             Core Configuration │                                       8 (0-0-5) │
fish: Job 1, 'sudo monitor_cpu -f' terminated by signal SIGSEGV (Address boundary error)

journal entry:

Jul 24 17:06:51 anarchy kernel: monitor_cpu[9422]: segfault at 0 ip 00007f9dcafa1158 sp 00007fff8e918a88 error 4 in libc.so.6[1a1158,7f9dcae24000+18d000] likely on CPU 0 (core 0, socket 0)
Jul 24 17:06:51 anarchy kernel: Code: 00 00 0f bc c0 48 01 f8 40 3a 30 75 01 c3 31 c0 c3 90 f3 0f 1e fa 62 e2 7d 28 7a c6 89 f8 25 ff 0f 00 00 3d e0 0f 00 00 77 4b <62> e1 fe 28 6f 0f 62 a1 fd 20 ef d1 62 a1 75 20 da d2 62 b2 6e 20

Running the python monitor_cpu.py from this repo instead gives the following error:

sudo python3 ./monitor_cpu.py -f
WARNING: PM Table version is unsupported. Press any key to continue anyway. Output may be wrong.

Traceback (most recent call last):
  File "/ryzen_smu-main/scripts/./monitor_cpu.py", line 332, in <module>
    main()
    ~~~~^^
  File "/ryzen_smu-main/scripts/./monitor_cpu.py", line 328, in main
    parse_pm_table()
    ~~~~~~~~~~~~~~^^
  File "/ryzen_smu-main/scripts/./monitor_cpu.py", line 211, in parse_pm_table
    codename = getCodeName()
  File "/ryzen_smu-main/scripts/./monitor_cpu.py", line 123, in getCodeName
    return codenames[int(args)]
           ~~~~~~~~~^^^^^^^^^^^
IndexError: list index out of range

Some additional system info:

inxi
CPU: 8-core AMD Ryzen 7 7800X3D (-MT MCP-) speed/min/max: 2983/426/5053 MHz
Kernel: 6.15.7-3-cachyos x86_64 Up: 2h 13m Mem: 4.13/31 GiB (13.3%)
Storage: 15.01 TiB (60.3% used) Procs: 362 Shell: fish inxi: 3.3.38

python package:
Name            : python
Version         : 3.13.5-2

dmesg | grep ryzen
[    5.647169] ryzen_smu: loading version: 0.1.7
[    5.647170] ryzen_smu: CPUID: family 0x19, model 0x61, stepping 0x2, package 0x0
[    5.647172] ryzen_smu: Family Codename: Raphael
[    5.647203] ryzen_smu: SMU v84.79.225

sudo ls -lah /sys/kernel/ryzen_smu_drv
total 0
drwxr-xr-x  2 root root    0 Jul 24 17:25 .
drwxr-xr-x 18 root root    0 Jul 24 15:24 ..
-r--r--r--  1 root root 4.0K Jul 24 17:06 codename
-r--r--r--  1 root root 4.0K Jul 24 17:06 drv_version
-rw-r--r--  1 root root 4.0K Jul 24 17:06 hsmp_smu_cmd
-r--r--r--  1 root root 4.0K Jul 24 17:06 mp1_if_version
-rw-r--r--  1 root root 4.0K Jul 24 17:06 mp1_smu_cmd
-r--r--r--  1 root root 4.0K Jul 24 17:06 pm_table
-r--r--r--  1 root root 4.0K Jul 24 17:06 pm_table_size
-r--r--r--  1 root root 4.0K Jul 24 17:06 pm_table_version
-rw-r--r--  1 root root 4.0K Jul 24 17:06 rsmu_cmd
-rw-r--r--  1 root root 4.0K Jul 24 17:06 smn
-rw-r--r--  1 root root 4.0K Jul 24 17:06 smu_args
-r--r--r--  1 root root 4.0K Jul 24 17:06 version

sudo cat /sys/kernel/ryzen_smu_drv/version
84.79.225

sudo cat /sys/kernel/ryzen_smu_drv/mp1_if_version
2

sudo cat /sys/kernel/ryzen_smu_drv/codename
20

sudo cat /sys/kernel/ryzen_smu_drv/drv_version
0.1.7

Running test.py spits out an unhelpful error:

sudo python3 ./test.py

SMU Test: Failed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions