Using the mail-filter/libspf-1.0.0_p3, the spf.c plugin crashes (segfault) when calling this libspf function: peer_info->RES = SPF_policy_main(peer_info); To prove the problem is in this implementation of libspf, I unmerged libspf and installed the libspf-1.0.0-p3 from source availabe at libspf.org. The only configure switch I used was --prefix=/usr to make it more 'compatible' and then ran env-update after the make and make install. Suddenly the spf.c plugin began working. I can supply the gdb output along with the spf.c source code if you would like to see it. The spf.c has been updated (sept 6th) since the one everyone appears to be using to fix a communication problem with the -p3 libraries. The new spf.c is here: http://qmail-spp.sourceforge.net/downloads/spf.c However, this segfault problem occured with the previous version as well. I originally had the following installed, and to make it work only changed the libspf from the ebuild supply to the source supply directly from the author site. libspf 1.0.0_p3 qmail 1.0.3-r16 ucspi-tcp-0.88-r11 (there was an update so I did it) the spf.c updated source Reproducible: Always Steps to Reproduce: 1.simply enable it and send a message. The client responds "spf child crashed" 2.set env variables and run ./spf from cmdline. it segfaults. 3.replace libspf with author-site version repeat #2 and it works. Actual Results: My mail client kept reporting "spf child crashed" Expected Results: Should have accepted my email. The system was originally installed as a 2004.3 profile and recently upgraded to 2005.1 with the exception of the kernel. I have not gotten around to compiling the new kernel, it is still running 2.6.8-gentoo-r8. There is very little extra installed other than that needed to run qmail along with spamassassin/clamd/qmail-scanner. I don't know where emerge info gets that long USE statement from... the one I have in make.conf is: USE="-X -ipv6 -gtk -gnome -alsa -gtk2 -kde -qt" emerge info: prometheus spfpkg # emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r8 i686) ================================================================= System uname: 2.6.8-gentoo-r8 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 dev-lang/python: 2.3.4-r1 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apm arts avi berkdb bitmap-fonts crypt cups curl eds emboss encode foomaticdb fortran gd gdbm gif gpm gstreamer imlib jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell spf ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
late last week I did a further update to the 'latest and greatest' and still have the same problem with the gentoo-supplied libspf. I thought maybe it needed something newer than the last update. emerge info below: prometheus ~ # emerge info Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 Pentium III (Katmai) Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.seren.com/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apm arts avi berkdb bitmap-fonts crypt cups curl eds emboss encode foomaticdb fortran gd gdbm gif gpm gstreamer imlib jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Can you try w/ libspf2-1.2.5-r1 (current stable), please?