Build fault

More
07 Jun 2013 19:36 #35400 by LAIR82
Build fault was created by LAIR82
Hello Guys,

I was making some updates to one of my builds and got this fault when trying to run linux,

cinci15cc@cinci15cc-desktop:~/linuxcnc-dev$ linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/cinci15cc/linuxcnc/configs/15cc'
Machine configuration file is 'mygscreen.ini'
Starting LinuxCNC...
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 159: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
RTAPI: ERROR: could not open shared memory (errno=2)
/home/cinci15cc/linuxcnc-dev/scripts/linuxcnc: line 437: 10254 Segmentation fault $HALCMD -f $SHUTDOWN
RTAPI: ERROR: could not open shared memory (errno=2)
/home/cinci15cc/linuxcnc-dev/scripts/linuxcnc: line 437: 10261 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/cinci15cc/linuxcnc-dev/scripts/linuxcnc: line 437: 10262 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 192: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 192: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 192: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 192: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 192: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 192: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/cinci15cc/linuxcnc-dev/scripts/realtime: line 192: /home/cinci15cc/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/cinci15cc/linuxcnc_debug.txt
and
/home/cinci15cc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
cinci15cc@cinci15cc-desktop:~/linuxcnc-dev$


Any thoughts?

Thanks Rick

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

More
07 Jun 2013 20:11 #35404 by LAIR82
Replied by LAIR82 on topic Build fault
Disregard,

I started over from the top with the reset/hard for master and it started fine this time.


Thanks

Rick

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

More
11 Jun 2013 21:45 #35532 by LAIR82
Replied by LAIR82 on topic Build fault
Ok, I must be doing something wrong, I was having issues on my 10" machine with it reading tools, so I did " sudo make clean" in my src directory, then went through with re-compiling. After I ran the ". ./scripts/rip-environment" then "linuxcnc" and picked my configuration, and here is the result.

Any thoughts, or suggestions

Terminal Printout

you now need to run 'sudo make setuid' in order to run in place.
make: Leaving directory `/home/srt/linuxcnc-dev/src'
srt@Cinci:~/linuxcnc-dev/src$ sudo make setuid
make: Entering directory `/home/srt/linuxcnc-dev/src'
chown root ../bin/linuxcnc_module_helper
chmod 4750 ../bin/linuxcnc_module_helper
chown root ../bin/pci_write
chmod 4750 ../bin/pci_write
chown root ../bin/pci_read
chmod 4750 ../bin/pci_read
make: Leaving directory `/home/srt/linuxcnc-dev/src'
srt@Cinci:~/linuxcnc-dev/src$ cd ..
srt@Cinci:~/linuxcnc-dev$ . ./scripts/rip-environment
srt@Cinci:~/linuxcnc-dev$ linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/srt/linuxcnc/configs/cinlathe'
Machine configuration file is '10ccgscreen.ini'
Starting LinuxCNC...
/home/srt/linuxcnc-dev/scripts/realtime: line 159: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
/home/srt/linuxcnc-dev/scripts/linuxcnc: line 437: 15004 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/srt/linuxcnc-dev/scripts/linuxcnc: line 437: 15005 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/srt/linuxcnc_debug.txt
and
/home/srt/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
srt@Cinci:~/linuxcnc-dev$
ou now need to run 'sudo make setuid' in order to run in place.
make: Leaving directory `/home/srt/linuxcnc-dev/src'
srt@Cinci:~/linuxcnc-dev/src$ sudo make setuid
make: Entering directory `/home/srt/linuxcnc-dev/src'
chown root ../bin/linuxcnc_module_helper
chmod 4750 ../bin/linuxcnc_module_helper
chown root ../bin/pci_write
chmod 4750 ../bin/pci_write
chown root ../bin/pci_read
chmod 4750 ../bin/pci_read
make: Leaving directory `/home/srt/linuxcnc-dev/src'
srt@Cinci:~/linuxcnc-dev/src$ cd ..
srt@Cinci:~/linuxcnc-dev$ . ./scripts/rip-environment
srt@Cinci:~/linuxcnc-dev$ linuxcnc
LINUXCNC - 2.6.0~pre
Machine configuration directory is '/home/srt/linuxcnc/configs/cinlathe'
Machine configuration file is '10ccgscreen.ini'
Starting LinuxCNC...
/home/srt/linuxcnc-dev/scripts/realtime: line 159: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
/home/srt/linuxcnc-dev/scripts/linuxcnc: line 437: 15004 Segmentation fault $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/srt/linuxcnc-dev/scripts/linuxcnc: line 437: 15005 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
/home/srt/linuxcnc-dev/scripts/realtime: line 192: /home/srt/linuxcnc-dev/bin/linuxcnc_module_helper: Permission denied
Cleanup done
LinuxCNC terminated with an error. You can find more information in the log:
/home/srt/linuxcnc_debug.txt
and
/home/srt/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
srt@Cinci:~/linuxcnc-dev$


