LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2003, 02:19 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
Segmentation fault (core dumped)


I keep getting a Segmentation fault, when running certain commands, like ncftpget.

This worked fine for long enough, but as of today, I get this error.

Any ideas?

Thanks

Harry
RH7
 
Old 09-16-2003, 06:47 AM   #2
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Did you install/upgrade some existing software? or is there something wrong with a library the program uses?

If a lot of programs start to crash, you might need to check your hardware. such as your memory, or an overheated CPU. ....or in the worst case, is your machine rooted/hacked?




a "segmentation fault" is an classical programmer's error; the application tries to access an invalid (unassigned) piece of memory. Fortunately, Linux is able to trap those attempts, which would otherwise cause your system to become instable..

A segmentation fault might happen aswell when a program doesn't know what to do in a certain situation. (and the programming didn't handle that situation) ...technically speaking; the program tries access memory-address 0, because a calculation didn't succeed. (or a calculation failed because of an hardware problem)
 
Old 09-16-2003, 10:18 AM   #3
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Hmm, havent changed anything, noticed that when I rebooted though, that there were many errors picked up by fsck, which has been the case for months, but as the machine hardly gets rebooted, it has not caused too much concern.

Possibly time to start backing up, before things go pear shaped?

I also notice that I get a lot of busy inodes on changed media messages, if that means anything to you.
 
Old 09-16-2003, 11:24 AM   #4
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Managed to trace it to mail, whenever anything tries to use mail, I get this error.

Tried resinstalling sendmail and also sendmail.cf but the problem remains, any ideas?
 
Old 09-16-2003, 11:37 AM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
When I verify the package, I get the following error:

sendmail -:/etc/aliases md5, file size, modification time

I also got a group error, but sorted that by changing it from root to mail.

Any ideas?
 
Old 09-16-2003, 12:33 PM   #6
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
I'm not sure what sendmail has to do with it, except for the fact why you're running sendmail...? Sendmail isn't required to "send mail". It's a mail server; ie. mail-transfer-agent (that's why it's called sendmail). You can configure your e-mail program (mail agent) to either send a message to the SMTP server of your ISP, or let sendmail deliver it for you directly.

You don't need to run it, unless you want a personal mail server, and I would certainly advice against allowing connections from the internet to sendmail if this is just your workstation.


Just curious: did you run fsck (or e2fsck) in single user mode (or at boot time), and was your root-partition was mounted read-only? A lot of missing inodes might also be a problem for linux. (making it crash randomly)


What file system are you using? If you use ext2, you might want to upgrade to ext3, which can recover your data if your machine went down. (fortunately, this doesn't happen if your machine is always on )

---hope this helps

Last edited by yapp; 09-16-2003 at 12:37 PM.
 
Old 09-16-2003, 12:39 PM   #7
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Quote:
Originally posted by plisken
Managed to trace it to mail, whenever anything tries to use mail, I get this error.
I'm curious what your approach was to tackle this problem..

..but I don't understand how ncftp is involved into this, then.
 
Old 09-17-2003, 03:10 AM   #8
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Sorry for the confusion...

Basically I have a few cron jobs that run, a couple of which contained "ncftp", then mail the details to me.
Now initially, instead of getting mailed the output from the cron jobs as per normal, I simply got Segmentation messages e-mailed to my accounts. At this point I naturaly suspected the problem to be with ncftp, and it was not until later, when trying to e-mail from the console, using mail, that I got the same error.

I normally send all my mail through my server, and for that matter collect much of it from different accounts, by use of fetchmail, then simply connect using Outlook to retrieve. It saves me from connecting to a bunch of different accounts, fetchmail gathers it all and I collect it all together.

Anyway...

Removed sendmail and reinstalled, reconfigured my sendmail.cf file and still had the same problem, Segmentation Error, when ever I tried to use the command "mail"

But, I done another reboot, and all would now appear to be fine.

You did mention fsck, I did do an fsck on the previous reboot, and there were a number of errors, this is normal every 3rd or 4th time I reboot, but as I try and keep the machine running, it has not posed too much of a problem.

I am running ext2 and have in the past been advised to move to reiser or similar.

Comments are, as always, appreciated...

Harry
 
Old 09-17-2003, 03:32 AM   #9
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
you're description is quite helpful to understand your situation.

I still can't explain your segfauls (I'm not that kind of an expert), except for all the things I mentioned above. But there are some other things that might be usefull too:

* ...you're using sendmail, because fetchmail needs to devliver your e-mail to an SMTP server? Is the smtp-server reachable from the Internet too? / does it have to be?

* If you're receiving mail from a lot of different accounts (like I do too), I'd suggest installing an IMAP server locally. Unlike POP3, imap keeps all folders, sent/received messages and stuff like 'read status' at the server. so, it doesn't matter what mail-client you'd use, because you'll see the same e-mail in every client. (or even webmail) outlook express supports imap as well.



* I'm not so sure how to convert ext2 to reiser, but converting to ext3 is quite simple:
  • is ext3 supported by your kernel?
    grep ext /proc/filesystems
  • go to single user mode
    telinit 1
  • remount your root partition read-only:
    mount -o remount,ro /
  • to be sure, force a check your file system:
    e2fsck -f /dev/hd...
  • add an ext3 journal to your file system:
    tune2fs -j /dev/hd....
  • remount read-write
    mount -o remount,rw /
    I'm not sure whether mount -ext3 -o remount,rw / works
  • Update your /etc/fstab, change the 'ext2' field into 'ext3'
  • back to the previous runlevel (or just enter reboot):
    telinit 5 (or whatever the level was)
    The command runlevel shows the current and previous runlevel

good luck


..edit: if your filesystem gets corrupted in everyday work, you might need to "untweak" the harddrive parameters/settings. (use the hdparam tool with great caution) Setting these values too high is asking for trouble

Last edited by yapp; 09-17-2003 at 03:34 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation fault (core dumped) eytan *BSD 3 04-27-2005 08:38 PM
Segmentation Fault (core dumped) newuser455 Linux - Software 3 08-28-2004 02:39 PM
Ayttm Failing: Segmentation fault (core dumped) Devboy *BSD 2 08-12-2004 06:40 PM
Segmentation fault (core dumped) ooops tarballed Linux - General 3 07-25-2002 10:59 AM
Segmentation fault (core dumped) hasanaydin Linux - General 0 03-27-2002 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration