Hello,
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:
SigningTable
dsn:mysql://opendk
im:password_at_localhost/OpenDKIM/table=SigningKeys?keycol=do
main_name?datacol=id
KeyTable
dsn:mysql://opendk
im:password_at_localhost/OpenDKIM/table=SigningKeys?keycol=id
?datacol=domain_name,selector,private_key
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
/home/adam/opendkim-2.7.0/opendkim/.libs/lt-opendkim...done.
(gdb) r -x /etc/opendkim.conf
Starting program: /home/adam/opendkim-2.7.0/opendkim/.libs/lt-opendkim -x
/etc/opendkim.conf
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
"nDKIM/table=SigningKeys?keycol=id?datacol=domain_name,selector,private_key"
, 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
"nDKIM/table=SigningKeys?keycol=id?datacol=domain_name,selector,private_key"
, 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
opendkim.c:8196
#3 0x0000000000416c37 in main (argc=3, argv=0x7fffffffe718) at
opendkim.c:16310
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
appreciated.
Thanks,
Adam
Received on Sat Oct 27 2012 - 18:52:10 PST