LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-03-2007, 03:25 AM   #1
sickdude
LQ Newbie
 
Registered: Mar 2005
Distribution: red hat *, fedora core *, gentoo, slackware, ubuntu
Posts: 27

Rep: Reputation: 15
mailq gets "Segmentation fault" (fedora core 5)


Hi all,

Im on a postfix server running fedora core 5. I logged in because there are e-mail problems. So i wanted to check the mailq, but then i get the Segmentation fault error.

So i check out the status of the postfix deamon, it says Master stopped. Well ok thats fine with me, ill restart it.

service postfix start

Starting postfix: /etc/init.d/postfix: line 116: 14517 Segmentation fault /usr/sbin/postalias /etc/postfix/aliases
/etc/init.d/postfix: line 116: 14518 Segmentation fault /usr/sbin/postfix start 2>/dev/null 1>&2
[FAILED]

So now im a little confused, how do i fix this?
And what does a segmentation fault mean?
 
Old 05-03-2007, 03:58 AM   #2
rcase5
Member
 
Registered: Apr 2004
Distribution: Fedora & Debian
Posts: 38

Rep: Reputation: 15
To get you started

I don't use postfix myself, but here are a few quick bits of information and some suggestions to get you started...

First off, a "Segmentation Fault" means that a program has accessed an area of memory it was not supposed to access. This is like a GPF in Windows, and it's a hard crash.

Based on the log segment you posted, it sounds like there might be a problem with your /etc/postfix/aliases file. I would take a look and see if the file is corrupted. Maybe there's a character in there it doesn't like, or maybe two lines got accidentally joined together. The fact that it's in /etc means it's probably a text file, so I would look at it with "less" and see if you see some suspicious characters.

If everything looks okay there (and in case I'm totally misreading this log segment, which I think I might be), there might be an email in the queue which is badly formed, and maybe that's causing the crash. You would have to find out where postfix has it's incoming mail queue and look through the emails and see if something looks amiss. Any character that isn't a normal printable character might cause a problem. Postfix might keep incoming emails as separate files, and if you see a message that looks wrong, try deleting that file or moving it somewhere else and try starting postfix again. Qmail, the mail system I use, can have multiple files in different places for one incoming email, so you might have to hunt around if that is the case in postfix.

Hope this helps,

Robert...
 
Old 05-03-2007, 04:08 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
You might also want to try running
Code:
/usr/sbin/postfix start
yourself to see if you get a more useful error message and possibly using strace to see what postfix is trying to do just before it dies so...
Code:
strace /usr/sbin/postfix start
HTH

Jamie
 
Old 05-03-2007, 05:24 AM   #4
sickdude
LQ Newbie
 
Registered: Mar 2005
Distribution: red hat *, fedora core *, gentoo, slackware, ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Thnx guys for the fast reply's and i did had some use from it.

But there was a surprise.

The error that postfix isnt correct, there are no problems with memory.

This server is deliverd and installed by me, but the customer has root access to. yea i know not great.

The customer changed the hostname, but he did not did this the right way. When i did a hostname -s or -f it sayd unknown hostname. Postfix does a hostname check and it gets the wrong info, there even are some spaces in the output. The space in the output gives postfix a reason to think that there is a segmentation error.

So i fixed it and thnx loads for your help guys
 
Old 05-08-2007, 10:27 AM   #5
_MD_
Member
 
Registered: Apr 2004
Location: Toronto, Canada
Distribution: BackTrack, Knoppix, Fedora, Slackware
Posts: 43

Rep: Reputation: 16
Quote:
Originally Posted by sickdude
When i did a hostname -s or -f it sayd unknown hostname. Postfix does a hostname check and it gets the wrong info, there even are some spaces in the output. The space in the output gives postfix a reason to think that there is a segmentation error.

So i fixed it
But how? I've checked a couple of resources online, and I, too, get the same error and hostname -s gives me unknown hostname...


I tried hostname myname.domain.com
then edited /etc/sysconfig/network

Code:
NETWORKING=yes
HOSTNAME=myname.domain.com
/etc/hosts

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       domain.com   myname        localhost.localdomain   localhost

Still the hostname doesn't want to change. I'm running Fedora Core2... Please help.
 
Old 05-08-2007, 11:05 AM   #6
sickdude
LQ Newbie
 
Registered: Mar 2005
Distribution: red hat *, fedora core *, gentoo, slackware, ubuntu
Posts: 27

Original Poster
Rep: Reputation: 15
Check out this tutorial about setting up linux hostnames, make sure that all these fields are filled out correctly


http://www.cpqlinux.com/hostname.html
 
Old 05-08-2007, 11:17 AM   #7
_MD_
Member
 
Registered: Apr 2004
Location: Toronto, Canada
Distribution: BackTrack, Knoppix, Fedora, Slackware
Posts: 43

Rep: Reputation: 16
Ahhh... changing /etc/hosts to

Code:
127.0.0.1	localhost.localdomain localhost
192.168.0.10	mybox.mydomain.com	mybox
helped... Thanks a lot m8... =)))
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sunbird 0.3 does not start, error: Segmentation fault : "$prog" ${1+"$@"} polemon Ubuntu 8 01-08-2007 04:22 AM
why iam getting problems like "...too many files opened" or "segmentation fault" naren_0101bits Linux - Newbie 2 07-19-2004 12:20 PM
menudrake on 9.2 quits with "segmentation fault" error JustSlack Mandriva 11 11-20-2003 11:46 AM
"Segmentation Fault" error message when trying to run Yahoo Messenger on Linux 8.0 niranjanpage Linux - Software 6 10-27-2003 01:21 AM
f-prot anti-virus "Segmentation fault" error and other weird stuff dalek Linux - Software 9 10-22-2003 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration