Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81410 - Qmail Smtpd failes to load shared libraries
Summary: Qmail Smtpd failes to load shared libraries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-09 13:57 UTC by Stonki
Modified: 2005-02-10 15:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stonki 2005-02-09 13:57:25 UTC
System: AMD 64, 2GB RAM
I installed Qmail following the instruction http://www.gentoo.org/doc/en/qmail-howto.xml (in fact the German translation of it). When trying to send emails to the server, the smtpd daemon dies:

@40000000420a7ef437268d9c tcpserver: end 29199 status 32512
@40000000420a7ef437269184 tcpserver: status: 0/40
@40000000420a7f24100c15ec tcpserver: status: 1/40
@40000000420a7f24100c21a4 tcpserver: pid 29229 from 217.227.50.167
@40000000420a7f241017c234 tcpserver: ok 29229 www.stonki.com:::ffff:213.239.217.135:25 pd9e332a7.dip.t-dialin.net:::ffff:217.227.50.167::50652
@40000000420a7f24101f1534 /var/qmail/bin/qmail-smtpd: error while loading shared libraries: libdl.so.2: failed to map segment from shared object:Cannot allocate memory
@40000000420a7f2410215f24 tcpserver: end 29229 status 32512
@40000000420a7f241021630c tcpserver: status: 0/40
                                                         

Version of qmail: 
*  mail-mta/qmail
      Latest version available: 1.03-r15
      Latest version installed: 1.03-r15
      Size of downloaded files: 383 kB
      Homepage:    http://www.qmail.org/ http://members.elysium.pl/brush/qmail-smtpd-auth/ http://www.jedi.claranet.fr/qmail-tuning.html
      Description: A modern replacement for sendmail which uses maildirs and includes SSL/TLS, AUTH SMTP, and queue optimization
      License:     as-is

libs:
mail bin #
mail bin # ldd /var/qmail/bin/qmail-smtpd
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x0000002a9566c000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x0000002a957a2000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x0000002a959da000)
        libc.so.6 => /lib/libc.so.6 (0x0000002a95aee000)
        libdl.so.2 => /lib/libdl.so.2 (0x0000002a95d0e000)
        /lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
mail bin #                                                                                 


Reproducible: Always
Steps to Reproduce:
1.send Email to local account
2.
3.

Actual Results:  
@40000000420a7f24101f1534 /var/qmail/bin/qmail-smtpd: error while loading 
shared libraries: libdl.so.2: failed to map segment from shared object:Cannot 
allocate memory 

Expected Results:  
accepting email
Comment 1 Tuan Van (RETIRED) gentoo-dev 2005-02-09 18:59:42 UTC
amd64, comment?
Comment 2 SpanKY gentoo-dev 2005-02-09 21:17:39 UTC
i'm going to assume you didnt increase the SOFTLIMIT_OPTS in /var/qmail/control/conf-common
Comment 3 Stonki 2005-02-09 22:28:25 UTC
yes ! Thanks for the quick help !
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-09 22:33:29 UTC
spanky: but why would a low softlimit cause a failure like what is there.
"/var/qmail/bin/qmail-smtpd: error while loading 
shared libraries: libdl.so.2: failed to map segment from shared object:Cannot 
allocate memory"

This strikes me it's failing to start in the first place.
Comment 5 SpanKY gentoo-dev 2005-02-10 15:30:13 UTC
who knows what addons are being used / binary sizes / etc...