Bug 409175 - crash in QSqlDatabase
Summary: crash in QSqlDatabase
Status: RESOLVED DOWNSTREAM
Alias: None
Product: digikam
Classification: Applications
Component: Database-Engine (show other bugs)
Version: 6.1.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-06-25 13:59 UTC by Pauli
Modified: 2022-01-14 09:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments
attachment-7250-0.html (1.47 KB, text/html)
2019-06-25 15:43 UTC, Pauli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pauli 2019-06-25 13:59:59 UTC
Application: digikam (6.1.0)

Qt Version: 5.12.3
Frameworks Version: 5.59.0
Operating System: Linux 5.1.7-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
Fehler seit installation openSUSE Tumbleweed

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff6b1724ec0 (LWP 4846))]

Thread 19 (Thread 0x7ff680fe6700 (LWP 4864)):
[KCrash Handler]
#6  0x00007ff6c39af217 in std::__atomic_base<QReadWriteLockPrivate*>::compare_exchange_strong (__m2=std::memory_order_acquire, __m1=std::memory_order_acquire, __p2=0x2, __p1=<synthetic pointer>: <optimized out>, this=0x8) at /usr/include/c++/9/bits/atomic_base.h:769
#7  std::atomic<QReadWriteLockPrivate*>::compare_exchange_strong (__m2=std::memory_order_acquire, __m1=std::memory_order_acquire, __p2=0x2, __p1=<synthetic pointer>: <optimized out>, this=0x8) at /usr/include/c++/9/atomic:565
#8  QAtomicOps<QReadWriteLockPrivate*>::testAndSetAcquire<QReadWriteLockPrivate*> (currentValue=<synthetic pointer>, newValue=0x2, expectedValue=0x0, _q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:290
#9  QBasicAtomicPointer<QReadWriteLockPrivate>::testAndSetAcquire (currentValue=<synthetic pointer>: <optimized out>, newValue=0x2, expectedValue=0x0, this=0x8) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:263
#10 QReadWriteLock::tryLockForWrite (this=0x8, timeout=-1) at thread/qreadwritelock.cpp:339
#11 0x00007ff6c4c32249 in QWriteLocker::relock (this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qreadwritelock.h:170
#12 QWriteLocker::QWriteLocker (areadWriteLock=0x8, this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qreadwritelock.h:170
#13 QSqlDatabasePrivate::removeDatabase (name=...) at kernel/qsqldatabase.cpp:199
#14 0x00007ff6c4fc354b in ?? () from /usr/lib64/libdigikamcore.so.6.1.0
#15 0x00007ff6c4fc366b in ?? () from /usr/lib64/libdigikamcore.so.6.1.0
#16 0x00007ff6c4fcb9fe in ?? () from /usr/lib64/libdigikamcore.so.6.1.0
#17 0x00007ff6c39b2b41 in QThreadStorageData::finish (p=p@entry=0x55de86b27180) at thread/qthreadstorage.cpp:200
#18 0x00007ff6c39ad000 in QThreadPrivate::finish (arg=0x7ff6c63cd400) at thread/qthread_unix.cpp:402
#19 0x00007ff6c39ad8da in __pthread_cleanup_class::~__pthread_cleanup_class (this=<synthetic pointer>, __in_chrg=<optimized out>) at /usr/include/pthread.h:563
#20 QThreadPrivate::start (arg=0x7ff6c63cd400) at thread/qthread_unix.cpp:318
#21 0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#22 0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 18 (Thread 0x7ff6821f7700 (LWP 4863)):
#0  0x00007ff6c33d1c9f in poll () from /lib64/libc.so.6
#1  0x00007ff6bf63ad2e in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff6bf63ae4f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff6c3bc1e1b in QEventDispatcherGlib::processEvents (this=0x7ff67c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007ff6c3b6abdb in QEventLoop::exec (this=this@entry=0x7ff6821e76b0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007ff6c39ac751 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007ff6c24514e6 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007ff6c39ad8d2 in QThreadPrivate::start (arg=0x7ff6c24d2d80) at thread/qthread_unix.cpp:361
#8  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 17 (Thread 0x7ff689f2e700 (LWP 4862)):
#0  0x00007ff6c33d1c9f in poll () from /lib64/libc.so.6
#1  0x00007ff6b61e0cc2 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007ff6b61e28ba in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007ff68a071e28 in QXcbEventQueue::run (this=0x55de86593240) at qxcbeventqueue.cpp:228
#4  0x00007ff6c39ad8d2 in QThreadPrivate::start (arg=0x55de86593240) at thread/qthread_unix.cpp:361
#5  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 16 (Thread 0x7ff6906fc700 (LWP 4861)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 15 (Thread 0x7ff692efd700 (LWP 4860)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 14 (Thread 0x7ff6956fe700 (LWP 4859)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 13 (Thread 0x7ff697eff700 (LWP 4858)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 12 (Thread 0x7ff69a700700 (LWP 4857)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7ff69cf01700 (LWP 4856)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7ff69f702700 (LWP 4855)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7ff6a1f03700 (LWP 4854)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7ff6a4704700 (LWP 4853)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7ff6a6f05700 (LWP 4852)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7ff6a9706700 (LWP 4851)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7ff6abf07700 (LWP 4850)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7ff6b0708700 (LWP 4849)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7ff6b0f09700 (LWP 4848)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff6b170a700 (LWP 4847)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6b6923ceb in ?? () from /usr/lib64/libopenblas_pthreads.so.0
#2  0x00007ff6c22dcfaa in start_thread () from /lib64/libpthread.so.0
#3  0x00007ff6c33dc71f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff6b1724ec0 (LWP 4846)):
#0  0x00007ff6c22e2e05 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff6c39b37cf in QWaitConditionPrivate::wait (deadline=..., this=0x55de86b2a200) at thread/qwaitcondition_unix.cpp:146
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x55de86b09600, deadline=...) at thread/qwaitcondition_unix.cpp:225
#3  0x00007ff6c39b38b9 in QWaitCondition::wait (this=this@entry=0x55de86b09620, mutex=mutex@entry=0x55de86b09600, time=time@entry=18446744073709551615) at ../../include/QtCore/../../src/corelib/kernel/qdeadlinetimer.h:68
#4  0x00007ff6c39ad59e in QThread::wait (this=<optimized out>, time=18446744073709551615) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:240
#5  0x00007ff6c5c4b366 in Digikam::ScanController::~ScanController() () from /usr/lib64/libdigikamgui.so.6.1.0
#6  0x00007ff6c5c4b449 in ?? () from /usr/lib64/libdigikamgui.so.6.1.0
#7  0x00007ff6c331d500 in __run_exit_handlers () from /lib64/libc.so.6
#8  0x00007ff6c331d63c in exit () from /lib64/libc.so.6
#9  0x00007ff6bb9c8688 in ?? () from /usr/lib64/libQt5WebEngineCore.so.5
#10 0x00007ff6bab349ad in ?? () from /usr/lib64/libQt5WebEngineCore.so.5
#11 0x00007ff6b8f34f73 in ?? () from /usr/lib64/libQt5WebEngineCore.so.5
#12 0x00007ff6b8f36834 in ?? () from /usr/lib64/libQt5WebEngineCore.so.5
#13 0x00007ff6c31bb6c3 in ?? () from /usr/lib64/libQt5WebEngineWidgets.so.5
#14 0x00007ff6c31bc383 in QWebEnginePage::QWebEnginePage(QObject*) () from /usr/lib64/libQt5WebEngineWidgets.so.5
#15 0x00007ff6c31cc02b in QWebEngineView::page() const () from /usr/lib64/libQt5WebEngineWidgets.so.5
#16 0x00007ff6c31cc3d9 in QWebEngineView::settings() const () from /usr/lib64/libQt5WebEngineWidgets.so.5
#17 0x00007ff6c5dd210e in Digikam::WelcomePageView::WelcomePageView(QWidget*) () from /usr/lib64/libdigikamgui.so.6.1.0
#18 0x00007ff6c5de65e1 in Digikam::StackedView::StackedView(QWidget*) () from /usr/lib64/libdigikamgui.so.6.1.0
#19 0x00007ff6c5ddb9b9 in Digikam::ItemIconView::ItemIconView(QWidget*, Digikam::DModelFactory*) () from /usr/lib64/libdigikamgui.so.6.1.0
#20 0x00007ff6c5d45b29 in Digikam::DigikamApp::setupView() () from /usr/lib64/libdigikamgui.so.6.1.0
#21 0x00007ff6c5d38e9a in Digikam::DigikamApp::DigikamApp() () from /usr/lib64/libdigikamgui.so.6.1.0
#22 0x000055de856ab962 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/digikam-6.1.0-197.9.x86_64/core/app/main/main.cpp:261
[Inferior 1 (process 4846) detached]

