adenilson@asusbloat:~/Desktop/digia/qjsonbug$ gdb qjsonbug core GNU gdb (GDB) 7.5-ubuntu Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/adenilson/Desktop/digia/qjsonbug/qjsonbug...(no debugging symbols found)...done. [New LWP 7933] warning: Can't read pathname for load map: Input/output error. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `./qjsonbug'. Program terminated with signal 11, Segmentation fault. #0 0x00007f7a25e685d6 in objectContentToJson(QJsonPrivate::Object const*, QByteArray&, int, bool) () from /home/adenilson/apps/qt5/qtbase/lib/libQt5Core.so.5 (gdb) bt #0 0x00007f7a25e685d6 in objectContentToJson(QJsonPrivate::Object const*, QByteArray&, int, bool) () from /home/adenilson/apps/qt5/qtbase/lib/libQt5Core.so.5 #1 0x00007f7a25e6808a in valueToJson(QJsonPrivate::Base const*, QJsonPrivate::Value const&, QByteArray&, int, bool) () from /home/adenilson/apps/qt5/qtbase/lib/libQt5Core.so.5 #2 0x00007f7a25e687a9 in arrayContentToJson(QJsonPrivate::Array const*, QByteArray&, int, bool) () from /home/adenilson/apps/qt5/qtbase/lib/libQt5Core.so.5 #3 0x00007f7a25e68a4a in QJsonPrivate::Writer::arrayToJson(QJsonPrivate::Array const*, QByteArray&, int, bool) () from /home/adenilson/apps/qt5/qtbase/lib/libQt5Core.so.5 #4 0x00007f7a25e62850 in QJsonDocument::toJson() const () from /home/adenilson/apps/qt5/qtbase/lib/libQt5Core.so.5 #5 0x00000000004015e7 in generate() () #6 0x00000000004010cb in main ()