Bug 412159 - kf5-kio-core: LIBMTP_Get_Filemetadata(): kiod5 killed by SIGSEGV
Summary: kf5-kio-core: LIBMTP_Get_Filemetadata(): kiod5 killed by SIGSEGV
Status: RESOLVED DUPLICATE of bug 405838
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: MTP (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-21 14:27 UTC by Germano Massullo
Modified: 2022-01-06 12:59 UTC (History)
4 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 Germano Massullo 2019-09-21 14:27:49 UTC
SUMMARY
Upstream clone of https://bugzilla.redhat.com/show_bug.cgi?id=1754180
For more attachments use the previous URL
KDE Frameworks 5.59.0
Qt 5.12.4 (compilato con 5.12.4)
Il sistema di finestre xcb

===========
Description of problem:
I was copying files to my Android phone when I got this crash

Version-Release number of selected component:
kf5-kio-core-5.59.0-1.fc30

Additional info:
reporter:       libreport-2.10.1
backtrace_rating: 4
cmdline:        /usr/libexec/kf5/kiod5
crash_function: LIBMTP_Get_Filemetadata
executable:     /usr/libexec/kf5/kiod5
journald_cursor: s=6671bf964b3d42608d7812ce9bad0bde;i=5d225;b=844df530944446609a426ab30cdacb6f;m=6a472094;t=59310bd16fd52;x=4e0a2df8d0ede747
kernel:         5.2.15-200.fc30.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 LIBMTP_Get_Filemetadata at libmtp.c:4355
 #1 MTPStorage::getFileFromPath at /usr/include/qt5/QtCore/qobject.h:408
 #2 MTPStorage::getFileMetadata at /usr/src/debug/kio-extras-19.04.2-1.fc30.x86_64/mtp/kiod_module/mtpstorage.cpp:477
 #3 StorageAdaptor::getFileMetadata at /usr/include/qt5/QtCore/qobject.h:408
 #4 StorageAdaptor::qt_static_metacall at /usr/src/debug/kio-extras-19.04.2-1.fc30.x86_64/x86_64-redhat-linux-gnu/mtp/kiod_module/storageadaptor.moc:188
 #5 StorageAdaptor::qt_metacall at /usr/src/debug/kio-extras-19.04.2-1.fc30.x86_64/x86_64-redhat-linux-gnu/mtp/kiod_module/storageadaptor.moc:273
 #6 QDBusConnectionPrivate::deliverCall at qdbusintegrator.cpp:991
 #7 QDBusConnectionPrivate::activateCall at qdbusintegrator.cpp:901
 #9 QDBusConnectionPrivate::activateObject at qdbusintegrator.cpp:1478
 #11 QDBusActivateObjectEvent::placeMetaCall at qdbusintegrator.cpp:1598
Comment 1 Ahmad Samir 2021-06-13 10:17:58 UTC
Thread 1 (Thread 0x7f2a928c0800 (LWP 2865)):
#0  0x00007f2a8a9e9b0e in LIBMTP_Get_Filemetadata (device=0x0, fileid=fileid@entry=0) at libmtp.c:4355
        params = <optimized out>
        ret = <optimized out>
        ob = 0x7f2a84005b50
#1  0x00007f2a8bdda95d in MTPStorage::getFileFromPath (this=this@entry=0x562702807af0, path=...) at /usr/include/qt5/QtCore/qobject.h:408
        parentPath = {static null = {<No data fields>}, d = 0x7f2a7c021c90}
        parentId = 0
        parent = <optimized out>
        itemId = <optimized out>
        pathItems = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, <No data fields>}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7f2a7c011370}, d = 0x7f2a7c011370}}, <No data fields>}
        currentPath = {static null = {<No data fields>}, d = 0x0}
        currentParent = <optimized out>
        file = <optimized out>
