OpenDKIM Segmentation when using MySQL

From: Adam M. Jacques <>
Date: Sat, 27 Oct 2012 11:51:54 -0700

I recently upgraded from OpenDKIM v2.6 to v2.7.0 and now I seem to be having
issues attempting to start OpenDKIM. When I attempt to start OpenDKIM, it
immediately crashes with a Segmentation Fault. I've narrowed down the
problem to be with the SigningTable and KeyTable lines in my configuration
file since it only crashes when they are present:


I compiled OpenDKIM with the following command:
./configure --with-odbx=/usr/local/ --with-sql-backend=mysql --prefix=/usr
--enable-stats --enable-debug

I then restarted OpenDKIM with gdb attached, and I got this
(gdb) file opendkim/.libs/lt-opendkim
Load new symbol table from
"/home/adam/opendkim-2.7.0/opendkim/.libs/lt-opendkim"? (y or n) y
Reading symbols from
 (gdb) r -x /etc/opendkim.conf
Starting program: /home/adam/opendkim-2.7.0/opendkim/.libs/lt-opendkim -x
warning: no loadable sections found in added symbol-file system-supplied DSO
at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff57b5700 (LWP 3992)]
[Thread 0x7ffff57b5700 (LWP 3992) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff77975fe in strlcpy (dst=0x7ffffffec250
, src=0x0, size=1023) at strl.c:65
65 for (i = 0; i < size && (dst[i] = src[i]) != 0; i++)
(gdb) bt
#0 0x00007ffff77975fe in strlcpy (dst=0x7ffffffec280
, src=0x0, size=1023) at strl.c:65
#1 0x000000000041ec50 in dkimf_db_walk (db=0x63f360, first=true, key=0x0,
keylen=0x0, req=0x7ffffffe9cd0, reqnum=2) at opendkim-db.c:6006
#2 0x000000000040aa00 in dkimf_config_load (data=0x63f730, conf=0x63f010,
err=0x7fffffffd9f0 "\230\275\327\366\377\177", errlen=1025) at
#3 0x0000000000416c37 in main (argc=3, argv=0x7fffffffe718) at

I'm not sure what went wrong, since OpenDKIM v2.6 seemed to have worked in
this scenario. Did I compile something wrong here? Any help would be greatly

Received on Sat Oct 27 2012 - 18:52:10 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:44 PST