Click to See Complete Forum and Search --> : Segmentation fault? What do you MEAN segmentation fault!??!!?


ScRapZ_1
04-20-2001, 10:52 AM
Just a quickie...

What does it mean when I try to run a program and it straight away says:

Segmentation fault

...and takes me back to the prompt. And how can I fix this problem?

TTFN,
ScRapZ_1 :p

Datura
04-20-2001, 11:53 AM
Didnt I just see this topic in the Tech Support forum?

ScRapZ_1
04-20-2001, 12:07 PM
Yes you did sorry. It wasnt until about 5 minutes after i posted it there, that I realized it was more (much more) a software problem than a technical question...

...doesnt mean you still cant help me :D

TTFN,
ScRapZ_1 :p

Datura
04-20-2001, 12:21 PM
If you were compiling from source and it gave you some errors during the compile process those errors alot of times can tell you where the problem is.

What distro are you running?Also post a link to the app your trying to run and I'll try to install it and see if it gives me any errors as well.

demian
04-20-2001, 12:41 PM
Originally posted by ScRapZ_1:
<STRONG>What does it mean when I try to run a program and it straight away says:

Segmentation fault

...and takes me back to the prompt. And how can I fix this problem?</STRONG>

A segfault is an interrupt signal generated by the kernel when a program addresses memory that hasn't been assigned to the program. This happens often when pointers are dereferenced without being initialized to a valid address first.
If you wrote that program yourself check for flaws in the logic. If you are running pre-compiled binaries they are corrupt and you don't have a chance to fix anything. If you compiled from source you might try that again and maybe change some compiler flags (I'm not too sure this will help, though)

bdg1983
04-20-2001, 07:32 PM
You always have the ability to delete your own posts done in error. :)

ScRapZ_1
04-21-2001, 10:07 AM
The program is called bnetd. I got an RPM binary from www.bnetd.org/files.phtml (http://www.bnetd.org/files.phtml) (the latest version)

When i run the required file, (ie: /sbin/bnetd) I get the seg fault...

TTFN,
ScRapZ_1 :p

ScRapZ_1
04-21-2001, 10:10 AM
The program is called bnetd. I got an RPM binary from www.bnetd.org/files.phtml (http://www.bnetd.org/files.phtml) (the latest version)

When i run the required file, (ie: /sbin/bnetd) I get the seg fault...

...and Im running RH 7.0 using a server install (I use as a server box at LANs) so it has _no_ GUI whatsoever.

TTFN,
ScRapZ_1 :p
(dang... I cant even edit a post properly!!!)

[ 21 April 2001: Message edited by: ScRapZ_1 ]