hetelek / Velocity

A cross-platform application built using the Qt framework that allows you to browse and edit Xbox 360 files.
GNU General Public License v3.0
155 stars 48 forks source link

Segfault after saving the profile #59

Closed lubo closed 10 years ago

lubo commented 10 years ago

Velocity crashes after saving the profile in profile editor.

Backtrace:

*** Error in `/home/kuci/workspace/Velocity/Velocity/Velocity': free(): invalid pointer: 0x00007fffffffd860 ***
[Thread 0x7fffc144c700 (LWP 20938) exited]
======= Backtrace: =========
/usr/lib/libc.so.6(+0x73f8e)[0x7ffff56b2f8e]
/usr/lib/libc.so.6(+0x7988e)[0x7ffff56b888e]
/usr/lib/libc.so.6(+0x7a04b)[0x7ffff56b904b]
/usr/lib/libQtCore.so.4(_ZN14QObjectPrivate14deleteChildrenEv+0x88)[0x7ffff65c3bf8]
/usr/lib/libQtGui.so.4(_ZN7QWidgetD2Ev+0x307)[0x7ffff6e68c77]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x448d2a]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x44900c]
/usr/lib/libQtCore.so.4(_ZN14QObjectPrivate14deleteChildrenEv+0x88)[0x7ffff65c3bf8]
/usr/lib/libQtGui.so.4(_ZN7QWidgetD2Ev+0x307)[0x7ffff6e68c77]
/usr/lib/libQtGui.so.4(_ZN13QMdiSubWindowD0Ev+0x9)[0x7ffff723e819]
/usr/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x288)[0x7ffff65c56e8]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xb1b)[0x7ffff6e6c49b]
/usr/lib/libQtGui.so.4(_ZN13QMdiSubWindow5eventEP6QEvent+0xfb)[0x7ffff723f11b]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x8c)[0x7ffff6e1cf0c]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x22d)[0x7ffff6e2348d]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6d)[0x7ffff65ad58d]
/usr/lib/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x1ed)[0x7ffff65b06dd]
/usr/lib/libQtCore.so.4(+0x1aa9e3)[0x7ffff65da9e3]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x254)[0x7ffff4f73b84]
/usr/lib/libglib-2.0.so.0(+0x48dc8)[0x7ffff4f73dc8]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x6a)[0x7ffff4f7408a]
/usr/lib/libgtk-x11-2.0.so.0(gtk_dialog_run+0x172)[0x7fffedbeac72]
/usr/lib/libQtGui.so.4(+0x54655a)[0x7ffff719b55a]
/usr/lib/libQtGui.so.4(_ZN11QFileDialog15getOpenFileNameEP7QWidgetRK7QStringS4_S4_PS2_6QFlagsINS_6OptionEE+0x248)[0x7ffff72d03f8]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x477f63]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x44f79b]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x448954]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x44900c]
/usr/lib/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x288)[0x7ffff65c56e8]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xb1b)[0x7ffff6e6c49b]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x8c)[0x7ffff6e1cf0c]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x22d)[0x7ffff6e2348d]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x6d)[0x7ffff65ad58d]
/usr/lib/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData+0x1ed)[0x7ffff65b06dd]
/usr/lib/libQtCore.so.4(+0x1aa9e3)[0x7ffff65da9e3]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x254)[0x7ffff4f73b84]
/usr/lib/libglib-2.0.so.0(+0x48dc8)[0x7ffff4f73dc8]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7ffff4f73e6c]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x65)[0x7ffff65da2a5]
/usr/lib/libQtGui.so.4(+0x264fb6)[0x7ffff6eb9fb6]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x2f)[0x7ffff65ac15f]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x175)[0x7ffff65ac455]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x89)[0x7ffff65b1719]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x41c5d3]
/usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7ffff565f000]
/home/kuci/workspace/Velocity/Velocity/Velocity[0x41c2e7]

Right now, I am not able to produce more clear backtrace in GDB.

lubo commented 10 years ago

Fixed in be5e7aac709a6e511dfd0cbdfb976826a3ed6d05 in my repo. But I am not sure whether I will make a new pull request. Since hetelek and Experiment5X are not interested in working on this project anymore, it would be probably a better idea to maintain my own fork.

lubo commented 10 years ago

Change merged.