https://bugs.kde.org/show_bug.cgi?id=522947
Bug ID: 522947
Summary: Instant crash when opening a folder
Classification: Applications
Product: gwenview
Version First 26.04.0
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 194217
--> https://bugs.kde.org/attachment.cgi?id=194217&action=edit
valgrind analysis
DESCRIPTION:
Gwenview crashes when you try to open a folder containing a specific image
(that image alone is enough to cause the crash). See backtraces / valgrind
below.
STEPS TO REPRODUCE
1. Put the image in a folder (see attachment)
2. Run `gwenview .`
OBSERVED RESULT
gwenview crashes instantly.
By the way, double-clicking the image opens it correctly.
SOFTWARE/OS VERSIONS
Operating System: Kali GNU/Linux 2026.2
KDE Plasma Version: 6.6.5
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Graphics Platform: X11
ADDITIONAL INFORMATION
Error in shell:
```
free(): invalid size
[1] 66425 IOT instruction (core dumped) gwenview .
```
gb backtrace:
```
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x00007ffff4c9fdbf in __pthread_kill_internal (threadid=<optimized out>,
signo=6) at ./nptl/pthread_kill.c:89
#2 0x00007ffff4c48d02 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3 0x00007ffff4c304b2 in __GI_abort () at ./stdlib/abort.c:77
#4 0x00007ffff4c314eb in __libc_message_impl (fmt=fmt@entry=0x7ffff4db834b
"%s\n") at ../sysdeps/posix/libc_fatal.c:138
#5 0x00007ffff4ca9c57 in malloc_printerr (str=<optimized out>) at
./malloc/malloc.c:5895
#6 0x00007ffff4ca9c71 in malloc_printerr_tail (str=<optimized out>) at
./malloc/malloc.c:5912
#7 0x00007ffff1b7fa06 in LibRaw::~LibRaw (this=0x7fffd83e9060) at
src/utils/init_close_utils.cpp:110
#8 0x00007ffff1b7fa62 in LibRaw::~LibRaw (this=0x7fffd83e9060) at
src/utils/init_close_utils.cpp:124
#9 0x00007fffdf671394 in ??? () at
/usr/lib/x86_64-linux-gnu/qt6/plugins/imageformats/kimg_raw.so
#10 0x00007fffdf6716ff in ??? () at
/usr/lib/x86_64-linux-gnu/qt6/plugins/imageformats/kimg_raw.so
#11 0x00007ffff5bba612 in createReadHandlerHelper
(device=<optimized out>, format=..., autoDetectImageFormat=<optimized out>,
ignoresFormatAndExtension=<optimized out>) at
./src/gui/image/qimagereader.cpp:302
#12 0x00007ffff5bbb09d in QImageReaderPrivate::initHandler
(this=0x7fffd809da20) at ./src/gui/image/qimagereader.cpp:525
#13 0x00007ffff5bbb671 in QImageReader::read (this=0x7fffbdffa2e8,
image=0x7fffbdffa2a0) at ./src/gui/image/qimagereader.cpp:1143
#14 0x00007ffff5bbc5cd in QImageReader::read (this=0x7fffbdffa2e8) at
./src/gui/image/qimagereader.cpp:1111
#15 0x00007ffff5ba1cc2 in QImage::fromData (data=..., format=format@entry=0x0)
at ./src/gui/image/qimage.cpp:3902
#16 0x00007ffff5ba1d75 in QImage::loadFromData (this=this@entry=0x7fffbdffa5e0,
data=..., format=format@entry=0x0) at ./src/gui/image/qimage.cpp:3856
#17 0x00007ffff5ba1e05 in QImage::loadFromData (this=this@entry=0x7fffbdffa5e0,
buf=<optimized out>, len=len@entry=0, format=format@entry=0x0)
at ./src/gui/image/qimage.cpp:3870
#18 0x00007ffff7d06726 in Gwenview::JpegContent::thumbnail
(this=this@entry=0x7fffbdffa560) at ./lib/jpegcontent.cpp:579
#19 0x00007ffff7d27319 in Gwenview::ThumbnailContext::load
(this=this@entry=0x7fffbdffa6d0, pixPath=..., pixelSize=pixelSize@entry=256)
at ./lib/thumbnailprovider/thumbnailgenerator.cpp:123
#20 0x00007ffff7d27d18 in Gwenview::ThumbnailGenerator::run
(this=0x555556664120) at ./lib/thumbnailprovider/thumbnailgenerator.cpp:280
#21 0x00007ffff552df1b in operator() (__closure=<optimized out>) at
./src/corelib/thread/qthread_unix.cpp:448
#22 (anonymous
namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> >
(t=<optimized out>) at ./src/corelib/thread/qthread_unix.cpp:373
#23 QThreadPrivate::start (arg=0x555556664120) at
./src/corelib/thread/qthread_unix.cpp:422
#24 0x00007ffff4c9dda9 in start_thread (arg=<optimized out>) at
./nptl/pthread_create.c:448
#25 0x00007ffff4d1ce08 in __GI___clone3 () at
../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
```
valgrind analysis: `$ valgrind --log-file=mylog gwenview .`
=> see attachment
--
You are receiving this mail because:
You are watching all bug changes.