Bug 117845 - crashes at startup, only in normal user mode.
Summary: crashes at startup, only in normal user mode.
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 0.8.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-07 11:03 UTC by Karol Adamczyk
Modified: 2017-07-25 13:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.7.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karol Adamczyk 2005-12-07 11:03:33 UTC
Version:           0.8.0 (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
Compiler:          gcc-3.4.4-r1 Gentoo Linux, CFLAGS="-march=k8 -O2 -msse3 -fweb -frename-registers -ftracer -pipe -s -DNDEBUG -DG_DISABLE_ASSERT"
OS:                Linux

At first - sorry for mistakes - I'm not skilled in english.

I've found that new digikam 0.8.0 even wont start. Strange is, that I can start it as a root. I've tried to empty temp dirs and delete config files (.kde, .kde3.5) - without any results.

I've tried to recompile digikam, kdelibs and glibc without "-s -DNDEBUG -DG_DISABLE_ASSERT" in cflags. Result is an output from gdb above. What packages should I recompile with debug flags to get some more useful output?

Here is output from gdb: 

GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
(gdb) run
Starting program: /usr/bin/digikam
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 11587)]
[New Thread 32769 (LWP 11593)]
[New Thread 16386 (LWP 11594)]
[Thread 16386 (LWP 11594) exited]
[New Thread 32771 (LWP 11595)]
[Thread 32771 (LWP 11595) exited]
digikam: ScanLib: Finding non-existing Albums: 60 ms

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 11587)]
0x00002aaaaada4640 in Digikam::readJPEGMetaData () from /usr/lib64/libdigikam.so.0
(gdb) bt
#0  0x00002aaaaada4640 in Digikam::readJPEGMetaData () from /usr/lib64/libdigikam.so.0
#1  0x00002aaaaad21b3f in ScanLib::storeItemInDatabase () from /usr/lib64/libdigikam.so.0
#2  0x00002aaaaad22f81 in ScanLib::allFiles () from /usr/lib64/libdigikam.so.0
#3  0x00002aaaaad2330c in ScanLib::findMissingItems () from /usr/lib64/libdigikam.so.0
#4  0x00002aaaaad23415 in ScanLib::startScan () from /usr/lib64/libdigikam.so.0
#5  0x00002aaaaacd5e50 in AlbumManager::setLibraryPath () from /usr/lib64/libdigikam.so.0
#6  0x00000000004029e9 in ?? ()
Comment 1 Karol Adamczyk 2005-12-07 12:49:28 UTC
I've tried to start digikam with empty pictures folder as a normal user - it started normally. But it crashed when I've tried to add a photo:

karol@localhost ~ $ gdb -exec=/usr/bin/digikam
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
(gdb) run
Starting program: /usr/bin/digikam
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 19327)]
[New Thread 32769 (LWP 19333)]
[New Thread 16386 (LWP 19334)]
[Thread 16386 (LWP 19334) exited]
[New Thread 32771 (LWP 19335)]
[Thread 32771 (LWP 19335) exited]
kio (KSycoca): Trying to open ksycoca from /var/tmp/kdecache-karol/ksycoca
kio (KDirWatch): Can't use FAM (fam daemon not running?)
kio (KDirWatch): Available methods: Stat, DNotify
kio (KDirWatch): Added Dir /home/karol/Pictures [KDirWatch-1]
kio (KDirWatch):  Setup DNotify (fd 128) for /home/karol/Pictures
kio (KDirWatch): Added Dir /home/karol/Pictures/&Nowy album [KDirWatch-1]
kio (KDirWatch):  Setup DNotify (fd 129) for /home/karol/Pictures/&Nowy album
kio (KIOJob): Job::kill this=0x867850 KIO::TransferJob m_progressId=0 quietly=true
kio (KTrader): query for KIPI/Plugin : returning 17 offers
kio (KTrader): query for Digikam/ImagePlugin : returning 30 offers
kio (KTrader): query for Digikam/ImagePlugin : returning 30 offers
kio (KDirLister): +KDirLister
kio (KDirListerCache): +KDirListerCache
kio (KTrader): query for ThumbCreator : returning 11 offers
kio (KTrader): query for ThumbCreator : returning 11 offers
kio (KDirLister): [virtual bool KDirLister::openURL(const KURL&, bool, bool)] file:///home/karol/ keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::listDir(KDirLister*, const KURL&, bool, bool)] 0xd7b470 url=file:///home/karol keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*)] 0xd7b470
kio (KDirListerCache): listDir: Entry not in cache or reloaded: file:///home/karol
kio (KDirWatch): Added Dir /home/karol [KDirWatch-2]
kio (KDirWatch):  Setup DNotify (fd 130) for /home/karol
kio (KDirListerCache): [void KDirListerCache::slotEntries(KIO::Job*, const KIO::UDSEntryList&)] new entries for file:///home/karol
kio: KSambaShare::readSmbConf /etc/samba/smb.conf
kio: KSambaShare: Found path: /home/karol/sda14/Muzyka/
kio: KSambaShare: Found path: /home/karol/sda14/Filmy/
kio: KSambaShare: Found path: /home/karol/sda14/Download/Look&feel/tapety/
kio: KSambaShare: Found path: /home/karol/sda14/Koncerty/
kio: KSambaShare: Found path: /home/karol/Pictures/Sól Listopad 2005/
kio: KSambaShare: Found path: /mnt/windows/ntfs/Programy/
kio: KSambaShare: Found path: /home/karol/sda14/ISOs/
kio: KSambaShare: Found path: /home/karol/Pictures/Śnieg - 28.11.2005/
kio: KSambaShare: Found path: /home/karol/sda14/Dokumenty/Studia/
kio (KDirWatch): Added File /etc/samba/smb.conf [KDirWatch-2]
kio (KDirWatch): Added Dir /etc/samba for /etc/samba/smb.conf
kio (KDirWatch):  Setup DNotify (fd 131) for /etc/samba
kio (KDirWatch): Added File /etc/security/fileshare.conf [KDirWatch-2]
kio (KDirWatch): Added Dir /etc/security for /etc/security/fileshare.conf
kio (KDirWatch):  Setup DNotify (fd 132) for /etc/security
kio: KNFSShare: Could not found exports file!
kio (KDirListerCache): [void KDirListerCache::slotResult(KIO::Job*)] finished listing file:///home/karol
kio (KDirLister): [virtual bool KDirLister::openURL(const KURL&, bool, bool)] file:///home/karol/Pictures/ keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::listDir(KDirLister*, const KURL&, bool, bool)] 0xd7b470 url=file:///home/karol/Pictures keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*)] 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 _url: file:///home/karol
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 item moved into cache: file:///home/karol
kio (KDirListerCache): listDir: Entry not in cache or reloaded: file:///home/karol/Pictures
kio (KDirWatch): Added already watched Entry /home/karol/Pictures (now 2 clients) [KDirWatch-2]
kio (KDirListerCache): [void KDirListerCache::slotEntries(KIO::Job*, const KIO::UDSEntryList&)] new entries for file:///home/karol/Pictures
kio (KDirListerCache): [void KDirListerCache::slotResult(KIO::Job*)] finished listing file:///home/karol/Pictures
kio (KDirLister): [virtual bool KDirLister::openURL(const KURL&, bool, bool)] file:///home/karol/ keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::listDir(KDirLister*, const KURL&, bool, bool)] 0xd7b470 url=file:///home/karol keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*)] 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 _url: file:///home/karol/Pictures
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 item moved into cache: file:///home/karol/Pictures
kio (KDirListerCache): listDir: Entry in cache: file:///home/karol
kio (KDirWatch): Cancelled DNotify (fd 130) for /home/karol
kio (KDirWatch): Removed Dir /home/karol [KDirWatch-2]
kio (KDirWatch): Added Dir /home/karol [KDirWatch-2]
kio (KDirWatch):  Setup DNotify (fd 130) for /home/karol
kio (KDirLister): [virtual bool KDirLister::openURL(const KURL&, bool, bool)] file:///home/karol/Pictures2/ keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::listDir(KDirLister*, const KURL&, bool, bool)] 0xd7b470 url=file:///home/karol/Pictures2 keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*)] 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 _url: file:///home/karol
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 item moved into cache: file:///home/karol
kio (KDirListerCache): listDir: Entry not in cache or reloaded: file:///home/karol/Pictures2
kio (KDirWatch): Added Dir /home/karol/Pictures2 [KDirWatch-2]
kio (KDirWatch):  Setup DNotify (fd 133) for /home/karol/Pictures2
kio (KDirListerCache): [void KDirListerCache::slotEntries(KIO::Job*, const KIO::UDSEntryList&)] new entries for file:///home/karol/Pictures2
kio (KDirListerCache): [void KDirListerCache::slotResult(KIO::Job*)] finished listing file:///home/karol/Pictures2
kio (KDirLister): [virtual bool KDirLister::openURL(const KURL&, bool, bool)] file:///home/karol/Pictures2/snieg_przeskalowane/ keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::listDir(KDirLister*, const KURL&, bool, bool)] 0xd7b470 url=file:///home/karol/Pictures2/snieg_przeskalowane keep=false reload=false
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*)] 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 _url: file:///home/karol/Pictures2
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 item moved into cache: file:///home/karol/Pictures2
kio (KDirListerCache): listDir: Entry not in cache or reloaded: file:///home/karol/Pictures2/snieg_przeskalowane
kio (KDirWatch): Added Dir /home/karol/Pictures2/snieg_przeskalowane [KDirWatch-2]
kio (KDirWatch):  Setup DNotify (fd 134) for /home/karol/Pictures2/snieg_przeskalowane
kio (KDirListerCache): [void KDirListerCache::slotEntries(KIO::Job*, const KIO::UDSEntryList&)] new entries for file:///home/karol/Pictures2/snieg_przeskalowane
kio (KDirListerCache): [void KDirListerCache::slotResult(KIO::Job*)] finished listing file:///home/karol/Pictures2/snieg_przeskalowane
kio (KDirLister): [virtual void KDirLister::stop()]
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0xd7b470
kio (KIOJob): kio_uiserver registered
kio (KDirLister): -KDirLister
kio (KDirLister): [virtual void KDirLister::stop()]
kio (KDirListerCache): [void KDirListerCache::stop(KDirLister*)] lister: 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*)] 0xd7b470
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 _url: file:///home/karol/Pictures2/snieg_przeskalowane
kio (KDirListerCache): [void KDirListerCache::forgetDirs(KDirLister*, const KURL&, bool)] 0xd7b470 item moved into cache: file:///home/karol/Pictures2/snieg_przeskalowane
kio (KIOJob): stat digikamalbums:///home/karol/Pictures@%20/&Nowy album
kio (KIOJob): stat file:///home/karol/Pictures2/snieg_przeskalowane/snieg01.JPG
kio (KIOJob): copying /&Nowy album/snieg01.JPG

