Project

General

Profile

Bug #11170

Segfault on Corrupt Database

Added by Negative Kelvin almost 4 years ago. Updated over 3 years ago.

Status:
Fixed
Priority:
Low
Category:
General
Target version:
Start date:
09/23/2016
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.0.6
System:
Debian
bitness:
64-bit
hardware architecture:
amd64/x86

Description

A system crash forced the use of a SysRq key reboot while using Darktable. After rebooting, Darktable began to segfault on launch:

$ darktable
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f1614783aba in __waitpid (pid=5615, stat_loc=0x0, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
29 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
backtrace written to /tmp/darktable_bt_NQ5LOY.txt
Segmentation fault

Attempting to view .tables in library.db in sqlite3 results in the following:

sqlite> .tables
Error: database disk image is malformed

Expected behavior:
If the database is unrecoverably corrupted, the user is warned and allowed to continue with a fresh database.

library.db (2.03 MB) library.db Corrupted database Negative Kelvin, 09/23/2016 04:34 AM
darktable_bt_NQ5LOY.txt (1.32 KB) darktable_bt_NQ5LOY.txt Segfault Negative Kelvin, 09/23/2016 04:34 AM

Associated revisions

Revision 5f2d005c (diff)
Added by Tobias Ellinghaus almost 4 years ago

Fix #11170: Handle corrupted library gracefully

History

#1 Updated by Tobias Ellinghaus almost 4 years ago

  • % Done changed from 0 to 50
  • Assignee set to Tobias Ellinghaus
  • Status changed from New to In Progress

#2 Updated by Tobias Ellinghaus almost 4 years ago

  • % Done changed from 50 to 100
  • Status changed from In Progress to Fixed

#3 Updated by Roman Lebedev over 3 years ago

  • Target version set to 2.2.0

Also available in: Atom PDF

Go to top