Re: 2.5.0.Beta10 available

From: Todd Lyons <tlyons_at_ivenue.com>
Date: Tue, 3 Jan 2012 06:11:14 -0800

On Tue, Jan 3, 2012 at 2:28 AM, Andreas Schulze <sca_at_andreasschulze.de> wrote:
>> today I got segfaults after update beta9->beta10.
>> System was SLES_11. Something related to db-4.5
>
> today I recompiled opendkim with full debuginfos:
>
> idtdkim11:~ # gdb /usr/sbin/opendkim
> /var/core/opendkim_running_as_pid_14995_at_host_idtdkim11_got_signal_11
> GNU gdb (GDB) SUSE (7.3-0.6.1)
> Reading symbols from /usr/sbin/opendkim...
> Reading symbols from /usr/lib/debug/usr/sbin/opendkim.debug...done.
> done.
> [New LWP 14995]
> Core was generated by `/usr/sbin/opendkim -x /etc/opendkim/opendkim.conf'.
> Program terminated with signal 11, Segmentation fault.
> #0  0xb76ca6f9 in __os_fsync () from /usr/lib/libdb-4.5.so
> (gdb) thread apply all bt
>
> Thread 1 (Thread 0xb6ce36e0 (LWP 14995)):
> #0  0xb76ca6f9 in __os_fsync () from /usr/lib/libdb-4.5.so
> #1  0xb76c7076 in __memp_sync_int () from /usr/lib/libdb-4.5.so
> #2  0xb76c726f in __mp_xxx_fh () from /usr/lib/libdb-4.5.so
> #3  0xb7677bdc in __db_fd_pp () from /usr/lib/libdb-4.5.so
> #4  0x0806d0ec in dkimf_db_chown (db=0x8135960, uid=30045) at opendkim-db.c:5200
> #5  0x0807028b in dkimf_rep_chown_cache (rep=0x8135910, uid=30045) at reputation.c:561
> #6  0x08063f6d in main (argc=3, argv=0xbfdd27b4) at opendkim.c:16279

This came about because the db files which opendkim created were owned
by whatever user started the daemon. Murray added a function,
dkimf_rep_chown() which changed the owner (not the group) of the file
to the user set in the opendkim.conf.

1. Do you have odk changing user to a non-privileged user when it starts?
2. What user ends up owning that file?
3. Did the file exist before odk started?
4. Does it make a difference if the file is or is not present at startup?

I am using an older version of db4 than you, Murray might have to add
some logic to handle the different versions.

CentOS49[root_at_smtp4 ~]# vdir /var/lib/opendkim/rep_cache.db
-rw-r----- 1 dkim root 12288 Dec 22 05:02 /var/lib/opendkim/rep_cache.db
CentOS49[root_at_smtp4 ~]# rpm -q db4
db4-4.2.52-7.3.el4.x86_64

...Todd

-- 
SOPA: Any attempt to [use legal means to] reverse technological
advances is doomed.  --Leo Leporte
Received on Tue Jan 03 2012 - 14:11:24 PST

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tue Jan 03 2012 - 14:50:03 PST