Summary: | 0-pointer access if mysql-db is not working correctly | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Ian Hubbertz <kde_bugs> |
Component: | Database-Mysql | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | caulier.gilles, vivo75+kde |
Priority: | NOR | ||
Version: | 2.0.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.12.0 | |
Sentry Crash Report: | |||
Attachments: | New crash information added by DrKonqi |
Description
Ian Hubbertz
2011-03-13 10:35:12 UTC
This is a weird backtrace. I dont understand how to reach lastChild() from line 3218, which invokes the DAlbum constructor. Git commit 460427733fd770368b02fcc772c360776dad0da1 by Marcel Wiesweg. Committed on 07/04/2011 at 21:53. Pushed by mwiesweg into branch 'master'. Ensure to have a root album at this point. Under the exceptional circumstances in the bug, this could prevent the crash CCBUG: 268356 M +1 -1 digikam/album/albummanager.cpp http://commits.kde.org/digikam/460427733fd770368b02fcc772c360776dad0da1 Ian, Marcel has patched git master source code. Can you take a look if problem still exist ? Thanks in advace Gilles Caulier Created attachment 61424 [details]
New crash information added by DrKonqi
digikam (2.0.0-rc) on KDE Platform 4.6.4 (4.6.4) using Qt 4.7.3
in 2.0.0-rc
1) open digikam
2) shutdown mysql database
3) click an thumbnail
-- Backtrace (Reduced):
#6 ref (this=0x7fff1e41f300, other=...) at ../../src/corelib/arch/qatomic_x86_64.h:121
#7 QString (this=0x7fff1e41f300, other=...) at ../../src/corelib/tools/qstring.h:729
#8 QSqlError::QSqlError (this=0x7fff1e41f300, other=...) at kernel/qsqlerror.cpp:109
#9 0x00007f98bea423d4 in QSqlDriver::lastError (this=<value optimized out>) at kernel/qsqldriver.cpp:339
#10 0x00007f98bb66c779 in Digikam::DatabaseCoreBackendPrivate::debugOutputFailedQuery (this=0x1f4e940, query=...) at /home/vivo/digikam-devel/cppsrc/core/libs/database/databasecorebackend.cpp:342
digiKam 2.0.0 RC is out. Please check if crash is reproducible with this version. Thanks in advance Gilles Caulier Git commit d2bca3f9fe3840d68c5b78e04926ff5f0787aa1d by Marcel Wiesweg. Committed on 11/07/2011 at 17:05. Pushed by mwiesweg into branch 'master'. Avoid accessing the driver() of a possibly failed query, it may obviously crash CCBUG: 268356 M +1 -1 libs/database/databasecorebackend.cpp http://commits.kde.org/digikam/d2bca3f9fe3840d68c5b78e04926ff5f0787aa1d digiKam 2.2.0 is out since few weeks. Crash still valid with this version ? Gilles Caulier Ian, We need a feedback using digiKam 2.4... Gilles Caulier Not reproducible. Gilles Caulier |