Program received signal SIG43, Real-time event 43.
[Switching to Thread 16384 (LWP 19327)]
0x00002aaaafeafb56 in select () from /lib/libc.so.6
(gdb) bt
#0  0x00002aaaafeafb56 in select () from /lib/libc.so.6
#1  0x00002aaaad9c4307 in QEventLoop::processEvents () from /usr/qt/3/lib64/libqt-mt.so.3
#2  0x00002aaaada224f5 in QEventLoop::enterLoop () from /usr/qt/3/lib64/libqt-mt.so.3
#3  0x00002aaaada22452 in QEventLoop::exec () from /usr/qt/3/lib64/libqt-mt.so.3
#4  0x0000000000402784 in ?? ()
(gdb)  
Comment 2 Tom Albers 2005-12-28 16:26:45 UTC
Please check if your libexif and libkexif are up to date.
Comment 3 Karol Adamczyk 2005-12-29 00:36:19 UTC
I've downgraded libexif few days ago from 0.6.12-r4 to 0.5.12-r3, and all problems has gone :)
Comment 4 Tom Albers 2005-12-29 01:03:43 UTC
Yes, libexif seems to make digikam crash this way, although i use 0.6.12 as well. Nothing we can do...
Comment 5 Christian Hesse 2006-01-02 20:44:15 UTC
So who's fault is it?

Digikam depends on libkexif, libkexif depends on libexif >=0.6.9, digikam crashes with libexif 0.6.x... So what to do?
Comment 6 caulier.gilles 2017-07-19 03:49:10 UTC
Problem not reproducible since digiKam 5.0.0 as KDirWatch has been ported to
QFileSystemWatcher