Bug 391610

Summary: k3b crashed with SIGSEGV in QString::size()
Product: [Applications] k3b Reporter: Cristian Aravena Romero <caravena>
Component: generalAssignee: k3b developers <k3b>
Status: RESOLVED WORKSFORME    
Severity: crash CC: michalm, trueg
Priority: NOR    
Version: 17.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cristian Aravena Romero 2018-03-09 13:47:57 UTC
Hello,

Open bug in launchpad.net:
https://bugs.launchpad.net/bugs/1753799

"Problem with *privileges*..."

BackTrace:
#0  QString::size (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:233
No locals.
#1  QString::toLocal8Bit() const & (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:520
No locals.
#2  QFile::encodeName (fileName=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qfile.h:89
No locals.
#3  K3b::ExternalBinPermissionModel::Private::getProgramInfo (this=0x563289b16880, program=0x56328a16da20, owner=..., group=..., wantedGroup=..., perm=@0x7fffaf5953b8: 116, wantedPerm=@0x7fffaf5953bc: 14) at ./src/option/k3bexternalbinpermissionmodel.cpp:109
        s = {st_dev = 6, st_ino = 140002289047989, st_nlink = 140736135255488, st_mode = 2310116272, st_uid = 22066, st_gid = 0, __pad0 = 14, st_rdev = 140002288659377, st_size = 665832, st_blksize = 64424509537, st_blocks = 1304, st_atim = {tv_sec = 94775057099008, tv_nsec = 16641}, st_mtim = {tv_sec = 0, tv_nsec = -4616189618054758400}, st_ctim = {tv_sec = 0, tv_nsec = 696204690}, __glibc_reserved = {8156075650671158528, 0, 140736135255488}}
#4  0x00005632889b4567 in K3b::ExternalBinPermissionModel::Private::needChangePermissions (this=<optimized out>, program=<optimized out>) at ./src/option/k3bexternalbinpermissionmodel.cpp:148
        owner = {static null = {<No data fields>}, d = 0x7f54d1b5f0e0}
        group = {static null = {<No data fields>}, d = 0x7f54d1b5f0e0}
        wantedGroup = {static null = {<No data fields>}, d = 0x7f54d1b5f0e0}
        perm = 116
        wantedPerm = 14
#5  0x00005632889b4d8a in K3b::ExternalBinPermissionModel::data (this=0x563289b19230, index=..., role=<optimized out>) at ./src/option/k3bexternalbinpermissionmodel.cpp:243
        program = 0x56328a16da20
#6  0x00007f54d2ce5ae2 in QtPrivate::QVariantValueHelper<QImage>::metaType (v=...) at ../../include/QtCore/../../src/corelib/kernel/qvariant.h:697
        vid = 70
        t = {<QPaintDevice> = {_vptr.QPaintDevice = 0x0, painters = 0, reserved = 0x5632893d7c20}, d = 0x713033976f77a500}
        vid = <optimized out>
        t = <optimized out>
#7  QtPrivate::MetaTypeInvoker<QtPrivate::QVariantValueHelper<QImage>, QVariant const&, QImage>::invoke (a=...) at ../../include/QtCore/../../src/corelib/kernel/qvariant.h:111
No locals.
#8  qvariant_cast<QImage> (v=...) at ../../include/QtCore/../../src/corelib/kernel/qvariant.h:835
No locals.
#9  QStyledItemDelegate::initStyleOption (this=0x56328a159e00, option=0x7fffaf5955c0, index=...) at itemviews/qstyleditemdelegate.cpp:329
        image = {<QPaintDevice> = {_vptr.QPaintDevice = 0x0, painters = 0, reserved = 0x7fffaf595500}, d = 0x7fffaf5955b0}
        value = {d = {data = {c = 0 '\000', uc = 0 '\000', s = 0, sc = 0 '\000', us = 0, i = 0, u = 0, l = 0, ul = 0, b = false, d = 0, f = 0, real = 0, ll = 0, ull = 0, o = 0x0, ptr = 0x0, shared = 0x0}, type = 0, is_shared = 0, is_null = 1}}
