Segmentaion fault (core dumped)

Moderators: Site Moderators, FAHC Science Team

lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Segmentaion fault (core dumped)

Post 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.
foldy
Posts: 2061
Joined: Sat Dec 01, 2012 3:43 pm
Hardware configuration: Folding@Home Client 7.6.13 (1 GPU slots)
Windows 7 64bit
Intel Core i5 2500k@4Ghz
Nvidia gtx 1080ti driver 441

Re: Segmentaion fault (core dumped)

Post by foldy »

Which Linux distro?
lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Re: Segmentaion fault (core dumped)

Post 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.
lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Re: Segmentaion fault (core dumped)

Post 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.
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Segmentaion fault (core dumped)

Post 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.
lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Re: Segmentaion fault (core dumped)

Post 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.
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Segmentaion fault (core dumped)

Post 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.
lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Re: Segmentaion fault (core dumped)

Post 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.
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Segmentaion fault (core dumped)

Post 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.
lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Re: Segmentaion fault (core dumped)

Post 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.
MeeLee
Posts: 1375
Joined: Tue Feb 19, 2019 10:16 pm

Re: Segmentaion fault (core dumped)

Post by MeeLee »

Are you running kernel 5, or 4.18?
Not sure if there are some issues with Python 2 and Linux kernel 5.
lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Re: Segmentaion fault (core dumped)

Post 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.
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Segmentaion fault (core dumped)

Post by bruce »

lleb wrote: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.
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.)
lleb
Posts: 36
Joined: Mon Aug 03, 2009 8:18 pm

Re: Segmentaion fault (core dumped)

Post 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.
bruce
Posts: 20910
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Segmentaion fault (core dumped)

Post 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.
Post Reply