Bug 392848 - Amarok crashes with segfault on start
Summary: Amarok crashes with segfault on start
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: kf5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-07 22:56 UTC by nsane457
Modified: 2022-12-18 05:16 UTC (History)
1 user (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 nsane457 2018-04-07 22:56:32 UTC
After building amarok from git master (as of commit https://github.com/KDE/amarok/commit/adcbef160f03dcd54c44e3f0ff7a5c1d3c198532) and installing, it segfaults when opened.
Comment 1 nsane457 2018-04-07 22:59:13 UTC
Here is a full backtrace of all threads with symbols:

Thread 1 "amarok" received signal SIGSEGV, Segmentation fault.
0x00007fffcf7ad8cd in get_charset (c=0x21 <error: Cannot access memory at address 0x21>) at ../source3/registry/reg_parse_internal.c:220
220		if (strcmp(c, "dos") == 0) {

Thread 3 (Thread 0x7fffc1b0a700 (LWP 32456)):
#0  0x00007ffff484aae3 in __GI___poll (fds=fds@entry=0x7fffb4004db0, nfds=nfds@entry=3, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        resultvar = 18446744073709551100
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
#1  0x00007fffe45ca095 in poll (__timeout=-1, __nfds=3, __fds=0x7fffb4004db0) at /usr/include/bits/poll2.h:46
No locals.
#2  g_poll (fds=fds@entry=0x7fffb4004db0, nfds=nfds@entry=3, timeout=timeout@entry=-1) at /usr/src/debug/dev-libs/glib-2.52.3/glib-2.52.3/glib/gpoll.c:124
No locals.
#3  0x00007fffe45b3401 in g_main_context_poll (context=context@entry=0x7fffb4000bf0, timeout=-1, priority=<optimized out>, fds=fds@entry=0x7fffb4004db0, n_fds=n_fds@entry=3) at /usr/src/debug/dev-libs/glib-2.52.3/glib-2.52.3/glib/gmain.c:4271
        poll_func = 0x7fffe45ca069 <g_poll>
#4  0x00007fffe45b6b3b in g_main_context_iterate (context=context@entry=0x7fffb4000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.52.3/glib-2.52.3/glib/gmain.c:3967
        max_priority = 2147483647
        timeout = -1
        some_ready = <optimized out>
        nfds = 3
        allocated_nfds = 3
        fds = 0x7fffb4004db0
#5  0x00007fffe45b6c68 in g_main_context_iteration (context=0x7fffb4000bf0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.52.3/glib-2.52.3/glib/gmain.c:4033
        retval = <optimized out>
#6  0x00007ffff524af9b in QEventDispatcherGlib::processEvents (this=0x7fffb4000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:423
        d = 0x7fffb4000b40
        canWait = true
        savedFlags = <optimized out>
        result = <optimized out>
#7  0x00007ffff51e9040 in QEventLoop::processEvents (this=this@entry=0x7fffc1b09b60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:134
        d = <optimized out>
#8  0x00007ffff51e9691 in QEventLoop::exec (this=this@entry=0x7fffc1b09b60, flags=flags@entry=...) at kernel/qeventloop.cpp:212
        d = 0x7fffb4004770
        locker = {val = 93824995715008}
        ref = {d = 0x7fffb4004770, locker = @0x7fffc1b09ac8, exceptionCaught = true}
        app = <optimized out>
#9  0x00007ffff500485c in QThread::exec (this=this@entry=0x7fffef098060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:515
        d = 0x5555558a6750
        locker = {val = 93824995715008}
        eventLoop = {<QObject> = {_vptr.QObject = 0x7ffff5661ba8 <vtable for QEventLoop+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff5360f80 <qt_meta_stringdata_QObject>, data = 0x7ffff5360e60 <qt_meta_data_QObject>, static_metacall = 0x7ffff5224b62 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x7fffb4004770}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff5363c20 <qt_meta_stringdata_Qt>, data = 0x7ffff53610a0 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff565a260 <QObject::staticMetaObject>, stringdata = 0x7ffff535bb60 <qt_meta_stringdata_QEventLoop>, data = 0x7ffff535bb00 <qt_meta_data_QEventLoop>, static_metacall = 0x7ffff51e924e <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
        returnCode = <optimized out>
#10 0x00007fffeee0fc3b in QDBusConnectionManager::run (this=0x7fffef098060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
        locker = {val = 0}
#11 0x00007ffff500a5ec in QThreadPrivate::start (arg=0x7fffef098060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
        __clframe = {__cancel_routine = 0x7ffff5009150 <QThreadPrivate::finish(void*)>, __cancel_arg = 0x7fffef098060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>, __do_it = 1, __cancel_type = 0}
        thr = 0x7fffef098060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>
        data = 0x555555833160
#12 0x00007ffff0f72b06 in start_thread (arg=0x7fffc1b0a700) at pthread_create.c:463
        pd = 0x7fffc1b0a700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736442967808, -2350305660535829506, 140737488345246, 140737488345247, 140737488345440, 0, 2350186405481417726, 2350290329010179070}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#13 0x00007ffff48573ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.

Thread 2 (Thread 0x7fffc2e8d700 (LWP 32453)):
#0  0x00007ffff484aae3 in __GI___poll (fds=fds@entry=0x7fffc2e8cb40, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
        resultvar = 18446744073709551100
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
#1  0x00007fffe0a09ca7 in poll (__timeout=-1, __nfds=1, __fds=0x7fffc2e8cb40) at /usr/include/bits/poll2.h:46
No locals.
#2  _xcb_conn_wait (c=c@entry=0x5555557ffed0, cond=cond@entry=0x5555557fff10, vector=vector@entry=0x0, count=count@entry=0x0) at /usr/src/debug/x11-libs/libxcb-1.13/libxcb-1.13/src/xcb_conn.c:479
        ret = <optimized out>
        fd = {fd = 3, events = 1, revents = 0}
#3  0x00007fffe0a0bf10 in xcb_wait_for_event (c=0x5555557ffed0) at /usr/src/debug/x11-libs/libxcb-1.13/libxcb-1.13/src/xcb_in.c:697
        ret = 0x0
#4  0x00007fffc4985e6d in QXcbEventReader::run (this=0x55555580c030) at qxcbconnection.cpp:1330
        event = <optimized out>
#5  0x00007ffff500a5ec in QThreadPrivate::start (arg=0x55555580c030) at thread/qthread_unix.cpp:368
        __clframe = {__cancel_routine = 0x7ffff5009150 <QThreadPrivate::finish(void*)>, __cancel_arg = 0x55555580c030, __do_it = 1, __cancel_type = 0}
        thr = 0x55555580c030
        data = 0x55555580c320
#6  0x00007ffff0f72b06 in start_thread (arg=0x7fffc2e8d700) at pthread_create.c:463
        pd = 0x7fffc2e8d700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736463427328, -2350305660535829506, 140737488343918, 140737488343919, 140737488344112, 0, 2350189224590576638, 2350290329010179070}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#7  0x00007ffff48573ef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.

Thread 1 (Thread 0x7ffff7f4fec0 (LWP 32449)):
#0  0x00007fffcf7ad8cd in get_charset (c=0x21 <error: Cannot access memory at address 0x21>) at ../source3/registry/reg_parse_internal.c:220
No locals.
#1  0x00007fffb18e128a in thd_init_client_charset (thd=0x555555fd23a0, cs_number=33) at /usr/src/debug/dev-db/mysql-5.6.39/mysql/sql/sql_connect.cc:438
        cs = 0x7fffffffd5d0
#2  0x00007fffb1872ee2 in check_embedded_connection (mysql=0x555555fc71e0, db=0x0) at /usr/src/debug/dev-db/mysql-5.6.39/mysql/libmysqld/lib_sql.cc:795
        result = 507399258
        db_str = {str = 0x0, length = 0}
        thd = 0x555555fd23a0
        sctx = 0x7fffb1872a5c <init_embedded_mysql(MYSQL*, int)+140>
#3  0x00007fffb183bbf0 in mysql_real_connect (mysql=0x555555fc71e0, host=0x0, user=0x7fffffffd690 "peter", passwd=0x0, db=0x0, port=0, unix_socket=0x0, client_flag=3580549) at /usr/src/debug/dev-db/mysql-5.6.39/mysql/libmysqld/libmysqld.c:180
        name_buff = "peter\000\000\000\340q\374UUU\000\000\370\230\265UUU\000\000\001\000\000\000\000\000\000\000\340\326\377\377\377\177\000\000o\247\202\261\377\177\000\000\240"
#4  0x00007fffb27e2c12 in MySqlEmbeddedStorage::init (this=this@entry=0x555555b9f4a0, storageLocation=...) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/core-impl/storage/sql/mysqlestorage/MySqlEmbeddedStorage.cpp:116
        storagePath = {static null = {<No data fields>}, d = 0x5555558e7310}
        databaseDir = {static null = {<No data fields>}, d = 0x555555ba0130}
        mysql_args = {d = 0x555555b598e0}
        dataDir = {d = 0x555555ba01a0}
#5  0x00007fffb27e39c0 in MySqleStorageFactory::init (this=0x555555b63140) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/core-impl/storage/sql/mysqlestorage/MySqlEmbeddedStorageFactory.cpp:43
        initResult = <optimized out>
#6  0x00007ffff7887df5 in Plugins::PluginManager::checkPluginEnabledStates (this=this@entry=0x555555b2ed50) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/PluginManager.cpp:217
        factory = <optimized out>
        __for_range = <optimized out>
        __for_begin = {i = 0x555555b6b010}
        __for_end = <optimized out>
        uniquelyNamedStackAllocatedStandardBlock = {m_startTime = {t1 = -9223372036854775808, t2 = -9223372036854775808}, m_label = 0x7ffff7a50dc0 <Plugins::PluginManager::checkPluginEnabledStates()::__PRETTY_FUNCTION__> "void Plugins::PluginManager::checkPluginEnabledStates()", m_color = 0}
        __PRETTY_FUNCTION__ = "void Plugins::PluginManager::checkPluginEnabledStates()"
        controller = <optimized out>
#7  0x00007ffff78882ec in Plugins::PluginManager::init (this=this@entry=0x555555b2ed50) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/PluginManager.cpp:90
No locals.
#8  0x00007ffff78884a4 in Plugins::PluginManager::PluginManager (this=0x555555b2ed50, parent=<optimized out>) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/PluginManager.cpp:70
        uniquelyNamedStackAllocatedStandardBlock = {m_startTime = {t1 = -9223372036854775808, t2 = -9223372036854775808}, m_label = 0x7ffff7a50e00 <Plugins::PluginManager::PluginManager(QObject*)::__PRETTY_FUNCTION__> "Plugins::PluginManager::PluginManager(QObject*)", m_color = 0}
        uniquelyNamedStackAllocatedStandardBlock = <optimized out>
        uniquelyNamedStackAllocatedStandardBlock = <optimized out>
#9  0x00007ffff7888618 in Plugins::PluginManager::instance () at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/PluginManager.cpp:49
No locals.
#10 0x00007ffff787468d in The::pluginManager () at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/PluginManager.h:117
No locals.
#11 MainWindow::MainWindow (this=0x555555ad70c0) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/MainWindow.cpp:148
        uniquelyNamedStackAllocatedStandardBlock = {m_startTime = {t1 = -9223372036854775808, t2 = -9223372036854775808}, m_label = 0x7ffff7a4ffb0 <MainWindow::MainWindow()::__PRETTY_FUNCTION__> "MainWindow::MainWindow()", m_color = 0}
        path = {static null = {<No data fields>}, d = 0x0}
        engine = <optimized out>
        uniquelyNamedStackAllocatedStandardBlock = <optimized out>
        path = <optimized out>
        engine = <optimized out>
        uniquelyNamedStackAllocatedStandardBlock = <optimized out>
        path = <optimized out>
        engine = <optimized out>
#12 0x00007ffff785c564 in App::continueInit (this=0x7fffffffdc80) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/App.cpp:460
        uniquelyNamedStackAllocatedStandardBlock = {m_startTime = {t1 = -9223372036854775808, t2 = -9223372036854775808}, m_label = 0x7ffff7a4e040 <App::continueInit()::__PRETTY_FUNCTION__> "void App::continueInit()", m_color = 0}
        __PRETTY_FUNCTION__ = "void App::continueInit()"
        restoreSession = true
#13 0x000055555555c8f6 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/media-sound/amarok-9999/amarok-9999/src/main.cpp:350
        app = {<QApplication> = {<QGuiApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x7ffff7da8410 <vtable for App+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff5360f80 <qt_meta_stringdata_QObject>, data = 0x7ffff5360e60 <qt_meta_data_QObject>, static_metacall = 0x7ffff5224b62 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x5555557f3810}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff5363c20 <qt_meta_stringdata_Qt>, data = 0x7ffff53610a0 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff565a260 <QObject::staticMetaObject>, stringdata = 0x7ffff535c1a0 <qt_meta_stringdata_QCoreApplication>, data = 0x7ffff535c080 <qt_meta_data_QCoreApplication>, static_metacall = 0x7ffff51ed098 <QCoreApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, static self = 0x7fffffffdc80}, static staticMetaObject = {d = {superdata = 0x7ffff5661d40 <QCoreApplication::staticMetaObject>, stringdata = 0x7ffff5abc7a0 <qt_meta_stringdata_QGuiApplication>, data = 0x7ffff5abc540 <qt_meta_data_QGuiApplication>, static_metacall = 0x7ffff576f55a <QGuiApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff5d94380 <QGuiApplication::staticMetaObject>, stringdata = 0x7ffff6c9b460 <qt_meta_stringdata_QApplication>, data = 0x7ffff6c9b2e0 <qt_meta_data_QApplication>, static_metacall = 0x7ffff687f638 <QApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff7001ae0 <QApplication::staticMetaObject>, stringdata = 0x7ffff7a8e200 <qt_meta_stringdata_App>, data = 0x7ffff7a8e060 <qt_meta_data_App>, static_metacall = 0x7ffff79e2af0 <App::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, m_mainWindow = {wp = {d = 0x0, value = 0x0}}, m_tray = 0x0, m_mediaDeviceManager = 0x1e3e4c5a9db13100, m_scriptConsole = {wp = {d = 0x0, value = 0x0}}, m_args = 0x7fffffffdbf0, m_cwd = {static null = {<No data fields>}, d = 0x5555558a66b0}, s_delayedAmarokUrls = {<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 = 0x7ffff52a5200 <QListData::shared_null>}, d = 0x7ffff52a5200 <QListData::shared_null>}}, <No data fields>}}
        aboutData = {d = 0x55555578b870}
        parser = {d = 0x555555848d10}
        startOptions = <optimized out>
        dbusService = {<QObject> = {_vptr.QObject = 0x7ffff6479610 <vtable for KDBusService+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff5360f80 <qt_meta_stringdata_QObject>, data = 0x7ffff5360e60 <qt_meta_data_QObject>, static_metacall = 0x7ffff5224b62 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x555555846850}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff5363c20 <qt_meta_stringdata_Qt>, data = 0x7ffff53610a0 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7ffff565a260 <QObject::staticMetaObject>, stringdata = 0x7ffff6276820 <qt_meta_stringdata_KDBusService>, data = 0x7ffff6276700 <qt_meta_data_KDBusService>, static_metacall = 0x7ffff6273320 <KDBusService::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d = 0x5555558a65d0}
        debugColorsEnabled = <optimized out>
        debugEnabled = false
Comment 2 nsane457 2018-04-08 04:35:28 UTC
After more testing, it appears the bug only seems to happen for me after reactivation of the wikipedia applet in source (i.e., https://github.com/KDE/amarok/commit/7a63540fc23a4fead8ee6e2352ab9998ecca8cc2) and only if enabled (i.e., -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngine=ON is not passed to cmake).
Comment 3 Justin Zobel 2022-11-18 04:30:18 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-03 05:18:29 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 5 Bug Janitor Service 2022-12-18 05:16:29 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!