Reported using DrKonqi
Comment 1 Maik Qualmann 2019-06-25 14:49:07 UTC
What kind of title is that? In German and then misspelled ((:-))

Maik
Comment 2 Maik Qualmann 2019-06-25 14:51:59 UTC
I suspect a package problem here. Please test the AppImage of www.digikam.org to see if the problem is reproducible.

Maik
Comment 3 Pauli 2019-06-25 15:43:23 UTC
Created attachment 121140 [details]
attachment-7250-0.html

 Thanks a lot for the tip, the appimage works fine

    Am Dienstag, 25. Juni 2019, 16:52:05 MESZ hat Maik Qualmann <bugzilla_noreply@kde.org> Folgendes geschrieben:  
 
 https://bugs.kde.org/show_bug.cgi?id=409175

--- Comment #2 from Maik Qualmann <metzpinguin@gmail.com> ---
I suspect a package problem here. Please test the AppImage of www.digikam.org
to see if the problem is reproducible.

Maik
Comment 4 caulier.gilles 2019-06-25 15:52:12 UTC
So the problem come from certainly your Qt5 installtion from your Linux, especially the Qt5sqlplugin package (aka mysql or sqlite)

Report this problem as DOWNSTREAM to you Linux team.

Gilles Caulier
Comment 5 Maik Qualmann 2019-07-17 03:49:44 UTC
*** Bug 409884 has been marked as a duplicate of this bug. ***