Thanks

Rick

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

More
11 Jun 2013 22:16 #35534 by ArcEye
Replied by ArcEye on topic Build fault
Hi

See this and the solution therein

www.linuxcnc.org/index.php/english/forum...mples?start=60#34488

regards

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

More
11 Jun 2013 23:07 #35542 by LAIR82
Replied by LAIR82 on topic Build fault
Hello Arceye,

Here is the printout, and tell me if I'm wrong but, the two columns say root next to the affected files ( which were highlighted red when I did ls -l, so convenient) means that I am not the owner. So those I need to change, and trying not to be big a pain in the #^%, could you give me an example?

srt@Cinci:~/linuxcnc-dev/bin$ ls -l
total 11656
-rwxr-xr-x 1 root root 3358 2013-06-11 10:23 5axisgui
-rwxr-xr-x 1 root root 121676 2013-06-11 10:23 axis
-rwxr-xr-x 1 root root 3212 2013-06-11 10:23 axis-remote
-rwxr-xr-x 1 root root 554208 2013-06-11 10:16 classicladder
-rwxr-xr-x 1 root root 53081 2013-06-11 10:15 comp
-rwxr-xr-x 1 root root 2659 2013-06-11 10:23 debuglevel
-rwxr-xr-x 1 root root 33086 2013-06-11 10:22 genserkins
-rwxr-xr-x 1 root root 11573 2013-06-11 10:23 gladevcp
-rwxr-xr-x 1 root root 1332 2013-06-11 10:23 gremlin
-rwxr-xr-x 1 root root 54169 2013-06-11 10:16 gs2_vfd
-rwxr-xr-x 1 root root 140683 2013-06-11 10:23 gscreen
-rwxr-xr-x 1 root root 156856 2013-06-11 10:16 halcmd
-rwxr-xr-x 1 root root 7730 2013-06-11 10:23 hal_input
-rwxr-xr-x 1 root root 2233 2013-06-11 10:23 hal_manualtoolchange
-rwxr-xr-x 1 root root 64175 2013-06-11 10:16 halmeter
-rwxr-xr-x 1 root root 104553 2013-06-11 10:16 halrmt
-rwxr-xr-x 1 root root 18445 2013-06-11 10:16 halsampler
-rwxr-xr-x 1 root root 270350 2013-06-11 10:16 halscope
-rwxr-xr-x 1 root root 18463 2013-06-11 10:16 halstreamer
-rwxr-xr-x 1 root root 195564 2013-06-11 10:17 halui
-rwxr-xr-x 1 root root 13174 2013-06-11 10:23 hbmgui
-rwxr-xr-x 1 root root 6313 2013-06-11 10:23 hexagui
-rwxr-xr-x 1 root root 26836 2013-06-11 10:23 image-to-gcode
-rwxr-xr-x 1 root root 18673 2013-06-11 10:15 inivar
-rwxr-xr-x 1 root root 179611 2013-06-11 10:22 io
-rwxr-xr-x 1 root root 187850 2013-06-11 10:22 iov2
-rwxr-xr-x 1 root root 189115 2013-06-11 10:17 keystick
-rwxr-xr-x 1 root root 2729 2013-06-11 10:23 lintini
-rwxr-xr-x 1 root root 246027 2013-06-11 10:17 linuxcnclcd
-rwsr-x--- 1 root root 18419 2013-06-11 10:23 linuxcnc_module_helper THIS WAS THE FIRST ONE
-rwxr-xr-x 1 root root 261862 2013-06-11 10:17 linuxcncrsh
-rwxr-xr-x 1 root root 132933 2013-06-11 10:17 linuxcncsvr
-rwxr-xr-x 1 root root 7202 2013-06-11 10:23 linuxcnctop
-rwxr-xr-x 1 root root 4437 2013-06-11 10:23 maho600gui
-rwxr-xr-x 1 root root 5032 2013-06-11 10:23 max5gui
-rwxr-xr-x 1 root root 1596 2013-06-11 10:23 mdi
-rwxr-xr-x 1 root root 3759599 2013-06-11 10:22 milltask
-rwxr-xr-x 1 root root 147367 2013-06-11 10:23 ngcgui
-rwsr-x--- 1 root root 33239 2013-06-11 10:17 pci_read
-rwsr-x--- 1 root root 33140 2013-06-11 10:17 pci_write
-rwxr-xr-x 1 root root 561877 2013-06-11 10:23 pncconf
-rwxr-xr-x 1 srt srt 187 2013-05-06 15:34 profile_axis
-rwxr-xr-x 1 root root 5281 2013-06-11 10:23 puma560gui
-rwxr-xr-x 1 root root 4606 2013-06-11 10:23 pumagui
-rwxr-xr-x 1 root root 3148 2013-06-11 10:23 pyvcp
-rwxr-xr-x 1 root root 3348189 2013-06-11 10:23 rs274
-rwxr-xr-x 1 root root 5697 2013-06-11 10:23 scaragui
-rwxr-xr-x 1 root root 303656 2013-06-11 10:17 schedrmt
-rwxr-xr-x 1 root root 20695 2013-06-11 10:16 shuttlexpress
-rwxr-xr-x 1 root root 100333 2013-06-11 10:23 stepconf
-rwxr-xr-x 1 root root 2485 2013-06-11 10:23 teach-in
-rwxr-xr-x 1 root root 21560 2013-06-11 10:15 test_rtapi_vsnprintf
-rwxr-xr-x 1 root root 36296 2013-06-11 10:17 tooledit
-rwxr-xr-x 1 root root 36640 2013-06-11 10:23 touchy
-rwxr-xr-x 1 root root 2042 2013-06-11 10:23 tracking-test
-rwxr-xr-x 1 root root 263080 2013-06-11 10:17 xlinuxcnc
-rwxr-xr-x 1 srt srt 4263 2013-05-07 07:11 yapps
srt@Cinci:~/linuxcnc-dev/bin$


Thanks

Rick

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

More
11 Jun 2013 23:17 - 11 Jun 2013 23:19 #35543 by ArcEye
Replied by ArcEye on topic Build fault
Hi

Assuming your user and group are rick

sudo chown -R rick:rick /home/rick

Then from ../src make setuid (or probably sudo make setuid)

It all comes about building in your home directory using sudo, which does the build with the owner being root, not you

regards
Last edit: 11 Jun 2013 23:19 by ArcEye.

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

More
12 Jun 2013 00:11 #35544 by LAIR82
Replied by LAIR82 on topic Build fault
This definetly gets dis-couraging after a while, mainly because of my lack of knowledge on the programming side.

Here is what I did, and its output.

srt@Cinci:~$ sudo chown -R srt:srt /home/srt
[sudo] password for srt:
chown: cannot access `/home/srt/.gvfs': Permission denied
srt@Cinci:~$

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

More
12 Jun 2013 00:32 #35545 by ArcEye
Replied by ArcEye on topic Build fault
Do a ls -l on that directory, who is shown as the owner of that hidden file? (/home/srt/.gvfs)

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

More
12 Jun 2013 01:14 - 12 Jun 2013 01:38 #35548 by LAIR82
Replied by LAIR82 on topic Build fault
dr-x
2 srt srt 0 2013-06-11 12:39 .gvfs


I notice the 2 and the 0 being different than the rest of the files, does that matter?
Last edit: 12 Jun 2013 01:38 by LAIR82.

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

More
12 Jun 2013 14:57 - 12 Jun 2013 16:05 #35561 by ArcEye
Replied by ArcEye on topic Build fault
Hi

Sorry for delay, Atlantic drift.

The output should be
permissions | number of links | owner | group | size | creation / modification date | time | size

What I have not found a good explanation for is the number of links.

It is analogous to but does not match, the number of subdirectories when the object is a directory and does not seem to match the number of symlinks when the object is a file.

Did the rest of the files change ownership and allow you to run them?

regards
Last edit: 12 Jun 2013 16:05 by ArcEye.

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

Time to create page: 0.633 seconds
Powered by Kunena Forum