Bug 404508

Summary: baloo file extracotr crashes
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Erasmo Caponio <erasmocaponio>
Component: Baloo File DaemonAssignee: baloo-bugs-null
Status: RESOLVED UPSTREAM    
Severity: crash CC: nate
Priority: NOR Keywords: drkonqi
Version First Reported In: 5.55.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Erasmo Caponio 2019-02-18 08:29:13 UTC
Application: baloo_file_extractor (5.55.0)

Qt Version: 5.12.0
Frameworks Version: 5.55.0
Operating System: Linux 4.15.0-45-generic x86_64
Distribution: KDE neon User Edition 5.15

-- Information about the crash:
Every time a restart baloo (bacause of file extractor crashing), after deleting the index data base, file extractor crashes in a couple of minutes; it seems that this happens always when indexing the same file because the number of files indexed when the crash happens is always the same

The crash can be reproduced every time.

-- Backtrace:
Application: Baloo File Extractor (baloo_file_extractor), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f21cc249d80 (LWP 24717))]

Thread 3 (Thread 0x7f21a2344700 (LWP 24727)):
#0  0x00007f21c8d610b4 in __GI___libc_read (fd=8, buf=0x7f21a2343b20, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f21c486ef55 in  () at /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.340.107
#2  0x00007f21c53b7cd0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f21c5373027 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f21c53734e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f21c537364c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f21c96a815b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f21c964964a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f21c947141a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f21cb03d015 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007f21c9472bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f21c796c6db in start_thread (arg=0x7f21a2344700) at pthread_create.c:463
#12 0x00007f21c8d7288f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f21bb416700 (LWP 24724)):
#0  0x00007f21c8d65bf9 in __GI___poll (fds=0x7f21bb415c78, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f21c4f02747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f21c4f0436a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f21bdfd8d4a in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f21c9472bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f21c796c6db in start_thread (arg=0x7f21bb416700) at pthread_create.c:463
#6  0x00007f21c8d7288f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f21cc249d80 (LWP 24717)):
[KCrash Handler]
#6  0x00007f21b96260e8 in Exiv2::ValueType<std::pair<unsigned int, unsigned int> >::toRational(long) const () at /usr/lib/x86_64-linux-gnu/libexiv2.so.26
#7  0x00007f21b9a0ee3d in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kfilemetadata/kfilemetadata_exiv2extractor.so
#8  0x00007f21b9a0f589 in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kfilemetadata/kfilemetadata_exiv2extractor.so
#9  0x000055845a3df23b in Baloo::App::index(Baloo::Transaction*, QString const&, unsigned long long) (this=this@entry=0x7fffca63ee50, tr=0x55845b935980, url=..., id=id@entry=1649267443715) at ./src/file/extractor/app.cpp:191
#10 0x000055845a3dfb7e in Baloo::App::processNextFile() (this=0x7fffca63ee50) at ./src/file/extractor/app.cpp:111
#11 0x00007f21c9687d04 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f21c967b94b in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f21ca44183c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f21ca448dd0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f21c964b328 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f21c96a75a9 in QTimerInfoList::activateTimers() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f21c96a7da9 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007f21c5373387 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f21c53735c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f21c537364c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007f21c96a813f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f21c964964a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f21c9652800 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x000055845a3de20d in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./src/file/extractor/main.cpp:60

Reported using DrKonqi
Comment 1 Nate Graham 2019-02-18 22:47:51 UTC
it's crashing in Exiv2::ValueType<std::pair<unsigned int, unsigned int> >::toRational(long). Please report to the exiv folks: https://github.com/exiv2/exiv2/issues