Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tcpserver & libc.so.6 error - qmail-pop3d flailing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
t011
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 102

PostPosted: Thu Jan 09, 2003 6:59 pm    Post subject: tcpserver & libc.so.6 error - qmail-pop3d flailing Reply with quote

Well, I've got kind of an urgent problem with with my qmail-pop3d server. What tipped me off to it was that qmail-pop3d wouldn't allow me to pop my email. Anyway, after checking /var/log/qmail/qmail-pop3d/current, this is the error message I'm getting:
Code:
@400000003e1dc65e328c77c4 /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory

The more urgent aspect of my problem is that, slowly but surely, the log file is filling up with this error message repeated over and over. So I need to figure out how to shut it down. Right now the log file is about 1.1MB and climbing.

Even better would be to figure out what the problem is with libc.so.6. If I were to fix that, you would think my other troubles would go away. I found libc.so.6 in, well you guessed it, /lib. Here's the pertinent listing:
Code:
-rwxr-xr-x    1 root     root         1.4M Dec 12 17:27 libc-2.3.1.so*
lrwxrwxrwx    1 root     root           13 Dec 12 17:27 libc.so.6 -> libc-2.3.1.so*

Doing a qpkg -f libc.so.6 returns nothing, I'm assuming since it's a symlink. But, qpkg -f libc-2.3.1.so says that it's owned by sys-libs/glibc. So I guess that a start to my problem.

Additionally, when I run top or ps-x I see that one of my instances of tcpserver is running as a zombie, [tcpserver <defunct>]. But that's obviously due to the qmail-pop3d problem.

Any ideas of where to preceed with this would be greatly appreciated. Thanks.

t011
Back to top
View user's profile Send private message
t011
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2002
Posts: 102

PostPosted: Fri Jan 10, 2003 1:53 am    Post subject: Reply with quote

Well, for the sake of completeness, I thought I'd post the solution I found. I did a bit of googling and found a link to a message on the gentoo-user mailing list. You can find it archived at http://www.elvisdieguez.us/docs/Gentoo/user-mailingList/msg20495.html. Anyway, here are the contents of that message:
Quote:
I had the same problem with qmail-pop3d. The program softlimit sets the
ulimit of a program before running it, but these limits were too small.
Have a look into /var/qmail/supervise/qmail-smtpd/run. If you are not so
concerned about security (possible DOS attack), you can change the exec
statement from "exec /usr/bin/softlimit -m 8000000 \n /usr/bin/tcpserver ..."
to "exec /usr/bin/tcpserver ...". Otherwise play a bit with the limits and
have a look into the documentation.

- Joerg Sonnenberger


The softlimit in my .../qmail-pop3d/run file was set to 2000000. I changed it to 8000000, to match what was in qmail-smtpd, and now it works. So thanks go to Joerg, wherever you are.

t011
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum