[vchkpw] Re: Getting segmentation fault with chkusr patch for qmail-smtpd
Hello Glenn, On Sunday, May 1, 2005 at 5:28:34 PM Glenn wrote: You should at least examine smtp_rcpt and post it. Attached are the smtp_mail and smtp_rcpt from my qmailrocks source. My smtp_rcpt seems to be patched with some TLS code. I really don't need that since no clients use it. So if that's in the way it can be removed. The posted 'smtp_mail()' excerpt from 'qmail-smtpd.c' ain't patched with 'chkuser'-patch at all ... So chkuser-patch can't be the culprit, if this is the source you actually compiled. -- Best regards Peter Palmreuther It is morally wrong to allow suckers to keep their money.
RE: [vchkpw] Re: Getting segmentation fault with chkusr patch for qmail-smtpd
How did you apply the patch over qmailrocks installation? Did you have any error from patch? You should at least examine smtp_rcpt and post it. Ciao, Tonino At 22.44 28/04/2005, you wrote: *exactly*? Compile qmail without and '-O' and with '-g2' and run qmail-smtpd in 'dbg' (or similar). Use 'strace' or 'truss' (with follow fork option) I'm obviously abit over my head here on the Linux platform. :-) I don't have truss or dbg on my machine. I have strace however but I didn't get any smarter. Removed -O2 from conf-cc, touched *.c and ran make but strace didn't display anything more. Part of strace output: - write(1, 220 mx2.example.com ESMTP\r\n, 0 mx2.example.com ESMTP ) = 22 alarm(0)= 1200 alarm(1200) = 0 read(0, helo helo\n, 1024) = 5 alarm(0)= 1197 alarm(1200) = 0 write(1, 250 mx2.example.com\r\n, 16250 mx2.example.com ) = 16 alarm(0)= 1200 alarm(1200) = 0 read(0, mail mail\n, 1024) = 5 alarm(0)= 1199 alarm(1200) = 0 write(1, 250 ok\r\n, 8250 ok ) = 8 alarm(0)= 1200 alarm(1200) = 0 read(0, rcpt rcpt\n, 1024) = 5 alarm(0)= 1197 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ The lines starting with read(0, is followed by my input. I have no idea if this helps anyone see what's wrong though. Sorry for being a complete newbie on this... Regards, Glenn F. Henriksen
[vchkpw] Re: Getting segmentation fault with chkusr patch for qmail-smtpd
Hello Glenn, On Thursday, April 28, 2005 at 11:44:06 PM Glenn wrote: *exactly*? Compile qmail without and '-O' and with '-g2' and run qmail-smtpd in 'dbg' (or similar). Use 'strace' or 'truss' (with follow fork option) I'm obviously abit over my head here on the Linux platform. :-) I don't have truss or dbg on my machine. I have strace however but I didn't get any smarter. Removed -O2 from conf-cc, touched *.c and ran make but strace didn't display anything more. 'truss' is (can be) present on Unix while Linux has 'strace'. As I didn't know which system you're on I gave you both commands. Please execute 'strace' as follows: strace -fF -o /tmp/qmail-smtpd.log -s 4096 ./qmail-smtpd and post the (complete) file /tpm/qmail-smtpd.log (as text attachment). -- Best regards Peter Palmreuther Never put off till tomorrow what you can ignore entirely.
[vchkpw] Re: Getting segmentation fault with chkusr patch for qmail-smtpd
Hello Glenn, On Thursday, April 28, 2005 at 9:55:57 PM Glenn wrote: [chkusr patch applied to qmailrocks setup qmail] But when I test it afterwards I get a segmentation fault whenever I type mail on a line. [...] Is there any way I can figure out exactly where in chkusr it fails? *exactly*? Compile qmail without and '-O' and with '-g2' and run qmail-smtpd in 'dbg' (or similar). Rough first guess? Use 'strace' or 'truss' (with follow fork option) to get an estimated idea about when it segfaults. -- Best regards Peter Palmreuther Petrified Spare Ribs: Jurassic Pork
RE: [vchkpw] Re: Getting segmentation fault with chkusr patch for qmail-smtpd
*exactly*? Compile qmail without and '-O' and with '-g2' and run qmail-smtpd in 'dbg' (or similar). Use 'strace' or 'truss' (with follow fork option) I'm obviously abit over my head here on the Linux platform. :-) I don't have truss or dbg on my machine. I have strace however but I didn't get any smarter. Removed -O2 from conf-cc, touched *.c and ran make but strace didn't display anything more. Part of strace output: - write(1, 220 mx2.example.com ESMTP\r\n, 0 mx2.example.com ESMTP ) = 22 alarm(0)= 1200 alarm(1200) = 0 read(0, helo helo\n, 1024) = 5 alarm(0)= 1197 alarm(1200) = 0 write(1, 250 mx2.example.com\r\n, 16250 mx2.example.com ) = 16 alarm(0)= 1200 alarm(1200) = 0 read(0, mail mail\n, 1024) = 5 alarm(0)= 1199 alarm(1200) = 0 write(1, 250 ok\r\n, 8250 ok ) = 8 alarm(0)= 1200 alarm(1200) = 0 read(0, rcpt rcpt\n, 1024) = 5 alarm(0)= 1197 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ The lines starting with read(0, is followed by my input. I have no idea if this helps anyone see what's wrong though. Sorry for being a complete newbie on this... Regards, Glenn F. Henriksen