Skip to content

Instantly share code, notes, and snippets.

@zultron
Created November 22, 2013 16:42
Show Gist options
  • Save zultron/7602949 to your computer and use it in GitHub Desktop.
Save zultron/7602949 to your computer and use it in GitHub Desktop.
Output from manual run of LinuxCNC halui-jogging test wit debugging turned on.
bash-4.1$ export MSGD_OPTS=-s
bash-4.1$ export DEBUG=5
bash-4.1$ linuxcnc -r tests/halui-jogging/halui.ini
Machine configuration file is 'halui.ini'
Starting LinuxCNC...
msgd:0: startup instance=inst0 pid=12056 flavor=posix rtlevel=5 usrlevel=5 halsize=512000 shm=Posix gcc=4.4.7 20120313 (Red Hat 4.4.7-3) git=v~~
msgd:0: rtapi_app:12058:user master:0 started pid=12058 gcc=4.4.7 20120313 (Red Hat 4.4.7-3) git=v~~
io started
msgd:0: rtapi_app:12058:user rtapi_app: handle:0 retrieved posix v~~
msgd:0: rtapi:-1:rt RTAPI:0 posix v~~ init
msgd:0: rtapi_app:12058:user rtapi: loaded from rtapi.so
msgd:0: rtapi:-1:rt HAL_LIB:0 loading RT support gd=0xb7676000p
msgd:0: rtapi:-1:rt RTAPI: initing module HAL_LIB
msgd:0: rtapi:-1:rt RTAPI: module 'HAL_LIB' loaded, ID: 32769
msgd:0: rtapi:-1:rt HAL_LIB:0 kernel lib installed successfully
msgd:0: rtapi_app:12058:user hal_lib: loaded from hal_lib.so
msgd:0: rtapi_app:12058:user rtapi_app:0 initialization complete
msgd:0: hal_lib:12059:user HAL: initializing hal_lib
msgd:0: hal_lib:12059:user HAL: hal_rtapi_attach(): HAL shm segment attached
msgd:0: hal_lib:12059:user HAL: component 'halcmd12059' initialized, ID = 01
msgd:0: hal_lib:12059:user HAL: hal_rtapi_detach(): HAL shm segment detached
msgd:0: hal_lib:12059:user HAL: initializing hal_lib
msgd:0: hal_lib:12059:user HAL: hal_rtapi_attach(): HAL shm segment attached
msgd:0: hal_lib:12060:user io
msgd:0: hal_lib:12060:user -ini
msgd:0: hal_lib:12060:user /home/buildbot/slave/sl6-32-posix-ubc/build/source/tests/halui-jogging/halui.ini
msgd:0: hal_lib:12060:user
msgd:0: hal_lib:12060:user HAL: initializing hal_lib
msgd:0: hal_lib:12060:user HAL: hal_rtapi_attach(): HAL shm segment attached
msgd:0: hal_lib:12060:user HAL: component 'iocontrol' initialized, ID = 04
<commandline>:0: Component 'iocontrol' ready
<commandline>:0: Program 'io' started
halcmd loadusr io started
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.user-enable-out'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.user-request-enable'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.coolant-flood'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.coolant-mist'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.lube'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.tool-prepare'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.tool-number'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.tool-prep-number'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.tool-prep-pocket'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.tool-prepared'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.tool-change'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.tool-changed'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.emc-enable-in'
msgd:0: hal_lib:12060:user HAL: creating pin 'iocontrol.0.lube_level'
msgd:0: hal_lib:12059:user HAL: removing component 01
msgd:0: hal_lib:12059:user HAL: component 01 removed, name = 'halcmd12059'
msgd:0: hal_lib:12059:user HAL: hal_rtapi_detach(): HAL shm segment detached
msgd:0: hal_lib:12059:user _ulapi_cleanup():
msgd:0: hal_lib:12059:user ULAPI:0 v~~ exit
libnml/os_intf/_shm.c 209: shmget(1004(0x3EC),1024,0) failed: (errno = 2): No such file or directory
libnml/os_intf/_shm.c 228: No shared memory buffer exists for this key and the IPC_CREAT was not given.
libnml/os_intf/_shm.c 416: rcs_shm_nattch: shmctl failed: Invalid argument
libnml/cms/cms_cfg.cc 916: cms_config: -4(CMS_NO_MASTER_ERROR: An error occured becouse the master was not started.) Error occured during SHMEM create.
libnml/nml/nml.cc 368: NML: cms_config returned -1.
**********************************************************
* Current Directory = /home/buildbot/slave/sl6-32-posix-ubc/build/source/tests/halui-jogging
*
**********************************************************
* BufferName = toolCmd
* BufferType = 0
* ProcessName = tool
* Configuration File = /home/buildbot/slave/sl6-32-posix-ubc/build/source/configs/common/linuxcnc.nml
* CMS Status = -4 (CMS_NO_MASTER_ERROR: An error occured becouse the master was not started.)
* Recent errors repeated:
cms_config: -4(CMS_NO_MASTER_ERROR: An error occured becouse the master was not started.) Error occ
NML: cms_config returned -1.
No shared memory buffer exists for this key and the IPC_CREAT was not given.
rcs_shm_nattch: shmctl failed: Invalid argument
* BufferLine: B toolCmd SHMEM localhost 1024 0 0 4 16 1004 TCP=5005 xdr
* ProcessLine: P tool toolCmd LOCAL localhost R 0 1.0 0 3
* Config File = /home/buildbot/slave/sl6-32-posix-ubc/build/source/configs/common/linuxcnc.nml
* error_type = 0 (NML_NO_ERROR)
************************************************************
msgd:0: hal_lib:12060:user emcToolCmd buffer not available
libnml/os_intf/_shm.c 209: shmget(1005(0x3ED),8192,0) failed: (errno = 2): No such file or directory
libnml/os_intf/_shm.c 228: No shared memory buffer exists for this key and the IPC_CREAT was not given.
libnml/os_intf/_shm.c 416: rcs_shm_nattch: shmctl failed: Invalid argument
libnml/cms/cms_cfg.cc 916: cms_config: -4(CMS_NO_MASTER_ERROR: An error occured becouse the master was not started.) Error occured during SHMEM create.
libnml/nml/nml.cc 368: NML: cms_config returned -1.
@mhaberler
Copy link

I think this means task hasnt started or got around to init the NML buffers yet, for reasons which cant be told from this log

any chance you run this with DEBUG=0xffffffff in the .ini ?

is there any particular commit which tripped this error?

-m

@zultron
Copy link
Author

zultron commented Nov 24, 2013

Cause is documented in machinekit/machinekit#65. Thanks, Michael!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment