I configured a step configuration with the wizard
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-5.4.258-rtai-amd64/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.3
Machine configuration directory is '/home/cnc/linuxcnc/configs/my-mill'
Machine configuration file is 'my-mill.ini'
INIFILE=/home/cnc/linuxcnc/configs/my-mill/my-mill.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=gmoccapy
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./my-mill.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: gmoccapy
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
ERROR: Can't remove RTAI modules, kill the following process(es) first
1563Removing NML shared memory segments
Debug file information:
Exception ignored error evaluating path:
Traceback (most recent call last):
File "<frozen getpath>", line 575, in <module>
File "<frozen getpath>", line 210, in search_up
File "<frozen getpath>", line 210, in <genexpr>
ValueError: embedded null character
Fatal Python error: error evaluating path
Python runtime state: core initialized
Current thread 0x00007fb818429040 (most recent call first):
<no Python frame>
/usr/bin/linuxcnc: line 665: 1572 Segmentation fault $PIDOF $KILL_TASK >> $DEBUG_FILE
Traceback (most recent call last):
File "/usr/bin/axis-remote", line 26, in <module>
import sys, getopt, os
import sys, getopt, os
File "/usr/lib/python3.11/getopt.py", line 38, in <module>
from gettext import gettext as _
File "/usr/lib/python3.11/gettext.py", line 50, in <module>
import re
File "/usr/lib/python3.11/re/__init__.py", line 124, in <module>
import enum
File "/usr/lib/python3.11/enum.py", line 3, in <module>
from types import MappingProxyType, DynamicClassAttribute
SystemError: error return without exception set
1511
/usr/bin/linuxcnc: line 620: [: -gt: unary operator expected
1567
malloc(): unsorted double linked list corrupted
Stopping realtime threads
Unloading hal components
Waiting for component 'inihal' to become ready...................... USER PID ACCESS COMMAND
/dev/rtai_shm: cnc ....m halcmd
................
Kernel message information:
[ 511.133992] I-pipe: head domain RTAI registered.
[ 511.133998] RTAI[hal]: mounted. ISOL_CPUS_MASK: 0.
[ 511.134006] SYSINFO - # CPUs: 1, TIMER NAME: 'lapic', TIMER IRQ: 4355, TIMER FREQ: 10390249, CLOCK NAME: 'tsc', CLOCK FREQ: 1662499000, CPU FREQ: 1662499000, LINUX TIMER IRQ: 4355.
[ 511.186056] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 511.186122] kstacks pool size = 524288 bytes
[ 511.186133] RTAI[sched]: hard timer type/freq = lapic/10390249(Hz)
[ 511.186136] linear timed lists.
[ 511.186139] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1662499000 hz.
[ 511.186142] RTAI[sched]: timer setup = 96 ns, resched latency = 0 ns.
[ 511.222685] USERMODE CHECK: OK.
[ 511.222690] USERMODE CHECK PROVIDED (ns): KernelLatency 4491, UserLatency 1954.
[ 511.222694] FINAL CALIBRATION SUMMARY (ns): KernelLatency 4491, UserLatency 1954.
[ 511.361573] RTAI[math]: loaded integrated musl libm version 1.2.3.
[ 511.767184] config string '0 out'
[ 512.090484] hal_manualtoolc[1557]: segfault at ab ip 0000000000561d90 sp 00007ffc12846810 error 4 in python3.11[41f000+2b3000]
[ 512.090506] Code: 40 08 48 85 c0 0f 85 7f 00 00 00 49 81 ff c0 9c 95 00 74 09 4d 85 ff 0f 85 9c 00 00 00 48 85 db 0f 84 1c 02 00 00 48 8b 43 08 <f6> 80 ab 00 00 00 40 0f 85 83 01 00 00 4d 85 ed 74 05 49 83 45 00
[ 512.189738] pidof[1572]: segfault at 18 ip 00007f6219198087 sp 00007ffe7fc3ec70 error 4 in libc.so.6[7f6219129000+156000]
[ 512.189756] Code: 1f 40 00 48 83 ec 08 48 8b 4f 08 48 89 c8 48 83 e0 f8 48 3b 04 07 0f 85 a9 00 00 00 f3 0f 6f 47 10 48 8b 57 18 66 48 0f 7e c0 <48> 3b 78 18 75 7b 48 3b 7a 10 75 75 48 8b 77 10 48 89 50 18 66 0f
Edit: i ran the command halrun -U
I think the rtapi module is not loaded