Double free or corruption (fasttop) in vibrations

Bugs item #2803844, was opened at 2009-06-10 01:09
Message generated for change (Tracker Item Submitted) made by mbanck
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=2803844&group_id=165310

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Michael Banck (mbanck)
Assigned to: Nobody/Anonymous (nobody)
Summary: double free or corruption (fasttop) in vibrations

Initial Comment:
This is with avogadro-0.9.6 and Qt-4.4.3.

Open testfiles/methane.mpo, go to Extensions->Vibrations…, select the first vibration, then select the second vibration, and so on. Sometimes, you get segfaults in various places, sometimes, you get this after a fault from glibc:

*** glibc detected *** /usr/bin/avogadro: double free or corruption (fasttop): 0x08491700 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7e484f4]
/lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7e4a6f6]
/usr/lib/libavogadro.so.0(_ZNK8Avogadro8Molecule15computeGeomInfoEv+0x4c)[0xb7d3759c]
/usr/lib/libavogadro.so.0(_ZNK8Avogadro8Molecule6centerEv+0x31)[0xb7d378f1]
/usr/lib/libavogadro.so.0(_ZN8Avogadro8GLWidget14updateGeometryEv+0x4b3)[0xb7d8d7f3]
/usr/lib/libavogadro.so.0(_ZN8Avogadro8GLWidget15updatePrimitiveEPNS_9PrimitiveE+0x22)[0xb7d8da02]
/usr/lib/libavogadro.so.0(_ZN8Avogadro8GLWidget11qt_metacallEN11QMetaObject4CallEiPPv+0x329)[0xb7d8fd79]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x200)[0xb6f83bd0]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x52)[0xb6f84952]
/usr/lib/libavogadro.so.0(_ZN8Avogadro8Molecule16primitiveUpdatedEPNS_9PrimitiveE+0x43)[0xb7d355b3]
/usr/lib/libavogadro.so.0(_ZN8Avogadro8Molecule15updatePrimitiveEv+0x4a)[0xb7d35b3a]
/usr/lib/libavogadro.so.0(_ZN8Avogadro8Molecule11qt_metacallEN11QMetaObject4CallEiPPv+0xa3)[0xb7d35bf3]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x200)[0xb6f83bd0]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x52)[0xb6f84952]
/usr/lib/libavogadro.so.0(_ZN8Avogadro9Primitive7updatedEv+0x37)[0xb7dabb07]
/usr/lib/libavogadro.so.0(_ZN8Avogadro8Molecule6updateEv+0x24)[0xb7d359e4]
/usr/lib/avogadro/extensions/vibrationextension.so[0xb5a5f8db]
/usr/lib/avogadro/extensions/vibrationextension.so[0xb5a5fe60]
/usr/lib/avogadro/extensions/vibrationextension.so[0xb5a63a53]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x200)[0xb6f83bd0]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x52)[0xb6f84952]
/usr/lib/avogadro/extensions/vibrationextension.so[0xb5a63fb3]
/usr/lib/avogadro/extensions/vibrationextension.so[0xb5a60741]
/usr/lib/avogadro/extensions/vibrationextension.so[0xb5a640e7]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x200)[0xb6f83bd0]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x52)[0xb6f84952]
/usr/lib/libQtGui.so.4(_ZN12QTableWidget18currentCellChangedEiiii+0x55)[0xb77ab3d5]
/usr/lib/libQtGui.so.4[0xb77b24b0]
/usr/lib/libQtGui.so.4(_ZN12QTableWidget11qt_metacallEN11QMetaObject4CallEiPPv+0x199)[0xb77b36b9]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x200)[0xb6f83bd0]
/usr/lib/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x52)[0xb6f84952]
/usr/lib/libQtGui.so.4(ZN19QItemSelectionModel14currentChangedERK11QModelIndexS2+0x49)[0xb7792b99]
/usr/lib/libQtGui.so.4(_ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE+0x8d)[0xb7792d3d]
/usr/lib/libQtGui.so.4(_ZN17QAbstractItemView15mousePressEventEP11QMouseEvent+0x24a)[0xb7744b8a]
/usr/lib/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x989)[0xb72d67a9]
/usr/lib/libQtGui.so.4(_ZN6QFrame5eventEP6QEvent+0x33)[0xb7609ca3]
/usr/lib/libQtGui.so.4(_ZN19QAbstractScrollArea13viewportEventEP6QEvent+0x5f)[0xb76a03cf]
/usr/lib/libQtGui.so.4(_ZN17QAbstractItemView13viewportEventEP6QEvent+0x30f)[0xb774b88f]
/usr/lib/libQtGui.so.4[0xb76a2975]
/usr/lib/libQtCore.so.4(_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent+0x9a)[0xb6f6e2ba]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x9a)[0xb727e77a]
/usr/lib/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xa71)[0xb7286fd1]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0xb1)[0xb6f6f0d1]
/usr/lib/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_E+0xde)[0xb728625e]
/usr/lib/libQtGui.so.4[0xb72efdfd]
/usr/lib/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xe81)[0xb72eebe1]
/usr/lib/libQtGui.so.4[0xb731860a]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f1)[0xb69322e1]
/usr/lib/libglib-2.0.so.0[0xb6935973]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x71)[0xb6935b31]
/usr/lib/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x58)[0xb6f995d8]
/usr/lib/libQtGui.so.4[0xb7317d45]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x4a)[0xb6f6d79a]
/usr/lib/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xea)[0xb6f6d95a]
/usr/lib/libQtCore.so.4(_ZN16QCoreApplication4execEv+0xb5)[0xb6f70015]
/usr/lib/libQtGui.so.4(_ZN12QApplication4execEv+0x27)[0xb727e617]
/usr/bin/avogadro[0x806ed2d]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7df0455]
/usr/bin/avogadro(_ZN9QTreeView8scrollToERK11QModelIndexN17QAbstractItemView10ScrollHintE+0x79)[0x80601d1]


You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=835077&aid=2803844&group_id=165310

On Tue, Jun 09, 2009 at 11:09:40PM +0000, SourceForge.net wrote:

Submitted By: Michael Banck (mbanck)

Open testfiles/methane.mpo, go to Extensions->Vibrations…, select
the first vibration, then select the second vibration, and so on.
Sometimes, you get segfaults in various places, sometimes, you get
this after a fault from glibc:

By the way, both of those bugs I reported with methane.mpo did not
trigger when running avogadro in valgrind (lots of messages, though…).

Michael