assert

Bron Gondwana brong at fastmail.fm
Fri Sep 19 01:52:50 EDT 2008


On Thu, Sep 18, 2008 at 05:00:39PM +0200, DEMBKOWSKI, Henryk (Henryk) wrote:
> Hi,
> 
> When I run tool hammer_skiplist to test new version of
> cyrusdb_skiplist.c I got
> 
> root at ms02.borsuk# ./hammer_skiplist -C /etc/imapd_p.conf -n
> /home/tsc/dhenryk/hammer.out
> fatal error: Internal error: assertion failed: cyrusdb_skiplist.c: 739:
> db->current_txn == NULL

        if (rop >= 999) {
          if (!r) r = DB_OLD->store(db, key, klen, value, vlen, tp);
          /* forget to commit */
        }

This would cause the bug you're seeing.  Basically it's an invalid usage
of the API deliberately to cause this crash.

It only happens once per 1000 cycles through the loop!

Bron.


More information about the Cyrus-devel mailing list