#2  0x00007f2a8bddb756 in MTPStorage::getFileMetadata (this=0x562702807af0, path=...) at /usr/src/debug/kio-extras-19.04.2-1.fc30.x86_64/mtp/kiod_module/mtpstorage.cpp:477
No locals.
#3  0x00007f2a8bde0137 in StorageAdaptor::getFileMetadata (path=..., this=0x5627028028d0) at /usr/include/qt5/QtCore/qobject.h:408
No locals.
#4  StorageAdaptor::qt_static_metacall (_o=_o@entry=0x5627028028d0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=5, _a=_a@entry=0x7ffd82e4ab10) at /usr/src/debug/kio-extras-19.04.2-1.fc30.x86_64/x86_64-redhat-linux-gnu/mtp/kiod_module/storageadaptor.moc:188
        _r = {m_itemId = 0, m_parentId = 0, m_storageId = 0, m_filename = {static null = {<No data fields>}, d = 0x0}, m_filesize = 0, m_modificationdate = 139820711929072, m_filetype = {static null = {<No data fields>}, d = 0x7f2a8bdde650 <QtMetaTypePrivate::QMetaTypeFunctionHelper<KMTPFile, true>::Destruct(void*)>}}
        _t = 0x5627028028d0
#5  0x00007f2a8bde04c3 in StorageAdaptor::qt_metacall (this=0x5627028028d0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7ffd82e4ab10) at /usr/src/debug/kio-extras-19.04.2-1.fc30.x86_64/x86_64-redhat-linux-gnu/mtp/kiod_module/storageadaptor.moc:273
No locals.
#6  0x00007f2a95c2168b in QDBusConnectionPrivate::deliverCall (this=<optimized out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>) at qdbusintegrator.cpp:991
        context = {connection = {static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7f2a95c833e0 <qt_meta_stringdata_QDBusConnection>, data = 0x7f2a95c832a0 <qt_meta_data_QDBusConnection>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}, d = 0x7f2a7c003e00}, message = @0x7f2a7c021b00}
        old = 0x0
        ptr = <optimized out>
        params = {a = 10, s = 2, ptr = 0x7ffd82e4ab10, {array = "\340u\200\002'V\000\000P[\000\204*\177\000\000P\253\344\202\375\177\000\000\336\037\230\225*\177\000\000 \246\177\002'V\000\000\000\000\000\000\000\000\000\000\022\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\020\254\344\202\375\177\000\000qsz\225*\177\000", q_for_alignment_1 = 94725545686496, q_for_alignment_2 = 4.6800637907263152e-310}}
        auxParameters = {<QListSpecialMethods<QVariant>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, static is_always_lock_free = true}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x7f2a95a18a80 <QListData::shared_null>}, d = 0x7f2a95a18a80 <QListData::shared_null>}}
        i = <optimized out>
        pCount = <optimized out>
        numMetaTypes = <optimized out>
        outputArgs = {<QListSpecialMethods<QVariant>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, static is_always_lock_free = true}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x5627027eb360}, d = 0x5627027eb360}}
        null = 0x0
        fail = <optimized out>
#7  0x00007f2a95c26987 in QDBusConnectionPrivate::activateCall (this=this@entry=0x7f2a7c003e00, object=0x5627028028d0, flags=flags@entry=273, msg=...) at qdbusintegrator.cpp:901
        slotCache = {hash = {<QHash<QString, QDBusSlotCache::Data>> = {{d = 0x562702802a50, e = 0x562702802a50}}, <No data fields>}}
        cacheKey = {static null = {<No data fields>}, d = 0x5627027e9da0}
        signature = {static null = {<No data fields>}, d = 0x7f2a7c021720}
        cacheIt = {i = 0x562702736450}
        cachePropertyName = "_qdbus_slotCache"
#8  0x00007f2a95c26fbe in QDBusConnectionPrivate::activateCall (msg=..., flags=273, object=<optimized out>, this=0x7f2a7c003e00) at qdbusintegrator.cpp:843
        slotCache = <optimized out>
        cacheKey = <optimized out>
        signature = <optimized out>
        cacheIt = <optimized out>
        cachePropertyName = "_qdbus_slotCache"
        mo = <optimized out>
        memberName = <optimized out>
        slotData = <optimized out>
#9  QDBusConnectionPrivate::activateObject (pathStartPos=<optimized out>, msg=..., node=..., this=0x7f2a7c003e00) at qdbusintegrator.cpp:1478
        it = 0x5627027f4108
        newflags = 273
        connector = 0x5627027facb0
        connector = <optimized out>
        newflags = <optimized out>
        it = <optimized out>
        end = <optimized out>
        it = <optimized out>
        interfaceFound = <optimized out>
#10 QDBusConnectionPrivate::activateObject (this=0x7f2a7c003e00, node=..., msg=..., pathStartPos=<optimized out>) at qdbusintegrator.cpp:1428
        connector = <optimized out>
        newflags = <optimized out>
        it = <optimized out>
        end = <optimized out>
        it = <optimized out>
        interfaceFound = <optimized out>
#11 0x00007f2a95c29b22 in QDBusActivateObjectEvent::placeMetaCall (this=0x7f2a7c021a70) at qdbusintegrator.cpp:1598
        that = <optimized out>
#12 0x00007f2a9596ebfa in QObject::event (this=0x562702807af0, e=<optimized out>) at kernel/qobject.cpp:1260
        mce = <optimized out>
        sw = {receiver = 0x562702807af0, previousSender = 0x0, currentSender = {sender = 0x7f2a7c003e00, signal = -1, ref = 1}, switched = true}
#13 0x00007f2a963ebaf6 in QApplicationPrivate::notify_helper (this=this@entry=0x5627026ca2e0, receiver=receiver@entry=0x562702807af0, e=e@entry=0x7f2a7c021a70) at kernel/qapplication.cpp:3737
        consumed = false
        filtered = false
#14 0x00007f2a963f4e80 in QApplication::notify (this=0x7ffd82e4b330, receiver=0x562702807af0, e=0x7f2a7c021a70) at kernel/qapplication.cpp:3483
        w = <optimized out>
        extra = <optimized out>
        isProxyWidget = <optimized out>
        d = <optimized out>
        res = false
        me = <optimized out>
#15 0x00007f2a95943ae8 in QCoreApplication::notifyInternal2 (receiver=0x562702807af0, event=0x7f2a7c021a70) at kernel/qcoreapplication.cpp:1084
        selfRequired = true
        result = false
        cbdata = {0x562702807af0, 0x7f2a7c021a70, 0x7ffd82e4af9f}
        d = <optimized out>
        threadData = 0x5627026ca460
        scopeLevelCounter = {threadData = 0x5627026ca460}
#16 0x00007f2a95946a93 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5627026ca460) at kernel/qcoreapplication.cpp:1821
        e = 0x7f2a7c021a70
        pe = <optimized out>
        r = <optimized out>
        unlocker = {m = <synthetic pointer><error reading variable>}
        event_deleter = {d = 0x7f2a7c021a70}
        locker = {val = 94725544387728}
        startOffset = 0
        i = @0x5627026ca484: 1
        cleanup = <optimized out>
#17 0x00007f2a95998e47 in postEventSourceDispatch (s=s@entry=0x5627026ceb60) at kernel/qeventdispatcher_glib.cpp:276
        source = 0x5627026ceb60
#18 0x00007f2a94888ecd in g_main_dispatch (context=0x7f2a84004fd0) at ../glib/gmain.c:3189
        dispatch = <optimized out>
        prev_source = 0x0
        was_in_call = <optimized out>
        user_data = 0x0
        callback = 0x0
        cb_funcs = 0x0
        cb_data = 0x0
        need_destroy = <optimized out>
        source = 0x5627026ceb60
        current = 0x562702799cd0
        i = 0
        __FUNCTION__ = "g_main_dispatch"
#19 g_main_context_dispatch (context=context@entry=0x7f2a84004fd0) at ../glib/gmain.c:3854
No locals.
#20 0x00007f2a94889260 in g_main_context_iterate (context=context@entry=0x7f2a84004fd0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:3927
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = <optimized out>
        fds = 0x5627027cb430
#21 0x00007f2a94889303 in g_main_context_iteration (context=0x7f2a84004fd0, may_block=may_block@entry=1) at ../glib/gmain.c:3988
        retval = <optimized out>
#22 0x00007f2a95998bd5 in QEventDispatcherGlib::processEvents (this=0x5627026cf8f0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
        d = 0x5627027c1780
        canWait = true
        savedFlags = {i = 0}
        result = <optimized out>
#23 0x00007f2a959429eb in QEventLoop::exec (this=this@entry=0x7ffd82e4b280, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
        d = 0x5627027cdaa0
        locker = {val = 94725544387952}
        ref = {d = 0x5627027cdaa0, locker = @0x7ffd82e4b208, exceptionCaught = true}
        app = <optimized out>
#24 0x00007f2a9594a726 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
        threadData = 0x5627026ca460
        eventLoop = {<QObject> = {_vptr.QObject = 0x7f2a95bf4a28 <vtable for QEventLoop+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7f2a95ae3300 <qt_meta_stringdata_QObject>, data = 0x7f2a95ae31e0 <qt_meta_data_QObject>, static_metacall = 0x7f2a95975fe0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x5627027cdaa0}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7f2a95ae6220 <qt_meta_stringdata_Qt>, data = 0x7f2a95ae3420 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7f2a95becfe0 <QObject::staticMetaObject>, stringdata = 0x7f2a95add6a0 <qt_meta_stringdata_QEventLoop>, data = 0x7f2a95add640 <qt_meta_data_QEventLoop>, static_metacall = 0x7f2a95942700 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
        returnCode = <optimized out>
#25 0x0000562700c0eb0d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kf5-kio-5.59.0-1.fc30.x86_64/src/kiod/kiod_main.cpp:137
        app = {<QGuiApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x7f2a968ebf78 <vtable for QApplication+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7f2a95ae3300 <qt_meta_stringdata_QObject>, data = 0x7f2a95ae31e0 <qt_meta_data_QObject>, static_metacall = 0x7f2a95975fe0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x5627026ca2e0}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7f2a95ae6220 <qt_meta_stringdata_Qt>, data = 0x7f2a95ae3420 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7f2a95becfe0 <QObject::staticMetaObject>, stringdata = 0x7f2a95addd40 <qt_meta_stringdata_QCoreApplication>, data = 0x7f2a95addc20 <qt_meta_data_QCoreApplication>, static_metacall = 0x7f2a95945580 <QCoreApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, static self = 0x7ffd82e4b330}, static staticMetaObject = {d = {superdata = 0x7f2a95bf4bc0 <QCoreApplication::staticMetaObject>, stringdata = 0x7f2a9618be80 <qt_meta_stringdata_QGuiApplication>, data = 0x7f2a9618bc00 <qt_meta_data_QGuiApplication>, static_metacall = 0x7f2a95e52de0 <QGuiApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7f2a96264de0 <QGuiApplication::staticMetaObject>, stringdata = 0x7f2a96792a40 <qt_meta_stringdata_QApplication>, data = 0x7f2a967928c0 <qt_meta_data_QApplication>, static_metacall = 0x7f2a963f22b0 <QApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
        service = {<QObject> = {_vptr.QObject = 0x7f2a96932148 <vtable for KDBusService+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7f2a95ae3300 <qt_meta_stringdata_QObject>, data = 0x7f2a95ae31e0 <qt_meta_data_QObject>, static_metacall = 0x7f2a95975fe0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x5627027c0870}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7f2a95ae6220 <qt_meta_stringdata_Qt>, data = 0x7f2a95ae3420 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7f2a95becfe0 <QObject::staticMetaObject>, stringdata = 0x7f2a9692d420 <qt_meta_stringdata_KDBusService>, data = 0x7f2a9692d300 <qt_meta_data_KDBusService>, static_metacall = 0x7f2a96924e70 <KDBusService::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d = 0x5627027bcbc0}
        bus = 0x7f2a7c0133f0
        plugins = {d = 0x5627026d0bc0}
Comment 2 Bug Janitor Service 2021-06-13 14:49:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/103
Comment 3 Harald Sitter 2022-01-06 12:59:01 UTC
*** This bug has been marked as a duplicate of bug 405838 ***