Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 136392 - authd fails with spamd
authd fails with spamd
Product: Fedora
Classification: Fedora
Component: authd (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Eido Inoue
Depends On:
Blocks: 136367
  Show dependency treegraph
Reported: 2004-10-19 13:44 EDT by Thomas Zehetbauer
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version: 1.4.3-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-11-16 11:49:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
strace (9.96 KB, text/plain)
2004-10-19 13:50 EDT, Thomas Zehetbauer
no flags Details
ethereal pcap dump (1.03 KB, application/octet-stream)
2004-10-19 13:50 EDT, Thomas Zehetbauer
no flags Details
authd-1.2.8-1.fc3.src.rpm (29.64 KB, text/plain)
2004-11-15 12:29 EST, Ian Pilcher
no flags Details

  None (edit)
Description Thomas Zehetbauer 2004-10-19 13:44:40 EDT
Running spamassassin/spamd with --auth-ident triggers a rather obscure
bug in authd-1.4.2-8.x86_64. Either a non protocol conformant glibc
error message is returned to the spamd client or the connection is
prematurely terminated with the following message in syslog:

Oct 19 16:27:51 hostmaster kernel: in.authd[27780]: segfault at
0000000000528008 rip 0000002a959012be rsp 0000007fbffff180 error 4
Comment 1 Thomas Zehetbauer 2004-10-19 13:50:08 EDT
Created attachment 105453 [details]
Comment 2 Thomas Zehetbauer 2004-10-19 13:50:45 EDT
Created attachment 105454 [details]
ethereal pcap dump
Comment 3 Matthew S. Hallacy 2004-11-12 14:53:39 EST
This is easy to reproduce:

telnet localhost 113
123, 123
*** glibc detected *** double free or corruption: 0x082066b8 ***

I gave up on the random-identd-daemon-of-the-week game and installed
pidentd, which works fine.
Comment 4 Ian Pilcher 2004-11-14 20:30:49 EST
I am seeing the same error.  This is a showstopper for anyone who
wants to use PostgreSQL IDENT authentication across a TCP/IP socket
(with JDBC for example).
Comment 5 Ian Pilcher 2004-11-15 12:29:15 EST
Created attachment 106725 [details]

authd-1.2.8-1.fc3 seems to work.  Attaching the SRPM for anyone who wants to
try it, since Rawhide packages tend to "just fade away".
Comment 6 Eido Inoue 2004-11-15 18:27:10 EST
laddr and raddr need to be set to NULL after they're freed in line 663

         else if (*laddr == '\0' || *raddr == '\0') {
             // host address doesn't match peer address, so skip it
-            free(laddr); free(raddr); continue;
         else if (*laddr == '\0' || *raddr == '\0') {
             // host address doesn't match peer address, so skip it
+            free(laddr); free(raddr); laddr = raddr = NULL; continue;

Note You need to log in before you can comment on or make changes to this bug.