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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-16-2003, 02:19 AM
|
#1
|
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: 518
Rep:
|
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
|
|
|
09-16-2003, 06:47 AM
|
#2
|
Member
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613
Rep:
|
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)
|
|
|
09-16-2003, 10:18 AM
|
#3
|
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: 518
Original Poster
Rep:
|
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.
|
|
|
09-16-2003, 11:24 AM
|
#4
|
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: 518
Original Poster
Rep:
|
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?
|
|
|
09-16-2003, 11:37 AM
|
#5
|
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: 518
Original Poster
Rep:
|
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?
|
|
|
09-16-2003, 12:33 PM
|
#6
|
Member
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613
Rep:
|
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.
|
|
|
09-16-2003, 12:39 PM
|
#7
|
Member
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613
Rep:
|
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.
|
|
|
09-17-2003, 03:10 AM
|
#8
|
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: 518
Original Poster
Rep:
|
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
|
|
|
09-17-2003, 03:32 AM
|
#9
|
Member
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|