Page 1 of 2
Segmentaion fault (core dumped)
Posted: Wed May 15, 2019 5:34 pm
by lleb
Code: Select all
[user@desk FAH]$ FAHClient --configure
Segmentation fault (core dumped)
[user@desk FAH]$ FAHClient --user=Mr.Brunkow --team=134546 --gpu=true --smp=true
Segmentation fault (core dumped)
[user@desk FAH]$ FAHClient --help
Segmentation fault (core dumped)
So after some hardware upgrades to my system I am running Fedora 29 still.
Code: Select all
$ uname -a
Linux raydesk 5.0.7-200.fc29.x86_64 #1 SMP Mon Apr 8 15:40:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
# lshw | grep -A10 display
*-display
description: VGA compatible controller
product: GP104 [GeForce GTX 1070]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:1c:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
Running current Nvidia drivers. Some guidance would be greatly appreciated.
Thank you.
edit to update:
I have removed all components of FAH, except the docs.
Code: Select all
# locate fahclient
/etc/fahclient
/etc/fahclient/config.xml
/home/user/Downloads/fahclient-7.5.1-1.x86_64.rpm
/usr/share/doc/fahclient
/usr/share/doc/fahclient/CHANGELOG.md
/usr/share/doc/fahclient/README.md
/usr/share/doc/fahclient/copyright
/usr/share/doc/fahclient/sample-config.xml
/var/lib/fahclient
No clue what /var/lib/fahclient is as that does not show with ls -laF on /var/lib directory. When attempting to reinstall the client i get the following error:
Code: Select all
# rpm -i --nodeps fahclient-7.5.1-1.x86_64.rpm
Starting fahclient ... /etc/init.d/FAHClient: line 64: 20629 Segmentation fault (core dumped) $EXEC $OPTS > /dev/null 2> /dev/null
FAIL
At a bit of a loss.
Re: Segmentaion fault (core dumped)
Posted: Thu May 16, 2019 6:36 am
by foldy
Which Linux distro?
Re: Segmentaion fault (core dumped)
Posted: Thu May 16, 2019 5:56 pm
by lleb
foldy wrote:Which Linux distro?
Clearly stated Fedora 29. Sadly Theodore has no clue what he is on about. Fedora is stable and has been stable for decades.
Re: Segmentaion fault (core dumped)
Posted: Thu May 16, 2019 7:50 pm
by lleb
Update: Noted that when attempting to start /etc/init.d/FAHClient start the error is on line 64. That is the section to start the log files.
Code: Select all
62
63
64 wait_for_log_change() {
65 if [ "$2" != "" ]; then
66 pid=$2
67 else
68 pid=$(get_pid)
69 fi
70
71 while [ "$(log_status)" == "$1" ]; do
72 if ps -hp $pid 2>/dev/null >/dev/null; then
73 sleep 1
74 else
75 return 1
76 fi
77 done
78
79 return 0
Now that is the same bit of code running on the laptop, so not sure why it would crash out looking for the log file to update.
Re: Segmentaion fault (core dumped)
Posted: Thu May 16, 2019 11:00 pm
by bruce
Post the contents and ownership of /var/lib/fahclient.
Which user is actually starting FAHClient? (See the script /etc/init.d/FAHClient which is supposed to be started with "su" permissions.)
When it starts FAHClient, it is supposed to run it as a service under its own userod permissions.
Re: Segmentaion fault (core dumped)
Posted: Fri May 17, 2019 1:51 am
by lleb
Code: Select all
# d /var/lib/fahclient/
total 8
drwxrwxr-x. 2 fahclient root 4096 May 15 14:13 ./
drwxr-xr-x. 67 root root 4096 May 15 14:13 ../
I have not created a separate user, just been using root. yes I know that is bad, but if it runs that would be great.
Re: Segmentaion fault (core dumped)
Posted: Fri May 17, 2019 3:46 pm
by bruce
The FAH installation creates that special user with more limited permissions, established ownership of the fahclient directory, and switches to that user to run the FAHClient service. (I think the user is called "fahclient"). It's designed to protect your system by NOT using root when it's not needed.
Change the permissions so that the service has full read/write/create permissions in the fahclient directory.
Re: Segmentaion fault (core dumped)
Posted: Fri May 17, 2019 3:58 pm
by lleb
bruce wrote:The FAH installation creates that special user with more limited permissions, established ownership of the fahclient directory, and switches to that user to run the FAHClient service. (I think the user is called "fahclient"). It's designed to protect your system by NOT using root when it's not needed.
Change the permissions so that the service has full read/write/create permissions in the fahclient directory.
Code: Select all
# d /var/lib/fahclient/
total 8
drwxrwxr-x. 2 fahclient fahclient 4096 May 15 14:13 ./
drwxr-xr-x. 67 root root 4096 May 15 14:13 ../
# su fahclient
This account is currently not available.
[root@desk FAH]# /etc/init.d/FAHClient start
Starting fahclient ... /etc/init.d/FAHClient: line 64: 22055 Segmentation fault (core dumped) $EXEC $OPTS > /dev/null 2> /dev/null
FAIL
edit to add: Thank you Bruce for assistance.
Re: Segmentaion fault (core dumped)
Posted: Fri May 17, 2019 6:46 pm
by bruce
Somewhere in the installation procedurel fahclient should have been created. I'm not sure how you did your install or what other steps might have been missed. I would probably try reinstalling.
Re: Segmentaion fault (core dumped)
Posted: Fri May 17, 2019 8:01 pm
by lleb
I have tried 2 ways.
1. CLI:
https://foldingathome.org/support/faq/i ... -advanced/
Install crashes:
Code: Select all
sudo rpm -i --nodeps fahclient-7.4.4-1.x86_64.rpm
For error see original post.
2. GUI install:
https://foldingathome.org/support/faq/i ... des/linux/
No crash, just will not run.
Re: Segmentaion fault (core dumped)
Posted: Sat May 18, 2019 5:10 am
by MeeLee
Are you running kernel 5, or 4.18?
Not sure if there are some issues with Python 2 and Linux kernel 5.
Re: Segmentaion fault (core dumped)
Posted: Sat May 18, 2019 12:04 pm
by lleb
MeeLee wrote:Are you running kernel 5, or 4.18?
Not sure if there are some issues with Python 2 and Linux kernel 5.
MeeLee, in the first post I display the results to uname -a, that shows I am running 5.x kernel.
My laptop that is also running Fedora 29, has an even newer kernel. Workstation is 5.0.7-200, laptop is 5.0.9-200. I update my workstation kernel slower than my laptop due to the Nvidia drivers not always wanting to function after a kernel update.
Re: Segmentaion fault (core dumped)
Posted: Sat May 18, 2019 2:56 pm
by bruce
So you have tried FAHClient the rpms for V7.4.4 several times but you seem to be mixing versions by trying V7.5.1. Neither one seems to be creating user 'fahclient' I don't know why.
Have you simply tried fahclient-7.5.1-1.x86_64.rpm and fahcontrol-7.5.1-1.noarch.rpm? Are there any messages from either one?
(Don't waste any time on fahviewer until you get fahclient & fahcontrol working.)
Re: Segmentaion fault (core dumped)
Posted: Sat May 18, 2019 7:41 pm
by lleb
Sorry, the links do point to the older 7.4, I have only been working with 7.5 for both client and control.
Those links are the official instructions from F@H web page.
Odd thing is I have the exact same rpm files running on Fedora 29 on my laptop. It is an intel i5, my rig was an intel i7, both 3rd gen. My i7 died so I upgraded to my current rig listed above.
Re: Segmentaion fault (core dumped)
Posted: Sun May 19, 2019 5:18 am
by bruce
If ALL of the files (including libraries and other support software) are identical, then the results will be the same. Changing an intel i5 to/from an intel i7 will not produce the errors you're reporting. Something is different but I don't know how to find it.
Switch hard-disks between the two systems and I'll bet the problem moves with the software.