db4 DBENV->open corrupts stack (powerpc/cyrus-imapd/OpenBSD 3.8)

View: New views
1 Messages — Rating Filter:   Alert me  

db4 DBENV->open corrupts stack (powerpc/cyrus-imapd/OpenBSD 3.8)

by erikhansen.openbsd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'd like to report a problem.

I recently installed a fresh OpenBSD 3.8 installation on a Mac G4. After installing cyrus-imapd (cyrus-imapd-2.2.12) with db4 (db-4.2.52p2) couldn't get it to work. The "master" starts "ctl_cyrusdb -r" at startup. ctl_cyrusdb however seemed to hang. Rebuilding with debug information and stepping through showed that the dbenv->open call on line 201 in cyrusdb_berkeley.c never returned. Interrupting the program and printing the stacktrace showed:

(gdb) n
^C
Program received signal SIGINT, Interrupt.
0x2b305280 in select () from /usr/lib/libc.so.38.2
(gdb) bt
#0  0x2b305280 in select () from /usr/lib/libc.so.38.2
#1  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#2  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#3  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#4  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#5  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#6  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#7  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#8  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#9  0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#10 0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#11 0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#12 0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
#13 0x25c7c5b0 in __os_sleep () from /usr/local/lib/libdb.so.4.2
Previous frame inner to this frame (corrupt stack?)
(gdb)

I had put breakpoints on db_err() and db_panic() before the call to open but they were never called.

When I rebuild cyrus-imapd against db3(db-3.1.17p2) everything works just fine.

Kind regards,
Erik

----------
This message was sent from a MailNull anti-spam account.  You can get
your free account and take control over your email by visiting the
following URL.

   http://mailnull.com/