Project

General

Profile

Bug #3434

The sqlite database is never closed: (rc=5) unable to close due to unfinalized statements or unfinished backups

Added by fixeria about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
07/30/2018
Due date:
% Done:

80%


Description

The problem observed with ASAN compiled in:

==19736==ERROR: LeakSanitizer: detected memory leaks

Indirect leak of 94616 byte(s) in 214 object(s) allocated from:
    #0 0x4e05c6  (/home/wmn/osmocom/osmo-hlr/src/osmo-hlr+0x4e05c6)
    #1 0x7f9b01061dc6  (/usr/lib/x86_64-linux-gnu/libsqlite3.so.0+0x33dc6)

Indirect leak of 1160 byte(s) in 1 object(s) allocated from:
    #0 0x4e097d  (/home/wmn/osmocom/osmo-hlr/src/osmo-hlr+0x4e097d)
    #1 0x7f9b01061d58  (/usr/lib/x86_64-linux-gnu/libsqlite3.so.0+0x33d58)

SUMMARY: AddressSanitizer: 95776 byte(s) leaked in 215 allocation(s).

with a small modification of db_close(), it was figured out that sqlite
is unable to properly close the database due to 'unfinalized statements or unfinished backups'.

History

#1 Updated by fixeria about 1 year ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 80

A fix has been submitted: https://gerrit.osmocom.org/10238/

#2 Updated by fixeria about 1 year ago

  • Status changed from Feedback to Resolved

Merged.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)