Thread 1 "json_test" received signal SIGSEGV, Segmentation fault. QList::QList (this=0xc2c620) at ../../include/QtCore/../../src/corelib/tools/qlist.h:121 121 ../../include/QtCore/../../src/corelib/tools/qlist.h: No such file or directory. (gdb) bt #0 QList::QList (this=0xc2c620) at ../../include/QtCore/../../src/corelib/tools/qlist.h:121 #1 setup () at codecs/qtextcodec.cpp:735 #2 0x00007ffff63c266e in QTextCodec::codecForLocale () at codecs/qtextcodec.cpp:1239 #3 0x00007ffff62c5d51 in QString::toLocal8Bit (this=0x7fffffffcc30) at tools/qstring.cpp:3766 #4 0x00007ffff6270339 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) ( msgType=msgType@entry=QtCriticalMsg, msg=msg@entry=0x7ffff7bd0cc0 "Error opening device", ap=ap@entry=0x7fffffffcc80) at global/qglobal.cpp:2484 #5 0x00007ffff62706a1 in qCritical (msg=msg@entry=0x7ffff7bd0cc0 "Error opening device") at global/qglobal.cpp:2611 #6 0x00007ffff7bbdb1c in QJson::Parser::parse (this=this@entry=0x7fffffffcf40, io=io@entry=0x7fffffffceb0, ok=ok@entry=0x7fffffffcf0b) at /build/buildd/qjson-0.8.1/src/parser.cpp:73 #7 0x00007ffff7bbdcc7 in QJson::Parser::parse (this=0x7fffffffcf40, jsonString=..., ok=0x7fffffffcf0b) at /build/buildd/qjson-0.8.1/src/parser.cpp:106 #8 0x0000000000403951 in MainWindow::on_pushButton_clicked (this=0x7fffffffdec0) at mainwindow.cpp:41 #9 0x0000000000405995 in MainWindow::qt_static_metacall (_o=0x7fffffffdec0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffffffd1e0) at moc_mainwindow.cpp:69 #10 0x0000000000405a8e in MainWindow::qt_metacall (this=0x7fffffffdec0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffffffd1e0) at moc_mainwindow.cpp:102 #11 0x00007ffff7309180 in QMetaObject::activate (sender=sender@entry=0x850370, signalOffset=, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffffffd1e0) at kernel/qobject.cpp:3728 #12 0x00007ffff73097d7 in QMetaObject::activate (sender=sender@entry=0x850370, m=m@entry=0x7ffff7ba6a40 , local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffffffd1e0) at kernel/qobject.cpp:3578 #13 0x00007ffff7a1f1b2 in QAbstractButton::clicked (this=this@entry=0x850370, _t1=false) at .moc/moc_qabstractbutton.cpp:303 #14 0x00007ffff7781f04 in QAbstractButtonPrivate::emitClicked (this=0x850740) at widgets/qabstractbutton.cpp:534 #15 0x00007ffff7783519 in QAbstractButtonPrivate::click (this=0x850740) at widgets/qabstractbutton.cpp:527 #16 0x00007ffff7783694 in QAbstractButton::mouseReleaseEvent (this=0x850370, e=0x7fffffffd6b0) at widgets/qabstractbutton.cpp:1132 #17 0x00007ffff76c7f88 in QWidget::event (this=0x850370, event=0x7fffffffd6b0) at kernel/qwidget.cpp:9044 #18 0x00007ffff768505c in QApplicationPrivate::notify_helper (this=this@entry=0x6265b0, receiver=receiver@entry=0x850370, e=e@entry=0x7fffffffd6b0) at kernel/qapplication.cpp:3716 #19 0x00007ffff768ac19 in QApplication::notify (this=, receiver=0x850370, e=0x7fffffffd6b0) at kernel/qapplication.cpp:3276 #20 0x00007ffff72da62b in QCoreApplication::notifyInternal (this=0x7fffffffdeb0, receiver=receiver@entry=0x850370, event=event@entry=0x7fffffffd6b0) at kernel/qcoreapplication.cpp:965 #21 0x00007ffff7689b32 in QCoreApplication::sendSpontaneousEvent (event=0x7fffffffd6b0, receiver=0x850370) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:227 #22 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x850370, event=event@entry=0x7fffffffd6b0, alienWidget=alienWidget@entry=0x850370, nativeWidget=0x7fffffffdec0, buttonDown=buttonDown@entry=0x7ffff7bb5b20 , lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2770 #23 0x00007ffff76e257b in QWidgetWindow::handleMouseEvent (this=this@entry=0x8d5bb0, event=event@entry=0x7fffffffdac0) at kernel/qwidgetwindow.cpp:555 #24 0x00007ffff76e4b3b in QWidgetWindow::event (this=0x8d5bb0, event=0x7fffffffdac0) at kernel/qwidgetwindow.cpp:210 #25 0x00007ffff768505c in QApplicationPrivate::notify_helper (this=this@entry=0x6265b0, receiver=receiver@entry=0x8d5bb0, e=e@entry=0x7fffffffdac0) at kernel/qapplication.cpp:3716 #26 0x00007ffff768a516 in QApplication::notify (this=0x7fffffffdeb0, receiver=0x8d5bb0, e=0x7fffffffdac0) at kernel/qapplication.cpp:3499 #27 0x00007ffff72da62b in QCoreApplication::notifyInternal (this=0x7fffffffdeb0, receiver=receiver@entry=0x8d5bb0, event=event@entry=0x7fffffffdac0) at kernel/qcoreapplication.cpp:965 #28 0x00007ffff5daa521 in QCoreApplication::sendSpontaneousEvent (event=0x7fffffffdac0, receiver=0x8d5bb0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:227 #29 QGuiApplicationPrivate::processMouseEvent (e=0xa09600) at kernel/qguiapplication.cpp:1804 #30 0x00007ffff5dac1e5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0xa09600) at kernel/qguiapplication.cpp:1596 #31 0x00007ffff5d8ff38 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:625 #32 0x00007ffff7f08070 in userEventSourceDispatch (source=) at eventdispatchers/qeventdispatcher_glib.cpp:70 #33 0x00007ffff55811a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #34 0x00007ffff5581400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #35 0x00007ffff55814ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #36 0x00007ffff7330a7f in QEventDispatcherGlib::processEvents (this=0x7390d0, flags=...) at kernel/qeventdispatcher_glib.cpp:418 #37 0x00007ffff72d7dea in QEventLoop::exec (this=this@entry=0x7fffffffde40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #38 0x00007ffff72dfe8c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229 #39 0x00000000004035d0 in main (argc=1, argv=0x7fffffffdff8) at main.cpp:10 (gdb) quit A debugging session is active. Inferior 1 [process 15563] will be killed.