Error after install linuxcnc-dev
I am working on a new driver for my machine and I got into some problem. Since I install the linuxcnc-dev package, I always get a error when I try to start linuxcnc with the sim axis_mm configuration. The same configuration was running fine before.
I can't still run hal without any trouble but linuxcnc is giving me the following error:
Print file information:
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-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.2
Machine configuration directory is '/home/safarir/linuxcnc/configs/sim/axis'
Machine configuration file is 'axis_mm.ini'
INIFILE=/home/safarir/linuxcnc/configs/sim/axis/axis_mm.ini
PARAMETER_FILE=sim_mm.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Starting TASK program: milltask
Starting DISPLAY program: axis
Unexpected realtime delay: check dmesg for details.
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=12458
Killing task milltask, PID=12521
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
/usr/bin/linuxcnc: line 687: 12522 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
12458
PID TTY STAT TIME COMMAND
12521
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Kernel message information:
[ 953.745700] I-pipe: Domain RTAI registered.
[ 953.745703] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 953.745704] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 953.745706] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 953.745707] PIPELINE layers:
[ 953.745709] f3581e20 9ac15d93 RTAI 200
[ 953.745710] c085cb20 0 Linux 100
[ 953.757365] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 953.757466] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 953.757468] RTAI[sched]: hard timer type/freq = APIC/27998249(Hz); default timing: periodic; linear timed lists.
[ 953.757470] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 2692503000 hz.
[ 953.757471] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 953.757520] RTAI[usi]: enabled.
[ 953.794871] RTAI[math]: loaded.
[ 954.180627]
[ 954.180629] In recent history there were
[ 954.180630] 2703411, 2768098, 2632930, 2936347, and 2449407
[ 954.180630] elapsed clocks between calls to the motion controller.
[ 954.180632] This time, there were 3068367 which is so anomalously
[ 954.180633] large that it probably signifies a problem with your
[ 954.180633] realtime configuration. For the rest of this run of
[ 954.180634] EMC, this message will be suppressed.
[ 954.180634]
[ 954.271133] axis[12522]: segfault at b77e5000 ip 00469793 sp bfb6d438 error 4 in libc-2.11.1.so[353000+159000]
[ 956.495788] RTAI[math]: unloaded.
[ 956.516819] SCHED releases registered named ALIEN RTGLBH
[ 956.531633] RTAI[malloc]: unloaded.
[ 956.630780] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 956.632368] I-pipe: Domain RTAI unregistered.
[ 956.632372] RTAI[hal]: unmounted.
I am running in a virtual machine for my development, soo I dont really care about the timing error.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I have had similar errors in the past running a sim config from one version on another version.
It is hard to see how installing the -dev package could make any difference, none of the files are needed to run.
You show running 2.5.2, is it possible you were on 2.5.1 or lower before and installed the -dev package for 2.5.2 which automatically updated linuxcnc to 2.5.2 as well?
What happens if you run the axis_mm config that is in Sample Configs > sim > axis > axis_mm, instead of the one in you home directory?
If that works, copy it over to your home directory, or do a diff to establish what changed, if your home folder one is modified.
regards
Please Log in or Create an account to join the conversation.