Re: [vchkpw] vchkpw segfault with smtp auth on amd64
On Nov 16, 2004, at 5:28 PM, Martin Kos wrote: hi 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 rip rsp 007fbab0 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 :-( greets KoS I was trying to trouble shoot this with an AMD 64 server, but was unable to find the culprit, since then we just grabbed a 32 bit old P3, and put that up as our mail gateway with SMTP auth, and all works well again. It would seem that the data that qmail-smtpd sends is not correct, for some reason it sends incorrect base64 decoded information. Best way to test it that i have done is use strace: telnet localhost 25 in another terminal: ps aux | grep qmail-smtpd look for the qmail-smtpd which is not tcpserver, and then use strace to hook onto its PID. Then in the telnet window send the commands to the server until it says auth failed, in which case you just QUIT and then grab the strace output. X-Istence
Re: [vchkpw] vchkpw segfault with smtp auth on amd64
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 rip rsp 007fbab0 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/
[vchkpw] vchkpw segfault with smtp auth on amd64
hi 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 rip rsp 007fbab0 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 :-( if i've missed something or you need more details: just ask ;-). the startup scripts for daemontools are the same as i use on other machines. software used: vpopmail-5.4.8 netqmail-1.05 qmail-toaster-0.6-1.patch thanks for help greets KoS -- Martin Kos +41-76-384-93-33 http://kos.liSay NO to HTML in mail ICQ# 13556143 Proudly running Debian GNU/Linux