ive been trying to emerge qmail (tried many versions) and everytime it gets to "* Setting up the message queue hierarchy ..." and just stays there, and itll stay there for days (left it going for a long time, never moved) so id hit ctrl+c to exit. i tried to continue with the install listed in http://gentoo-wiki.com/HOWTO_Setup_QMAIL_VPOPMAIL_and_Other_Mail_Servers and i get to the point of using tcprules, and it again hangs there and never moves Reproducible: Always Steps to Reproduce: 1.emerge qmail 2.(continue with config instructions) 3.tcprules /etc/tcprules.d/tcp.qmail-smtp.cdb /etc/tcprules.d/.tcp.qmail-smtp.tmp < /etc/tcprules.d/tcp.qmail-smtp Actual Results: it would stall in the same spot every time Expected Results: emerged completely, and tcprules should have finished setting everything up rather than hanging there. root # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 3 2005, 23:58:09)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/zugaina-portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm arts authdaemon avi berkdb bitmap-fonts cdr crypt cups curl emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 java jpeg kde ldap libg++ libwww mad maildir mikmod motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline sdl speex spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts valias vhosts vorbis xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
could you try using tcprules directly and see if it also hangs? if it does, please build it with debugging, run it via GDB, and provide a backtrace to the point where it hangs.
erm..im sorry im still a newbie, could you possibly explain how to do that?
i hate to be a pest but could somebody please tell me how to do those things so i can try to get my qmail up and running? :( (sorry if i am being a pest =/)
right after the qmail hang occurs, please provide the output of: "ps -ef -auxww" (redirect it to a file, and attach that file here). This will enable us to check what the actual thing hanging is. also, if you have tried to install qmail in the past, and then decided to do rm -rf /var/qmail, that would have broken things - as qmail is not the only package to install files in that directory - to fix this, find what packages had files there: "grep '/var/qmail' -r /var/db/pkg" and emerge them again.
Created attachment 56856 [details] part of ps -ef -auxww output i cant really redo qmail at this moment, but i tried tcprules and used ps -ef -auxww unfourtunatly it seems to get cut off at the top, and i dont know how to get all of it =/ i hope this helps in some way (btw i reemerged everything like you said because i had removed /var/qmail but still no go =/)
umm, you didn't capture it right. - emerge qmail - wait until it hangs - when it hangs, open another terminal - in the new terminal, run 'ps -ef -auxww >/root/ps-capture'
Created attachment 56864 [details] ps -ef -auxww during qmail hang allright, theres theres the ps of when qmail starts to hang
ok, so it's definetly tcprules that's hanging - and it's sitting near 100% CPU. what is in your /etc/tcprules.d/tcp.qmail-smtp that it causes this behavior? attach that file please.
Created attachment 56871 [details] tcp.smtp file
i decided to try a different qmail (older) and it has the same problems, but it uses the /etc/tcp-smtp so here is that file
It's your tcprules file! look at the second to last line. it's a comment, but the line doesn't start with a '#'.
wow, im really sorry to have wasted your time like that =/ i cant believe i never noticed it (or anyone else for that matter) thanks for pointing that out to me :) tcprules now works fine and qmail emerged perfectly :) thanks for pointing out that problem
Robin: Maybe we should report this upstream as this looks like a serious bug. What do you think?
Reopening for dup
*** This bug has been marked as a duplicate of 90679 ***