allen@allen-Intense-PC:~$ linuxcnc -d /home/allen/linuxcnc/configs/Zeta/Zeta.iniDebug mode on + getopts dvlhkr opt + shift 1 + case "" in + '[' -z ']' + tty -s + trap ErrorCheck EXIT + '[' '!' -z /home/allen/linuxcnc/configs/Zeta/Zeta.ini ']' + case "$1" in + INIFILE=/home/allen/linuxcnc/configs/Zeta/Zeta.ini + shift + EXTRA_ARGS= + RUN_IN_PLACE=no + echo RUN_IN_PLACE=no + LINUXCNCVERSION=2.9.0-pre0-1019-g2e0f88e2a + export LINUXCNCVERSION + INIVAR=inivar + HALCMD='halcmd ' + PICKCONFIG='/usr/bin/wish8.6 /usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl' + LINUXCNC_EMCSH=/usr/bin/wish8.6 + echo LINUXCNC_DIR= + echo LINUXCNC_BIN_DIR=/usr/bin + echo LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc + echo LINUXCNC_SCRIPT_DIR= + echo LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules + echo LINUXCNC_CONFIG_DIR= + echo LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs + echo INIVAR=inivar + echo HALCMD=halcmd + echo LINUXCNC_EMCSH=/usr/bin/wish8.6 + export LINUXCNC_TCL_DIR + export LINUXCNC_EMCSH + export LINUXCNC_HELP_DIR + export LINUXCNC_LANG_DIR + export REALTIME + export HALCMD + export LINUXCNC_NCFILES_DIR + '[' -z ']' + echo 'LINUXCNC - 2.9.0-pre0-1019-g2e0f88e2a' LINUXCNC - 2.9.0-pre0-1019-g2e0f88e2a + '[' '!' -z '' ']' + '[' '!' -n /home/allen/linuxcnc/configs/Zeta/Zeta.ini ']' + '[' '!' -n /home/allen/linuxcnc/configs/Zeta/Zeta.ini ']' ++ handle_includes /home/allen/linuxcnc/configs/Zeta/Zeta.ini ++ hdr='# handle_includes():' ++ inifile=/home/allen/linuxcnc/configs/Zeta/Zeta.ini +++ dirname /home/allen/linuxcnc/configs/Zeta/Zeta.ini ++ cd /home/allen/linuxcnc/configs/Zeta ++ /bin/grep '^#INCLUDE' /home/allen/linuxcnc/configs/Zeta/Zeta.ini ++ status=1 ++ '[' 1 -ne 0 ']' ++ echo /home/allen/linuxcnc/configs/Zeta/Zeta.ini ++ return 0 + INIFILE=/home/allen/linuxcnc/configs/Zeta/Zeta.ini + INI_NAME=Zeta.ini + INI_DIR=/home/allen/linuxcnc/configs/Zeta + CONFIG_DIR=/home/allen/linuxcnc/configs/Zeta + export CONFIG_DIR + export PATH=/home/allen/linuxcnc/configs/Zeta/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games + PATH=/home/allen/linuxcnc/configs/Zeta/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games + '[' -z ']' + echo 'Machine configuration directory is '\''/home/allen/linuxcnc/configs/Zeta'\''' Machine configuration directory is '/home/allen/linuxcnc/configs/Zeta' + echo 'Machine configuration file is '\''Zeta.ini'\''' Machine configuration file is 'Zeta.ini' + '[' '!' -f /home/allen/linuxcnc/configs/Zeta/Zeta.ini ']' + echo INIFILE=/home/allen/linuxcnc/configs/Zeta/Zeta.ini + retval= + GetFromIni VERSION EMC + name=VERSION ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var VERSION -sec EMC + retval=1.1 + '[' '!' -n VERSION ']' + echo VERSION=1.1 + '[' 1.1 '!=' 1.1 ']' + /usr/bin/tclsh8.6 /usr/share/linuxcnc/hallib/check_config.tcl /home/allen/linuxcnc/configs/Zeta/Zeta.ini + exitval=0 + case "$exitval" in + GetFromIni PARAMETER_FILE RS274NGC + name=PARAMETER_FILE ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var PARAMETER_FILE -sec RS274NGC + retval=linuxcnc.var + '[' '!' -n PARAMETER_FILE ']' + echo PARAMETER_FILE=linuxcnc.var + RS274NGC_PARAMFILE=linuxcnc.var + GetFromIniEx MOT MOT EMCMOT EMCMOT motmod + original_var='[MOT]MOT' + '[' 5 -ge 2 ']' ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var MOT -sec MOT + retval= + shift 2 + '[' 3 -ge 2 ']' ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var EMCMOT -sec EMCMOT + retval=motmod + return + EMCMOT=motmod.so + GetFromIniEx IO IO EMCIO EMCIO io + original_var='[IO]IO' + '[' 5 -ge 2 ']' ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var IO -sec IO + retval= + shift 2 + '[' 3 -ge 2 ']' ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var EMCIO -sec EMCIO + retval=io + return + EMCIO=io + GetFromIni TASK TASK + name=TASK ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var TASK -sec TASK + retval=milltask + '[' '!' -n TASK ']' + echo TASK=milltask + EMCTASK=milltask + '[' milltask = emctask ']' + EMCSERVER=linuxcncsvr + GetFromIniQuiet HALUI HAL + name=HALUI ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var HALUI -sec HAL + retval=halui + '[' '!' -n HALUI ']' + echo HALUI=halui + HALUI=halui + GetFromIni DISPLAY DISPLAY + name=DISPLAY ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var DISPLAY -sec DISPLAY + retval=axis + '[' '!' -n DISPLAY ']' + echo DISPLAY=axis ++ set -- axis ++ echo axis + EMCDISPLAY=axis ++ set -- axis ++ shift ++ echo + EMCDISPLAYARGS= + case $EMCDISPLAY in + GetFromIniEx NML_FILE LINUXCNC NML_FILE EMC /usr/share/linuxcnc/linuxcnc.nml + original_var='[LINUXCNC]NML_FILE' + '[' 5 -ge 2 ']' ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var NML_FILE -sec LINUXCNC + retval= + shift 2 + '[' 3 -ge 2 ']' ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var NML_FILE -sec EMC + retval= + shift 2 + '[' 1 -ge 2 ']' + '[' 1 -eq 0 ']' + retval=/usr/share/linuxcnc/linuxcnc.nml + NMLFILE=/usr/share/linuxcnc/linuxcnc.nml + export NMLFILE + GetFromIni COORDINATES TRAJ + name=COORDINATES ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var COORDINATES -sec TRAJ + retval=XYYZ + '[' '!' -n COORDINATES ']' + echo COORDINATES=XYYZ + TRAJ_COORDINATES=XYYZ + export TRAJ_COORDINATES + GetFromIni KINEMATICS KINS + name=KINEMATICS ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var KINEMATICS -sec KINS + retval='trivkins coordinates=XYYZ kinstype=BOTH' + '[' '!' -n KINEMATICS ']' + echo 'KINEMATICS=trivkins coordinates=XYYZ kinstype=BOTH' + KINS_KINEMATICS='trivkins coordinates=XYYZ kinstype=BOTH' + export KINS_KINEMATICS + KILL_TASK= + KILL_TIMEOUT=20 + LOCKFILE=/tmp/linuxcnc.lock + '[' -f /tmp/linuxcnc.lock ']' + echo Starting LinuxCNC... Starting LinuxCNC... + trap 'Cleanup ; exit 0' SIGINT SIGTERM + cd /home/allen/linuxcnc/configs/Zeta + touch /tmp/linuxcnc.lock ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var INTRO_GRAPHIC -sec DISPLAY + img=linuxcnc.gif ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var INTRO_TIME -sec DISPLAY + imgtime=5 + '[' 5 = '' ']' + '[' linuxcnc.gif '!=' '' ']' + '[' -e linuxcnc.gif ']' + '[' -e /home/allen/linuxcnc/configs/Zeta/linuxcnc.gif ']' + '[' -e /usr/share/linuxcnc/linuxcnc.gif ']' + img=/usr/share/linuxcnc/linuxcnc.gif + '[' /usr/share/linuxcnc/linuxcnc.gif '!=' '' ']' + '[' -x /usr/lib/tcltk/linuxcnc/bin/popimage ']' + echo 'Starting LinuxCNC server program: linuxcncsvr' + program_available linuxcncsvr + type -path linuxcncsvr + export INI_FILE_NAME=/home/allen/linuxcnc/configs/Zeta/Zeta.ini + INI_FILE_NAME=/home/allen/linuxcnc/configs/Zeta/Zeta.ini + linuxcncsvr -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini + /usr/lib/tcltk/linuxcnc/bin/popimage /usr/share/linuxcnc/linuxcnc.gif 5 + echo 'Loading Real Time OS, RTAPI, and HAL_LIB modules' + /etc/init.d/realtime start + export HAL_RTMOD_DIR=/usr/lib/linuxcnc/modules + HAL_RTMOD_DIR=/usr/lib/linuxcnc/modules + '[' io '!=' '' ']' + echo 'Starting LinuxCNC IO program: io' + program_available io + type -path io + halcmd loadusr -Wn iocontrol io -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini + '[' -n halui ']' + echo 'Starting HAL User Interface program: halui' + program_available halui + type -path halui + halcmd loadusr -Wn halui halui -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var TWOPASS -sec HAL -num 1 + TWOPASS= + '[' -n '' ']' + NUM=1 ++ inivar -tildeexpand -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var HALFILE -sec HAL -num 1 + CFGFILE=Zeta.hal + '[' -n Zeta.hal ']' + IFS='\ ' + read CFGFILE CFGFILE_ARGS + foundmsg= + saveIFS=' ' + IFS=: + explicit_file_in_hallib=Zeta.hal + '[' -z Zeta.hal ']' + '[' Zeta.hal '!=' Zeta.hal ']' + '[' Z = / ']' + for pathdir in $HALLIB_PATH + foundfile=./Zeta.hal + '[' -r ./Zeta.hal ']' + '[' . = . ']' + foundmsg='Found file(REL): ./Zeta.hal' + break + '[' -d ./Zeta.hal ']' + IFS=' ' + '[' -z 'Found file(REL): ./Zeta.hal' ']' + echo 'Found file(REL): ./Zeta.hal' Found file(REL): ./Zeta.hal + CFGFILE=./Zeta.hal + case $CFGFILE in + halcmd -i /home/allen/linuxcnc/configs/Zeta/Zeta.ini -f ./Zeta.hal ./Zeta.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth ./Zeta.hal:9: /usr/bin/rtapi_app exited without becoming ready ./Zeta.hal:9: insmod for hm2_eth failed, returned -1 + '[' '' = '' ']' + Cleanup + echo 'Shutting down and cleaning up LinuxCNC...' Shutting down and cleaning up LinuxCNC... + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x linuxcncpanel + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x iosh + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x linuxcncsh + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x linuxcncrsh + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x linuxcnctop + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x mdi + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x debuglevel + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x gmoccapy + for KILL_TASK in linuxcncpanel iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel gmoccapy gscreen + /bin/pidof -x gscreen + program_available axis-remote + type -path axis-remote + '[' '!' -z :0 ']' + axis-remote --ping + '[' '' = other ']' ++ inivar -ini /home/allen/linuxcnc/configs/Zeta/Zeta.ini -var SHUTDOWN -sec HAL + SHUTDOWN=shutdown.hal + '[' -n shutdown.hal ']' + echo 'Running HAL shutdown script' Running HAL shutdown script + halcmd -f shutdown.hal + for KILL_TASK in linuxcncsvr milltask + /bin/pidof -x linuxcncsvr 28777 + KillTaskWithTimeout + '[' '!' -n '' ']' ++ /bin/pidof -x linuxcncsvr + KILL_PIDS=28777 + '[' '!' -n 28777 ']' + local NPROCS + for KILL_PID in $KILL_PIDS + /bin/ps -o comm= 28777 + /bin/grep -q '' + /bin/kill 28777 + WAIT=20 + '[' 20 -gt 1 ']' ++ /bin/ps -o comm= 28777 ++ /bin/grep -v '' ++ wc -l + NPROCS=0 + '[' 0 -gt 0 ']' + WAIT=0 + '[' 0 -gt 1 ']' + '[' 0 -gt 0 ']' + '[' 0 -gt 0 ']' + KILL_PIDS= + KILL_TASK= + for KILL_TASK in linuxcncsvr milltask + /bin/pidof -x milltask + echo 'Stopping realtime threads' Stopping realtime threads + halcmd stop + echo 'Unloading hal components' Unloading hal components + halcmd unload all ++ seq 10 + for i in `seq 10` ++ halcmd list comp ++ wc -w + '[' 6 = 1 ']' + sleep .2 + for i in `seq 10` ++ halcmd list comp ++ wc -w + '[' 1 = 1 ']' + break + echo 'Removing HAL_LIB, RTAPI, and Real Time OS modules' + /etc/init.d/realtime stop + echo 'Removing NML shared memory segments' + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1001 + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1002 + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1003 + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1004 + read b x t x x x x x x m x + case $b$t in + ipcrm -M 1005 + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + case $b$t in + read b x t x x x x x x m x + '[' -f /tmp/linuxcnc.lock ']' + rm /tmp/linuxcnc.lock + exit -1 + ErrorCheck + result=255 + '[' '!' -z :0 ']' + echo 'catch {send -async popimage destroy .}; destroy .' + /usr/bin/wish8.6 + '[' 255 -ne 0 ']' + tty -s + '[' -f /dev/fd/2 ']' + echo '(debug information was sent to stderr)' + '[' -f /tmp/linuxcnc.print.SF5zgV ']' + cp /tmp/linuxcnc.print.SF5zgV /home/allen/linuxcnc_print.txt + echo 'LinuxCNC terminated with an error. You can find more information in the log: /home/allen/linuxcnc_debug.txt and /home/allen/linuxcnc_print.txt as well as in the output of the shell command '\''dmesg'\'' and in the terminal' LinuxCNC terminated with an error. You can find more information in the log: /home/allen/linuxcnc_debug.txt and /home/allen/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal + rm -f /dev/fd/2 /tmp/linuxcnc.print.SF5zgV + exit 255 allen@allen-Intense-PC:~$