Segmentation fault while trying to run binary

General support questions
Post Reply
TheEnvironmentGuy
Posts: 2
Joined: 2014/12/11 15:33:12

Segmentation fault while trying to run binary

Post by TheEnvironmentGuy » 2014/12/11 16:22:43

Hello, I am trying to run a binary file named "setup" but when executing in the terminal I receive a "Segmentation fault" error.

Code: Select all

#su
#cd <fileDirectory>
#chmod a+x <fileName>
#./<fileName>
#Segmentaion fault
It should open a installation GUI for Maya 2015 when successful. I have tried using a alternative copy's of the file in case it is corrupted and tried some other chmod options to no avail. How can I get this to run?

Here is info on my system http://pastebin.com/raw.php?i=J7NWhqdZ

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Segmentation fault while trying to run binary

Post by gerald_clark » 2014/12/11 17:53:21

If the program is named "setup" why are you trying to run "./<filename>" ?
Show the output of "file setup".

User avatar
TrevorH
Forum Moderator
Posts: 28833
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Segmentation fault while trying to run binary

Post by TrevorH » 2014/12/11 18:05:49

You could also try install strace and running e.g. strace -f -o /tmp/strace.out ./setup and then look through the output at what it does immediately prior to the crash to see if you can see why it might be occurring.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

TheEnvironmentGuy
Posts: 2
Joined: 2014/12/11 15:33:12

Re: Segmentation fault while trying to run binary

Post by TheEnvironmentGuy » 2014/12/12 08:24:54

If the program is named "setup" why are you trying to run "./<filename>" ?
Show the output of "file setup".
Sorry if it wasn't clear, it was meant as pseudo code to represent the file name (<filename> == setup). I'm not an experienced Linux user so perhaps this is more a generic windows way of explaining the process.
You could also try install strace and running e.g. strace -f -o /tmp/strace.out ./setup and then look through the output at what it does immediately prior to the crash to see if you can see why it might be occurring.
Thanks for the tip, didn't know about that tool. Here is the output from the command

Code: Select all

17126 execve("./setup", ["./setup"], [/* 48 vars */]) = 0
17126 brk(0)                            = 0x2189000
17126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd3259da000
17126 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
17126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd3259d9000
17126 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd3259d8000
17126 arch_prctl(ARCH_SET_FS, 0x7fd3259d9680) = 0
17126 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
17126 +++ killed by SIGSEGV +++
So pointing out the obvious I checked /etc/ld.so.preload and can confirm it does not exist. Not sure what to do about it though, everything required to install this should be self contained in the setup file directory. Do I need to get another package?

User avatar
TrevorH
Forum Moderator
Posts: 28833
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Segmentation fault while trying to run binary

Post by TrevorH » 2014/12/12 08:42:31

No idea what that is but it's nothing that you can do anything about. Next step, report this to the program's authors.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”