LinuxCNC Crashes During Milling

More
25 Apr 2013 19:30 #33192 by vlado4
Hi all,

I am relatively new to LinuxCNC, but have had success installing it and am very excited to use this tool more. Looks like a great tool and it is amazing that something like this is open source and available to everyone to use and tweak.

Although my installation worked well initially, I am now having some trouble with LinuxCNC crashing in the middle of milling. The axes simply stop and I receive an debug screen (attached below). The error message indicates a "segfault" .... What could be causing this? How can I debug it further?

Really would like to fix this issue, since it is hard to restart the milling operation in the same spot, and the piece is often ruined. Would really appreciate any suggestions or help with this issue.

Cheers!



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.24-16-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.4
LINUXCNC - 2.5.2
Machine configuration directory is '/home/vlado/linuxcnc/configs/Plato-mill'
Machine configuration file is 'Plato-mill.ini'
INIFILE=/home/vlado/linuxcnc/configs/Plato-mill/Plato-mill.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
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 TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=5018
Killing task milltask, PID=5145
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:  5146 Segmentation fault      $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
5018
  PID TTY      STAT   TIME COMMAND
5145
  PID TTY      STAT   TIME COMMAND
 5145 ?        Z      0:21 [milltask] <defunct>
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[  730.467219] I-pipe: Domain RTAI registered.
[  730.467233] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04.
[  730.467236] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
[  730.467241] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[  730.467244] PIPELINE layers:
[  730.467246] f8d12000 9ac15d93 RTAI 200
[  730.467248] c0383180 0 Linux 100
[  730.487663] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[  730.488198] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[  730.488203] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[  730.488207] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 2144427000 hz.
[  730.488210] RTAI[sched]: timer setup = 2010 ns, resched latency = 2688 ns.
[  730.581775] RTAI[math]: loaded.
[  730.595989] rtapi: no version for "nano2count" found: kernel tainted.
[  730.767494] config string '0x378 out  '
[ 3041.866354] axis[5146]: segfault at c08b2fb4 eip 080c65c9 esp bf8b2f70 error 7
[ 3044.602044] RTAI[math]: unloaded.
[ 3044.661910] SCHED releases registered named ALIEN RTGLBH
[ 3044.678212] RTAI[malloc]: unloaded.
[ 3044.777158] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 3044.779588] I-pipe: Domain RTAI unregistered.
[ 3044.779600] RTAI[hal]: unmounted.

Please Log in or Create an account to join the conversation.

More
25 Apr 2013 21:48 - 25 Apr 2013 22:04 #33200 by PCW
Replied by PCW on topic LinuxCNC Crashes During Milling
Looks like it crashed in Axis:

[ 3041.866354] axis[5146]: segfault at c08b2fb4 eip 080c65c9 esp bf8b2f70 error 7

Its this always the case?

Also looks like a pagefault in a user mode write if my error decoding is correct

If it crashes in random places (in the code, that is the segfault message is different)
it may indicate a hardware problem
Last edit: 25 Apr 2013 22:04 by PCW.

Please Log in or Create an account to join the conversation.

More
27 Apr 2013 00:14 #33254 by jmelson

Looks like it crashed in Axis:

[ 3041.866354] axis[5146]: segfault at c08b2fb4 eip 080c65c9 esp bf8b2f70 error 7

Its this always the case?

Also looks like a pagefault in a user mode write if my error decoding is correct

If it crashes in random places (in the code, that is the segfault message is different)
it may indicate a hardware problem

YIKES! This is a bit scary.

I think we need a lot more info on your system, environment, etc.
Is this a new computer? What specs, model, etc.
Do you have any special hardware connected to this system, such
as wi-fi, wireless keyboard or mouse, USB pendant, etc?
What graphics card is used?
How are you connecting to the machine? Software stepping over
parallel port or some external motion interface?
As this appears to be the latest version, 2.5.2, it is possible
there could be a software bug that is triggered by something in
your setup, but I might suggest running the MEMTEST86
program which at least used to be included on the install
CD, you can boot if from the CD. Let it run for at least
an hour and see if it turns up anything. Especially if the
failures are in random programs and not always in Axis.

Jon

Please Log in or Create an account to join the conversation.

Time to create page: 0.292 seconds
Powered by Kunena Forum