Bug 257301 - showfoto reaches an assert when saving file with "~/" in the path
Summary: showfoto reaches an assert when saving file with "~/" in the path
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Save (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 08:34 UTC by matti.valovirta
Modified: 2022-02-05 04:27 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matti.valovirta 2010-11-19 08:34:52 UTC
Application: showfoto (1.2.0)
KDE Platform Version: 4.4.5 (KDE 4.4.5) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.34-gentoo-r12 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
I open showfoto with a file (either from ksnapshot or from console) and try to save it by giving address in form "~/path/image.jpg". It crashes every time. If run from console the following is printed:
ASSERT: "!dirData.listersCurrentlyListing.isEmpty()" in file /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kio/kio/kdirlister.cpp, line 1109

Gentoo emerge --info:
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-gentoo-1.12.14
Timestamp of tree: Fri, 19 Nov 2010 07:00:04 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="# #-fixpackages /usr/lib/debug assume-digests background compiling copies debug distlocks fetches fixes fixpackages in information news packages packages? parallel-fetch protect-owned sandbox sfperms splitdebug strict to unmerge-logs unmerge-orphans userfetch while"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed "
LINGUAS="fi fi_FI en_GB en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/finnish"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="# 0...A B C D E F G H I J K L M N O P Q R S T U V...W X Z a52 aac acl acpi ada alsa amd64 apm audiofile avi bash-completion berkdb bitmap-fonts bzip2 cairo cdda cddb cdr cleartype cli cpudetection cracklib crypt css ctype cups cxx dba dbus dga dhcpcd djvu dmi dri dts dvb dvd dvdr dvdread eds emboss encode ethereal exif expat faac faad fam fastbuild ffmpeg flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp glitz glut gmp gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imlib ipod ipv6 java jpeg jpeg2k kde kde4 kdehiddenvisibility lame lastfm lcms libg++ libwww lirc lm_sensors logitech-mouse mad matroska memlimit mikmod mmx mng modules motif mozilla mp3 mp4 mpeg mudflap multilib musepack musicbrainz ncurses networking nls nptl nptlonly nsplugin ntfs ogg opengl openmp oss pam pcre pdf pdflib perl phonon png posix pppd python qt qt3support qt4 quicktime raw readline reiserfs remote rtc sdl semantic-desktop session simplexml skins slang sndfile soap sockets spell spl sql sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs taglib tcltk tcpd theora threads tiff timezone tokenizer truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis webkit wmf x264 xcb xcomposite xine xml xml2 xorg xscreensaver xsl xv xvid xvmc zlib" ALSA_CARDS="cs46xx,cs46xx-new-dsp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2 template" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi fi_FI en_GB en" LIRC_DEVICES="serial" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

The crash can be reproduced every time.

 -- Backtrace:
Application: showFoto (showfoto), signal: Aborted
[Current thread is 1 (Thread 0x7f5478e967e0 (LWP 5638))]

Thread 5 (Thread 0x7f5468947710 (LWP 5639)):
#0  0x00007f547330225c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5476e3da8b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f54788dc287 in Digikam::LoadSaveThread::run (this=0x8fad60) at /var/tmp/portage/media-gfx/digikam-1.2.0-r3/work/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5476e3ca35 in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f54732fd8c4 in start_thread () from /lib/libpthread.so.0
#5  0x00007f54759781dd in clone () from /lib/libc.so.6

Thread 4 (Thread 0x7f5463fff710 (LWP 5640)):
#0  0x00007f547330225c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5476e3da8b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f54788dc287 in Digikam::LoadSaveThread::run (this=0x7e9910) at /var/tmp/portage/media-gfx/digikam-1.2.0-r3/work/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5476e3ca35 in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f54732fd8c4 in start_thread () from /lib/libpthread.so.0
#5  0x00007f54759781dd in clone () from /lib/libc.so.6

Thread 3 (Thread 0x7f54637fe710 (LWP 5641)):
#0  0x00007f547330225c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5476e3da8b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f54788dc287 in Digikam::LoadSaveThread::run (this=0x893dd0) at /var/tmp/portage/media-gfx/digikam-1.2.0-r3/work/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5476e3ca35 in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f54732fd8c4 in start_thread () from /lib/libpthread.so.0
#5  0x00007f54759781dd in clone () from /lib/libc.so.6

Thread 2 (Thread 0x7f545e968710 (LWP 5644)):
#0  0x00007f547330225c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f5476e3da8b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f54788dc287 in Digikam::LoadSaveThread::run (this=0xad3360) at /var/tmp/portage/media-gfx/digikam-1.2.0-r3/work/digikam-1.2.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f5476e3ca35 in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f54732fd8c4 in start_thread () from /lib/libpthread.so.0
#5  0x00007f54759781dd in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7f5478e967e0 (LWP 5638)):
[KCrash Handler]
#4  0x00007f54758d9165 in raise () from /lib/libc.so.6
#5  0x00007f54758da580 in abort () from /lib/libc.so.6
#6  0x00007f5476e34944 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f5476e34af2 in qt_message(QtMsgType, char const*, __va_list_tag*) () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f5476e34ca5 in qFatal(char const*, ...) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f5477e30300 in KDirListerCache::slotEntries (this=<value optimized out>, job=<value optimized out>, entries=...)
    at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kio/kio/kdirlister.cpp:1109
#10 0x00007f5477e38977 in KDirListerCache::qt_metacall (this=0xa649b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff28312920)
    at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5_build/kio/kdirlister_p.moc:104
#11 0x00007f5476f3e246 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#12 0x00007f5477e0ccb4 in KIO::ListJob::entries (this=0x1606, _t1=0xadd520, _t2=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5_build/kio/jobclasses.moc:835
#13 0x00007f5477e15492 in KIO::ListJobPrivate::slotListEntries (this=0xb22a10, list=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kio/kio/job.cpp:2450
#14 0x00007f5477e15915 in KIO::ListJob::qt_metacall (this=0xadd520, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff28312bc0)
    at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5_build/kio/jobclasses.moc:821
#15 0x00007f5476f3e246 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#16 0x00007f5477eb2245 in KIO::SlaveInterface::listEntries (this=0x1606, _t1=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5_build/kio/slaveinterface.moc:185
#17 0x00007f5477eb4024 in KIO::SlaveInterface::dispatch (this=<value optimized out>, _cmd=50, rawdata=<value optimized out>)
    at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kio/kio/slaveinterface.cpp:193
#18 0x00007f5477eb4446 in KIO::SlaveInterface::dispatch (this=0xa712f0) at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kio/kio/slaveinterface.cpp:91
#19 0x00007f5477ea9171 in KIO::Slave::gotInput (this=0xa712f0) at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kio/kio/slave.cpp:324
#20 0x00007f5477eaa34c in KIO::Slave::qt_metacall (this=0xa712f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff28312f40)
    at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5_build/kio/slave.moc:82
#21 0x00007f5476f3e246 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f5477de7501 in KIO::ConnectionPrivate::dequeue (this=0x7049e0) at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kio/kio/connection.cpp:82
#23 0x00007f5477de829d in KIO::Connection::qt_metacall (this=0xabe9d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xb48e60)
    at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5_build/kio/connection.moc:79
#24 0x00007f5476f3adb9 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#25 0x00007f54762e860c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#26 0x00007f54762eeb4b in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#27 0x00007f54778daa41 in KApplication::notify (this=0x7fff28313a30, receiver=0xabe9d0, event=0xb07f00) at /var/tmp/portage/kde-base/kdelibs-4.4.5/work/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#28 0x00007f5476f2b04b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#29 0x00007f5476f2e703 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007f5476f54a73 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4
#31 0x00007f546fb85ecf in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0x00007f546fb89d08 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#33 0x00007f546fb89ebc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#34 0x00007f5476f545b3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#35 0x00007f547639702e in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4
#36 0x00007f5476f299a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#37 0x00007f5476f29d74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#38 0x00007f5476f2e9eb in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#39 0x000000000042ce7e in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/media-gfx/digikam-1.2.0-r3/work/digikam-1.2.0/showfoto/main.cpp:87

Possible duplicates by query: bug 247058, bug 244034, bug 219800, bug 219547, bug 207340.

Reported using DrKonqi
Comment 1 caulier.gilles 2010-11-19 10:50:02 UTC

*** This bug has been marked as a duplicate of bug 247058 ***
Comment 2 Raphael Kubo da Costa 2010-11-19 15:44:43 UTC

*** This bug has been marked as a duplicate of bug 207340 ***
Comment 3 caulier.gilles 2018-08-19 10:23:15 UTC
Not reproducible with 6.0.0