On Nov 16, 2004, at 2:28 PM, Martin Kos wrote:
i've done a fresh qmail/vpopmail installation on a debian amd64 port. everything seems to work just fine, except the smtp auth. sending an email without smtp auth works just fine. but if i try it with smtp auth i get the following in my logs:

kernel: vchkpw[28473] segfault at 0000000000000000 rip 0000000000000000 rsp 0000007fbffffab0 error 14

the only thing that i have found on the net is the following:
http://archives.neohapsis.com/archives/openbsd/2004-05/1814.html

i'm not sure if it is really a vpopmail problem. perhaps somebody has already had the same problem? i've tried with disalbing the -02 in the CFLAGS but that does not help. compiling vpopmail with gcc 3.4 was the same thing :-(

That's -O2, (oh two) not -02 (zero two).

I'm guessing that there's a problem related to memory alignment, or just assumptions on the size of certain data types (like int). Since vchkpw works fine from qmail-pop3d, it might be in how qmail-smtpd passes information to vchkpw.

Someone else reported this problem, and I was trying to get him to use strace to dump a trace to a log file in an attempt to determine WHERE the problem was happening.

Here's what I last wrote:
Try replacing /home/vpopmail/bin/vchkpw with /tmp/vchkpw.sh in the run file, and then create /tmp/vchkpw.sh as:

#!/bin/sh
/usr/bin/strace -ff -o /tmp/vchkpw.dump /home/vpopmail/bin/vchkpw /bin/true


Make sure to `chmod +x /tmp/vchkpw.sh`.

Set /bin/true to /usr/bin/true if that's the path to true. If it crashes, send me (directly, not through the list) a copy of /tmp/vchkpw.dump and I'll see if I can make any sense of it.


You can also try using the checkpassword_debug in the contrib directory to test vchkpw. If that fails as well, it might be easier to get a trace on checkpassword_debug than in the qmail-smtpd process.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/



Reply via email to