Re: Problems with stats

From: Graham Murray <graham_at_gmurray.org.uk>
Date: Sat, 04 Sep 2010 08:51:24 +0100

Graham Murray <graham_at_gmurray.org.uk> writes:

> I was wrong about the reason for stats stopping being added to the
> file. Looking at the logs it seems that opendkim was segfaulting and had
> reached its restart limit. I have now rebuilt with debugging and turned
> on EnableCoredumps and will analyse the core file if it crashes
> again. Just before each crash syslog has lines such as the following
>
> Sep 3 19:08:17 newton opendkim[21276]: o83I8Bo8021681: ADSP query: `_adsp._domainkey.ymail.com' query error
> Sep 3 19:08:17 newton sm-mta[21681]: o83I8Bo8021681: Milter insert (1): header: Authentication-Results: newton.gmurray.org.uk; dkim=pass (768-bit key)\n\theader.i=_at_yahoogroups.com header.b=PFeLykK3; dkim-adsp=temperror
> Sep 3 19:08:17 newton sm-mta[21681]: o83I8Bo8021681: milter_sys_read(dkim-filter): cmd read returned 0, expecting 5
> Sep 3 19:08:17 newton sm-mta[21681]: o83I8Bo8021681: Milter (dkim-filter): to error state
> Sep 3 19:08:17 newton opendkim[17328]: terminated with signal 11, restarting
>

It has now dumped core again. It looks as though the problem is that
'lib' is being used uninitialised in dkim_reputation()

Program terminated with signal 11, Segmentation fault.
#0 0xb77e07b8 in dkim_reputation (dkim=0x9e146a8, user=0x9e19050 "volkerarmin", domain=0x9e19038 "googlemail.com", signdomain=0x9e1490a "googlemail.com",
    qroot=0x806a1d9 "al.dkim-reputation.org", rep=0xb61f7d6c) at dkim-rep.c:217
217 status = lib->dkiml_dns_start(lib->dkiml_dns_service, T_TXT, query,
(gdb) bt
#0 0xb77e07b8 in dkim_reputation (dkim=0x9e146a8, user=0x9e19050 "volkerarmin", domain=0x9e19038 "googlemail.com", signdomain=0x9e1490a "googlemail.com",
    qroot=0x806a1d9 "al.dkim-reputation.org", rep=0xb61f7d6c) at dkim-rep.c:217
#1 0xb77e440c in dkim_get_reputation (dkim=0x9e146a8, sig=0x9e19070, qroot=0x806a1d9 "al.dkim-reputation.org", rep=0xb61fb230) at dkim.c:7608
#2 0x08054579 in mlfi_eom (ctx=0x9e15068) at opendkim.c:11993
#3 0xb77bdbd8 in st_bodyend (g=0xb61fb310) at engine.c:1614
#4 0xb77bdeee in mi_engine (ctx=0x9e15068) at engine.c:405
#5 0xb77c0178 in mi_handle_session (ctx=0x9e15068) at handler.c:45
#6 0xb77be9ee in mi_thread_handle_wrapper (arg=0x9e15068) at listener.c:579
#7 0xb7418d24 in start_thread (arg=0xb61fbb70) at pthread_create.c:301
#8 0xb738592e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133
(gdb) print lib
$1 = (DKIM_LIB *) 0x0
(gdb)
Received on Sat Sep 04 2010 - 07:51:37 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:32:54 PST