#10 0x00007f54d2ce510c in QVariant::Private::Private (this=0x21) at ../../include/QtCore/../../src/corelib/kernel/qvariant.h:373
No locals.
#11 QVariant::QVariant (this=0x21) at ../../include/QtCore/../../src/corelib/kernel/qvariant.h:199
No locals.
#12 QModelIndex::data (arole=10, this=0x7fffaf595678) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:432
No locals.
#13 QStyledItemDelegate::editorEvent (this=0x7fffaf5957a0, event=0x7fffaf5955b0, model=0x7fffaf5957c0, option=..., index=...) at itemviews/qstyleditemdelegate.cpp:608
        flags = {i = 2941866936}
        value = {d = {data = {c = 0 '\000', uc = 0 '\000', s = 0, sc = 0 '\000', us = 0, i = 0, u = 0, l = 0, ul = 0, b = false, d = 0, f = 0, real = 0, ll = 0, ull = 0, o = 0x0, ptr = 0x0, shared = 0x0}, type = 1073741823, is_shared = 1, is_null = 1}}
        widget = <optimized out>
        style = <optimized out>
        state = <optimized out>
#14 0x0000000000000002 in ?? ()
No symbol table info available.
#15 0x0000563289b193f0 in ?? ()
No symbol table info available.
#16 0x00007fffaf5957a0 in ?? ()
No symbol table info available.
#17 0x0000000000000001 in ?? ()
No symbol table info available.
#18 0x00007f54d2d2b6e8 in QTreeViewPrivate::updateScrollBars (this=0x7f54d2d28b41 <QTreeView::indexRowSizeHint(QModelIndex const&) const+961>) at itemviews/qtreeview.cpp:3702
        contentsHeight = 1
        q = <optimized out>
        viewportSize = {wd = 1870112000, ht = -1353099328}
        itemsInViewport = <optimized out>
        columnCount = <optimized out>
        viewportWidth = <optimized out>
        columnsInViewport = <optimized out>
#19 0x0000000000000002 in ?? ()
No symbol table info available.
#20 0x00007f54d291e720 in guard variable for (anonymous namespace)::Q_QGS_theFontCache::innerFunction()::holder () from /mnt/sec-machines/apport-sandbox-dir/Ubuntu 18.04/amd64/report-sandbox/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
No symbol table info available.
#21 0x00005632893d7c20 in ?? ()
No symbol table info available.
#22 0x0000000000000001 in ?? ()
No symbol table info available.
#23 0x00007f54d2368c7f in qThreadStorage_localData<QFontCache> (d=...) at ../../include/QtCore/../../src/corelib/thread/qthreadstorage.h:71
        v = <optimized out>
        v = <optimized out>
#24 QThreadStorage<QFontCache*>::localData (this=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qthreadstorage.h:145
No locals.
#25 QFontCache::instance () at text/qfont.cpp:2705
        fontCache = <optimized out>
#26 0x00007f54d2368e83 in QMutexLocker::unlock (this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:213
No locals.
#27 QMutexLocker::~QMutexLocker (this=<synthetic pointer>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:207
No locals.
#28 QFontPrivate::engineForScript (this=0x7fff00000000, script=-1978213856) at text/qfont.cpp:207
        locker = {val = 94775058469424}
#29 0x0000000000000001 in ?? ()
No symbol table info available.
#30 0x0000001000000010 in ?? ()
No symbol table info available.
#31 0x00005632893d7c20 in ?? ()
No symbol table info available.
#32 0x000f000100000000 in ?? ()
No symbol table info available.
#33 0x000000006f77a501 in ?? ()
No symbol table info available.
#34 0x00007f54b8008de0 in ?? ()
No symbol table info available.
#35 0x0000563289b193b0 in ?? ()
No symbol table info available.
#36 0xffffffffffffffff in ?? ()
No symbol table info available.
#37 0x0000000000000000 in ?? ()
No symbol table info available.

Regards,
--
Cristian
Comment 1 Leslie Zhai 2018-03-30 13:43:26 UTC
Git commit 1e771f7f3ddf83fd7c3bf78b35247a82ebbb8c2c by Leslie Zhai.
Committed on 30/03/2018 at 13:38.
Pushed by lesliezhai into branch 'master'.

There is k3bfuzzertest to test QFile::encodeName and
 QString::fromRawData using libFuzzer, it might be duplicate of
QTBUG-57553

CCMAIL: caravena@gmail.com

M  +2    -2    tests/k3bfuzzertest.cpp

https://commits.kde.org/k3b/1e771f7f3ddf83fd7c3bf78b35247a82ebbb8c2c
Comment 2 Justin Zobel 2020-12-17 05:35:37 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 3 Bug Janitor Service 2021-01-01 04:38:14 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 Bug Janitor Service 2021-01-16 04:37:05 UTC
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!