Actions
Bug #3434
closedThe sqlite database is never closed: (rc=5) unable to close due to unfinalized statements or unfinished backups
Start date:
07/30/2018
Due date:
% Done:
80%
Spec Reference:
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'.
Actions