Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5228 - qmail-1.03-r8 builds, but refuses to run, extremely wierd errors
Summary: qmail-1.03-r8 builds, but refuses to run, extremely wierd errors
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
: 14593 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-19 02:38 UTC by cami
Modified: 2003-08-06 01:08 UTC (History)
2 users (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 cami 2002-07-19 02:38:28 UTC
first, i've done a 'emerge sync', everything else on my system is up to date.

# emerge qmail --pretend

These are the packages that I would merge, in order.

Calculating dependencies ...done!
[ebuild  N   ] sys-apps/ucspi-tcp-0.88-r2 to /
[ebuild  N   ] sys-apps/daemontools-0.76-r1 to /
[ebuild  N   ] net-mail/dot-forward-0.71 to /
[ebuild  N   ] net-mail/checkpassword-0.90 to /
[ebuild  N   ] net-mail/qmail-1.03-r8 to /

*compiles*
All packages compile cleanly, without problems.


 * Setting up the message queue hierarchy ...
1+0 records in
1+0 records out
 Please do not forget to run, the following syntax :
 ebuild /var/db/pkg/net-mail/qmail-1.03-r8/qmail-1.03-r8.ebuild config 
 This will setup qmail to run out-of-the-box on your system. 

 To start qmail at boot you have to enable the /etc/init.d/svscan rc file 
 and create the following links : 
 ln -s /var/qmail/supervise/qmail-send /service/qmail-send 
 ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd 
>>> Regenerating /etc/ld.so.cache...
>>> net-mail/qmail-1.03-r8 merged.



greyhats qmail-smtpd #  ebuild /var/db/pkg/net-mail/qmail-1.03-r8/qmail-1.03-
r8.ebuild config 
Your fully qualified host name is greyhats.za.net.
Putting greyhats.za.net into control/me...
Putting za.net into control/defaultdomain...
Putting za.net into control/plusdomain...
Putting greyhats.za.net into control/locals...
Putting greyhats.za.net into control/rcpthosts...
Now qmail will refuse to accept SMTP messages except to greyhats.za.net.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!
Accepting relaying by default from all ips configured on this machine.

# ln -s /var/qmail/supervise/qmail-send /service/qmail-send 
# ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd 

# /etc/init.d/svscan start       
 * Starting  service scan......                            [ ok ]

# ps ax|tail -15
16426 pts/7    S      0:00 -bash
 2828 pts/7    S      0:00 /usr/bin/svscan
 2829 pts/7    S      0:00 supervise qmail-send
 2830 pts/7    S      0:00 supervise log
 2831 pts/7    S      0:00 supervise qmail-smtpd
 2832 pts/7    S      0:00 qmail-send
 2834 pts/7    S      0:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-sen
 2837 pts/7    S      0:00 supervise log
 2838 pts/7    S      0:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-smt
 2839 pts/7    S      0:00 qmail-lspawn |dot-forward .forward?./.maildir/
 2840 pts/7    S      0:00 qmail-rspawn
 2841 pts/7    S      0:00 qmail-clean
 3025 pts/7    Z      0:00 [tcpserver <defunct>]
 3029 pts/7    R      0:00 ps ax
 3030 pts/7    S      0:00 tail -15

i can see qmail-send started fine, but tcpserver is not working.. 

[/var/log/qmail/qmail-smtpd] # tail current 
@400000003d37dd6e1de67504 /usr/bin/tcpserver: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory
@400000003d37dd6f206e21b4 tcpserver: fatal: unable to create socket: address 
family not supported
@400000003d37dd70217c0f44 /usr/bin/tcpserver: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory
@400000003d37dd712387c594 tcpserver: fatal: unable to create socket: address 
family not supported
@400000003d37dd72250ab444 /usr/bin/tcpserver: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory
@400000003d37dd7326d52f5c /usr/bin/tcpserver: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory
@400000003d37dd7428dbd8b4 tcpserver: fatal: unable to create socket: address 
family not supported
@400000003d37dd752a76b464 /usr/bin/tcpserver: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory
@400000003d37dd762ca7d8bc /usr/bin/tcpserver: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory
@400000003d37dd772dfe586c /usr/bin/tcpserver: error while loading shared 
libraries: libc.so.6: failed to map segment from shared object: Cannot allocate 
memory

I cant figure out why its not working..
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2002-07-19 15:42:59 UTC
I've never used qmail, I'm afraid.  Tossing to raker!
Comment 2 Nick Hadaway 2002-07-26 19:49:07 UTC
possbily you need to uncomment in /etc/fstab...
tmpfs                   /dev/shm        tmpfs           defaults               0 0

then run "mount -a" to mount what you just uncommented

If this fixes your problem or changes anything, please let me know.

Comment 3 Nick Hadaway 2002-07-26 23:06:52 UTC
@400000003d37dd6f206e21b4 tcpserver: fatal: unable to create socket: address 
family not supported

This could be due to having ipv6 support compiled in.  make sure that ipv6 is
not one of your enabled USE flags -OR- recompile your kernel and enable ipv6
support.

It is a known problem with ucspi-tcp if ipv6 support is comiled in and not
enabled in the kernel will cause crashes.  Let me know if this helps.
Comment 4 John Sutherland 2002-07-31 12:43:36 UTC
I believe I know the reasons why these errors are occuring. I have solved them a
few times on #gentoo with other people. Solutions follow:

1. Cannot allocate memory: You need to increase the amount of memory that is
allowed to be used. You do this by editting the
/var/qmail/supervise/qmail-smtpd/run file, and change the 2500000 to a larger
number. I happen to use 10000000, but only because I run qmail-scanner w/ fprot
and spamassassin.

2. address family not supported: I have seen this on 2 machines now. You need to
edit the /var/qmail/supervise/qmail-smtpd/run file, and change the 0 on the last
line to be 0.0.0.0. This does not happen on all machines.

After you make those changes, you should see something like: "tcpserver: 0/40"
in your logs. At that point everything is up and running ok. You may need some
configuragtion in qmail after that (the files in the /var/qmail/control) in
order to send/recieve email. Refer to qmail docs at this point.
Comment 5 Nick Hadaway 2002-08-03 15:51:43 UTC
Will anyone verify that these suggested fixes help the problem?
Comment 6 Nick Hadaway 2003-02-01 03:09:32 UTC
*** Bug 14593 has been marked as a duplicate of this bug. ***
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-06 01:08:05 UTC
Nick: The ipv4/ipv6 stuff with '0' and '0.0.0.0' was the problem. There was an earlier release of tcpserver that didn't behave quite right with this.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-06 01:08:28 UTC
Closing