Bug 439034 - kdeinit5 crashed in AudioCreator::create() while i was moving music files from phone to laptop via USB
Summary: kdeinit5 crashed in AudioCreator::create() while i was moving music files fro...
Status: RESOLVED DUPLICATE of bug 427448
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Thumbnails and previews (show other bugs)
Version: 21.04.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://github.com/taglib/taglib/issu...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-22 17:25 UTC by Lyubomir
Modified: 2023-05-17 14:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lyubomir 2021-06-22 17:25:03 UTC
OBSERVED RESULT
Application: kdeinit5 (kdeinit5), signal: Segmentation fault

[KCrash Handler]
#4  TagLib::MP4::Tag::itemMap (this=0x0) at ./taglib/mp4/mp4tag.cpp:799
#5  0x00007f1012539494 in parseMP4Tag<TagLib::MP4::File> (img=..., file=...) at ./thumbnail/audiocreator.cpp:119
#6  AudioCreator::create (this=<optimized out>, path=..., img=...) at ./thumbnail/audiocreator.cpp:176
#7  0x00007f1024a3461a in ThumbnailProtocol::get (this=0x7fff37ca34c0, url=...) at ./thumbnail/thumbnail.cpp:255
#8  0x00007f101fed1fae in KIO::SlaveBase::dispatch (this=0x7fff37ca34c0, command=67, data=...) at ./src/core/slavebase.cpp:1216
#9  0x00007f101fed2906 in KIO::SlaveBase::dispatchLoop (this=0x7fff37ca34c0) at ./src/core/slavebase.cpp:335
#10 0x00007f1024a32961 in kdemain (argc=<optimized out>, argv=0x5599b7beb210) at ./thumbnail/thumbnail.cpp:138
#11 0x00005599b7653936 in launch (argc=argc@entry=4, _name=_name@entry=0x5599b7bead68 "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/thumbnail.so", args=<optimized out>, args@entry=0x5599b7beada3 "thumbnail", cwd=cwd@entry=0x0, envc=envc@entry=0, envs=envs@entry=0x5599b7beae1c "", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x5599b765623d "0") at ./src/kdeinit/kinit.cpp:692
#12 0x00005599b76551f1 in handle_launcher_request (sock=4, who=who@entry=0x5599b76561f2 "launcher") at ./src/kdeinit/kinit.cpp:1130
#13 0x00005599b76559f7 in handle_requests (waitForPid=waitForPid@entry=0) at ./src/kdeinit/kinit.cpp:1323
#14 0x00005599b76501ba in main (argc=3, argv=<optimized out>) at ./src/kdeinit/kinit.cpp:1761
[Inferior 1 (process 253540) detached]


EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.04
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-18-lowlatency (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 Lyubomir 2021-06-22 17:31:54 UTC
Feedback: BTW this showed that the bug cannot be reported as it has no address. It is so unintuitive. One has to change the tab to "Developer Information", then Save to file (or copy) and manually file a bug here, all without any advice to do so.

Awesome Nate Graham once told me that there is some kind of automatic symbol fetching, those never seem to work for me. I always manually fetch the debug symbols. I've even learned to use mk-build-deps because of this. I am a programmer and in my initial weeks i didn't manage to learn how to submit KDE error reports. I really can't imagine a novice Kubuntu user able to report any crashes to KDE.
Comment 2 Nate Graham 2021-07-28 20:12:55 UTC
Crashing in TagLib TagLib::MP4::File::parseMP4Tag(); please report upstream at https://github.com/taglib/taglib/issues
Comment 3 Scott Wheeler 2021-07-28 20:47:37 UTC
This really doesn't look like a TagLib issue.  I'm not sure what's in that line of code in the version that's being called here, but it's referencing a null pointer, which is almost certainly a failure to check for null in the KDE code.
Comment 4 Nate Graham 2021-07-28 23:51:43 UTC
All right, moving back to us then.

Line 176 of the file where it's crashing (audiocreator.cpp) is:

    if (type.inherits("audio/x-musepack")) {
        TagLib::MPC::File file(QFile::encodeName(path).data());
>>>     return parseAPETag(file, img);
    }


So perhaps we are not handling the returned data properly. Moving to kio-extras where the thumbnailer lives.
Comment 5 postix 2023-05-17 14:01:43 UTC
Marked as duplicate of "Kde5init crashes in ThumbnailProtocol::get()" same as bug #407393, which has the same stacktrace as this bug here.

*** This bug has been marked as a duplicate of bug 430862 ***
Comment 6 postix 2023-05-17 14:05:31 UTC
Looks rather like a dup of #427448, i,e. same stacktrace, however #427448 is marked as resolved upstream...

*** This bug has been marked as a duplicate of bug 427448 ***