assert

DEMBKOWSKI, Henryk (Henryk) hdembkowski at alcatel-lucent.com
Fri Sep 19 03:54:24 EDT 2008


Bron,

Thank you very much for info.

Henryk 



-----Original Message-----
From: Bron Gondwana [mailto:brong at fastmail.fm] 
Sent: Friday, September 19, 2008 7:53 AM
To: DEMBKOWSKI, Henryk (Henryk)
Cc: cyrus-devel at lists.andrew.cmu.edu; info-cyrus at lists.andrew.cmu.edu
Subject: Re: assert

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