Bug 471426 - Segfault crash caused by some specific jpegs
Summary: Segfault crash caused by some specific jpegs
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (other bugs)
Version First Reported In: 23.04.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 08:13 UTC by maxlefou
Modified: 2023-07-11 07:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maxlefou 2023-06-25 08:13:11 UTC
SUMMARY
Some specific jpeg can't be open anymore with gwenview, causing it a segfault.

STEPS TO REPRODUCE
1. Open a jpeg file using gwenview

OBSERVED RESULT
On PNGs or on some specific jpeg files, everything goes normal. But for some other jpegs, gwenview abruptly crashes with the following logs:
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
[1]    2780 segmentation fault (core dumped)  gwenview
Note that the picture appears correctly in program for one second before it crashes. The thumbnail also appears without any issues at all on dolphin or gwenview.

EXPECTED RESULT
The picture file should display and gwenview not crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 6.1.35
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
It doesn't seem to be related to files metadata. The same pictures used to work on gwenview before.

Please. Thank you.
Comment 1 Tobias Fella 2023-06-25 20:47:32 UTC
Hi,

Please add a backtrace of the crash to help us debug. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports for help in doing so.
Comment 2 maxlefou 2023-06-26 09:50:17 UTC
(In reply to Tobias Fella from comment #1)
> Hi,
> 
> Please add a backtrace of the crash to help us debug. See
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports for help in doing so.

done it. Tried with two faultily jpegs (one supposedly not having EXIF, or at least doesn't display them on dolphin, and the other with EXIF) they both thrown the same output:

Thread 1 "gwenview" received signal SIGSEGV, Segmentation fault.
Exiv2::ExifData::findKey (this=0x0, key=...) at /usr/src/debug/exiv2/exiv2-0.28.0/src/exif.cpp:457
457       return std::find_if(exifMetadata_.begin(), exifMetadata_.end(), FindExifdatumByKey(key.key()));   

Though, I noticed something.
The file "without EXIF" actually displays the picture a second before crash. 
The other with visible EXIF instantly crash with no displaying.
Comment 3 Bug Janitor Service 2023-07-11 03:45:00 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
mark the bug 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 maxlefou 2023-07-11 07:09:43 UTC
Bug seems to have been corrected in 23.04.3. Thanks.