Bug 253266 - application exits when creating thumbnail of an apparently corrupt image file.
Summary: application exits when creating thumbnail of an apparently corrupt image file.
Status: RESOLVED WORKSFORME
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 2.4
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2010-10-04 22:30 UTC by Justin
Modified: 2018-10-27 02:28 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2010-10-04 22:30:30 UTC
Application: gwenview (2.4.3)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.32-5-amd64 x86_64
Distribution: Debian GNU/Linux testing (squeeze)

-- Information about the crash:
When navigating to a subfolder, the application stats creating thumbnails for browsing and then (always) exits when it hits one of two particular image files, which are down-sampled versions of the original which opens in GwenView fine.  These two 'problem' files can be opened with Okular and GIMP, but not with KoulorPaint or ImageJ.  Imagej reports a "TiffDecoder" error of "Unsupported SamplesPerPixel: 2" for both files.  IIRC all image processing on these two files was performed with GIMP2.2 and 2.4 and ImageJ (~2001-2007) for resizing and dynamic range compression (reducing levels).  

When the files are moved to another directory the behavior follows them.  Also, when copied into a directory which is currently being viewed in Gwenview, the application will crash.

The crash can be reproduced every time.

 -- Backtrace:
Application: Gwenview (gwenview), signal: Aborted
pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f4a45d7b760 (LWP 16278))]

Thread 4 (Thread 0x7f4a37bf9710 (LWP 16279)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4a44d44e6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f4a456ce3fc in ?? () from /usr/lib/libgwenviewlib.so.4
#3  0x00007f4a44d43e15 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f4a3ffc68ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f4a42aa602d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f4a2f7d4710 (LWP 16284)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f4a42a4f458 in _L_lock_9590 () from /lib/libc.so.6
#2  0x00007f4a42a4d841 in *__GI___libc_free (mem=0x7f4a42d33e40) at malloc.c:3737
#3  0x00007f4a3f711fea in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f4a44e5d1b3 in QEventDispatcherGlib::~QEventDispatcherGlib() () from /usr/lib/libQtCore.so.4
#5  0x00007f4a44d43a04 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007f4a44d43e1d in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f4a3ffc68ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007f4a42aa602d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f4a2ebd1710 (LWP 16285)):
[KCrash Handler]
#5  0x00007f4a42a09165 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f4a42a0bf70 in *__GI_abort () at abort.c:92
#7  0x00007f4a42a3f27b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007f4a42a48ad6 in malloc_printerr (action=3, str=0x7f4a42affac8 "double free or corruption (!prev)", ptr=<value optimized out>) at malloc.c:6267
#9  0x00007f4a42a4d84c in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3739
#10 0x00007f4a4330c875 in QImageData::~QImageData() () from /usr/lib/libQtGui.so.4
#11 0x00007f4a4330d1c3 in QImage::~QImage() () from /usr/lib/libQtGui.so.4
#12 0x00007f4a456b4325 in ?? () from /usr/lib/libgwenviewlib.so.4
#13 0x00007f4a456b4650 in ?? () from /usr/lib/libgwenviewlib.so.4
#14 0x00007f4a44d43e15 in ?? () from /usr/lib/libQtCore.so.4
#15 0x00007f4a3ffc68ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#16 0x00007f4a42aa602d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#17 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4a45d7b760 (LWP 16278)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f4a44d43563 in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007f4a44d3ee05 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#3  0x00007f4a44d43ee9 in QThread::wait(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0x00007f4a44d3a14a in ?? () from /usr/lib/libQtCore.so.4
#5  0x00007f4a44d3a348 in QThreadPool::~QThreadPool() () from /usr/lib/libQtCore.so.4
#6  0x00007f4a44d3a9d5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f4a42a0d5e2 in __run_exit_handlers (status=1, listp=0x7f4a42d324a8, run_list_atexit=true) at exit.c:78
#8  0x00007f4a42a0d635 in *__GI_exit (status=9611148) at exit.c:100
#9  0x00007f4a432bae68 in ?? () from /usr/lib/libQtGui.so.4
#10 0x00007f4a443fb258 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#11 0x00007f4a40ab1e3e in _XIOError () from /usr/lib/libX11.so.6
#12 0x00007f4a40ab925f in ?? () from /usr/lib/libX11.so.6
#13 0x00007f4a40ab9b97 in _XEventsQueued () from /usr/lib/libX11.so.6
#14 0x00007f4a40aa2463 in XEventsQueued () from /usr/lib/libX11.so.6
#15 0x00007f4a432f43b7 in ?? () from /usr/lib/libQtGui.so.4
#16 0x00007f4a3f715cd1 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#17 0x00007f4a3f716138 in ?? () from /lib/libglib-2.0.so.0
#18 0x00007f4a3f71671c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#19 0x00007f4a44e5c726 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0x00007f4a432f418e in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007f4a44e319e2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0x00007f4a44e31dbc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00007f4a44e36a4b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#24 0x000000000044400e in _start ()

Reported using DrKonqi
Comment 2 Jekyll Wu 2012-07-04 15:26:28 UTC
Is this still a problem ?  If so, please install debug symbols and paste the backtrace(the current one is not of much value). Also, the links in comment #1 are invalid now. If the files are not that big, it is better to attach them in this report
Comment 3 Andrew Crouthamel 2018-09-23 02:39:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-10-27 02:28:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!