1 2 Previous Next 21 Replies Latest reply: Mar 20, 2012 9:18 AM by Laurenfoutz-Oracle RSS

    SQLite: Assertion failed: db==0 || sqlite3_mutex_held(db->mutex) error

    907700
      Hi

      I am current using Berkeley DB version 5.2.36.
      I am getting the Assertion failed: db==0 || sqlite3_mutex_held(db->mutex), file ../lang/sql/generated/sqlite3.c, line 18058 error when I try to execute a 'delete from table' query.
      Please find the stack trace info

      gdb) bt
      #0 0x200000006612a1b0:0 in lwpkill+0x30 ()
      from /usr/lib/hpux32/libpthread.so.1
      #1 0x2000000066093a10:0 in pthread_kill+0x8d0 ()
      from /usr/lib/hpux32/libpthread.so.1
      #2 0x20000000658d05a0:0 in raise+0xe0 () from /usr/lib/hpux32/libc.so.1
      #3 0x20000000659f0cd0:0 in abort+0x170 () from /usr/lib/hpux32/libc.so.1
      #4 0x200000006589b730:0 in _assert+0x260 () from /usr/lib/hpux32/libc.so.1
      #5 0x20000000664b4480:0 in sqlite3DbMallocRaw+0xe0 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #6 0x2000000066505070:0 in sqlite3VdbeRecordUnpack+0x130 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #7 0x2000000066504470:0 in btreeCompare+0x830 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #8 0x2000000066505cf0:0 in btreeCompareShared+0xe0 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #9 0x2000000066c0b1f0:0 in __db_moff+0x280 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #10 0x20000000666b4f70:0 in __bam_cmp+0x8e0 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #11 0x2000000066774640:0 in __bam_search+0x1400 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #12 0x20000000666f0060:0 in __bamc_physdel+0x1a20 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      ---Type <return> to continue, or q <return> to quit---
      #13 0x20000000666e27a0:0 in __bamc_close+0x1550 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #14 0x2000000066b6d9f0:0 in __dbc_close+0xa50 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #15 0x2000000066bd3390:0 in __dbc_close_pp+0xd80 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #16 0x200000006651b140:0 in sqlite3BtreeDelete+0xab0 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #17 0x2000000066594050:0 in sqlite3VdbeExec+0x27050 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #18 0x200000006656c650:0 in sqlite3Step+0x870 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #19 0x2000000066499370:0 in sqlite3_step+0x150 ()
      from /scm/vobs/stgFINPI/rpconv/bdb/lib/HPUX_IA_1131/libdb_sql-5.2.so
      #20 0x400ad20:0 in exec () at testCounter.cpp:71
      #21 0x4014490:0 in truncate () at testCounter.cpp:348
      #22 0x200000006605abc0:0 in __pthread_bound_body+0x190 ()
      from /usr/lib/hpux32/libpthread.so.1

      A sample code to reproduce the above error can also be provided if required.

      Thanks
        1 2 Previous Next