Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.2.0 Beta1
-
None
-
Windows 8.1 , GCC 4.8.1, mingw-w64 r6302
Compile : configure -prefix c:/QtSDK/Qt32-5.2 -opensource -confirm-license -debug-and-release -c+11 -icu -openssl -no-dbus -platform win32-g+ -opengl desktop -nomake tests -nomake examples -nomake tests
Description
I'm compiling daily builds of Qt, from stable branch.
This code used to work fr years. Now is crashing in the latest git.
QFileDialog dialog; ... QGridLayout *layout = (QGridLayout*)dialog.layout(); layout->addLayout(rowLayout,4,0,1,-1);
The backtrack is:
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 7584.0xb54] 0x1041e200 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >: data (this=0x4) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:143 143 return d; (gdb) bt #0 0x1041e200 in QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData >::data (this=0x4) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:143 #1 0x100408e5 in qGetPtrHelper<QScopedPointer<QObjectData> > (p=...) at ../../include/QtCore/../../src/corelib/global/qglobal.h:902 #2 0x1036342f in QGridLayout::d_func (this=0x0) at ../../include/QtWidgets/../../src/widgets/kernel/qgridlayout.h:60 #3 0x10040506 in QGridLayout::addLayout (this=0x0, layout=0x283ee008, row=4, column=0, rowSpan=1, columnSpan=-1, alignment=...) at kernel\qgridlayout.cpp:1540 #4 0x004094a7 in Publish::filePicker (this=0x1d078008) at ../cangote/core/gnunet/filesharing/publish/publish.cpp:127 #5 0x0042aed3 in Publish::qt_static_metacall (_o=0x1d078008, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x28a410) at .moc/moc_publish.cpp:105 #6 0x0042b0b4 in Publish::qt_metacall (this=0x1d078008, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0x28a410) at .moc/moc_publish.cpp:153 #7 0x6b91d3c2 in QMetaObject::metacall (object=0x1d078008, cl=QMetaObject::InvokeMetaMethod, idx=9, argv=0x28a410) at kernel\qmetaobject.cpp:308 #8 0x090afd31 in CallMethod (object=0x1d078008, index=9, returnType=43, argCount=0, argTypes=0x0, engine=0x1d07a100, callArgs=0x1f180a70) at jsruntime\qv4qobjectwrapper.cpp:1077 #9 0x090b09cc in CallPrecise (object=0x1d078008, data=..., engine=0x1d07a100, callArgs=0x1f180a70) at jsruntime\qv4qobjectwrapper.cpp:1310 #10 0x090b3c7a in QV4::QObjectMethod::callInternal (this=0x22211680, callData=0x1f180a70) at jsruntime\qv4qobjectwrapper.cpp:1776 #11 0x090b37da in QV4::QObjectMethod::call (m=0x22211680, callData=0x1f180a70) at jsruntime\qv4qobjectwrapper.cpp:1719 #12 0x092b1504 in QV4::FunctionObject::call (this=0x22211680, callData=0x1f180a70) at jsruntime/qv4functionobject_p.h:130 #13 0x09052d0a in QV4::__qmljs_call_property (context=0x28a820, name=..., callData=...) at jsruntime\qv4runtime.cpp:812 #14 0x234b0a0c in ?? () #15 0x092b936e in QV4::Function::code (this=0x280882c8, ctx=0x28a820, data=0x0) at jsruntime/qv4function_p.h:106 #16 0x090795ca in QV4::SimpleScriptFunction::call (that=0x26170e80, callData=0x1f180720) at jsruntime\qv4functionobject.cpp:554 #17 0x092b1504 in QV4::FunctionObject::call (this=0x26170e80, callData=0x1f180720) at jsruntime/qv4functionobject_p.h:130 #18 0x091832c9 in QQmlJavaScriptExpression::evaluate (this=0x27e976c0, context=0x28134250, function=..., callData=0x1f180720, isUndefined=0x0) at qml\qqmljavascriptexpression.cpp:170 #19 0x0911f0cc in QQmlBoundSignalExpression::evaluate (this=0x27e976b0, a=0x28b4e0) at qml\qqmlboundsignal.cpp:226 #20 0x0911f9d4 in QQmlBoundSignal_callback (e=0x2822d24c, a=0x28b4e0) at qml\qqmlboundsignal.cpp:353 #21 0x09164ba8 in QQmlNotifier::emitNotify (endpoint=0x2822d24c, a=0x28b4e0) at qml\qqmlnotifier.cpp:81 #22 0x090d3520 in QQmlData::signalEmitted (object=0x2813e030, index=52, a=0x28b4e0) at qml\qqmlengine.cpp:703 #23 0x6b94b0ce in QMetaObject::activate (sender=0x2813e030, signalOffset=34, local_signal_index=18, argv=0x28b4e0) at kernel\qobject.cpp:3423 #24 0x090d2009 in QQmlVMEMetaObject::activate (this=0x27f7a530, object=0x2813e030, index=64, args=0x28b4e0) at qml\qqmlvmemetaobject.cpp:1330 #25 0x090cfa80 in QQmlVMEMetaObject::metaCall (this=0x27f7a530, c=QMetaObject::InvokeMetaMethod, _id=64, a=0x28b4e0) at qml\qqmlvmemetaobject.cpp:921 #26 0x09274c3b in QAbstractDynamicMetaObject::metaCall (this=0x27f7a530, c=QMetaObject::InvokeMetaMethod, _id=64, a=0x28b4e0) at C:/qt/qtbase/include/QtCore/5.2.0/QtCore/private/../../../../../src/core ib/kernel/qobject_p.h:422 #27 0x090d0091 in QQmlVMEMetaObject::metaCall (this=0x27f79ab0, c=QMetaObject::InvokeMetaMethod, _id=64, a=0x28b4e0) at qml\qqmlvmemetaobject.cpp:977 #28 0x09274c3b in QAbstractDynamicMetaObject::metaCall (this=0x27f79ab0, c=QMetaObject::InvokeMetaMethod, _id=64, a=0x28b4e0) at C:/qt/qtbase/include/QtCore/5.2.0/QtCore/private/../../../../../src/core ib/kernel/qobject_p.h:422 #29 0x6b91d39a in QMetaObject::metacall (object=0x2813e030, cl=QMetaObject::InvokeMetaMethod, idx=64, argv=0x28b4e0) at kernel\qmetaobject.cpp:306 #30 0x090afd31 in CallMethod (object=0x2813e030, index=64, returnType=43, argCount=0, argTypes=0x0, engine=0x1d07a100, callArgs=0x1f1806c8) at jsruntime\qv4qobjectwrapper.cpp:1077 #31 0x090b09cc in CallPrecise (object=0x2813e030, data=..., engine=0x1d07a100, callArgs=0x1f1806c8) at jsruntime\qv4qobjectwrapper.cpp:1310 #32 0x090b3c7a in QV4::QObjectMethod::callInternal (this=0x22211710, callData=0x1f1806c8) at jsruntime\qv4qobjectwrapper.cpp:1776 #33 0x090b37da in QV4::QObjectMethod::call (m=0x22211710, callData=0x1f1806c8) at jsruntime\qv4qobjectwrapper.cpp:1719 #34 0x092b1504 in QV4::FunctionObject::call (this=0x22211710, callData=0x1f1806c8) at jsruntime/qv4functionobject_p.h:130 #35 0x09052d0a in QV4::__qmljs_call_property (context=0x28b8f0, name=..., callData=...) at jsruntime\qv4runtime.cpp:812 #36 0x23430260 in ?? () #37 0x092b936e in QV4::Function::code (this=0x2837b760, ctx=0x28b8f0, data=0x0) at jsruntime/qv4function_p.h:106 #38 0x090795ca in QV4::SimpleScriptFunction::call (that=0x261d5000, callData=0x1f1803f8) at jsruntime\qv4functionobject.cpp:554 #39 0x092b1504 in QV4::FunctionObject::call (this=0x261d5000, callData=0x1f1803f8) at jsruntime/qv4functionobject_p.h:130 #40 0x091832c9 in QQmlJavaScriptExpression::evaluate (this=0x282379b8, context=0x2813df10, function=..., callData=0x1f1803f8, isUndefined=0x0) at qml\qqmljavascriptexpression.cpp:170 #41 0x0911f0cc in QQmlBoundSignalExpression::evaluate (this=0x282379a8, a=0x28bf98) at qml\qqmlboundsignal.cpp:226 #42 0x0911f9d4 in QQmlBoundSignal_callback (e=0x282bd004, a=0x28bf98) at qml\qqmlboundsignal.cpp:353 #43 0x09164ba8 in QQmlNotifier::emitNotify (endpoint=0x282bd004, a=0x28bf98) at qml\qqmlnotifier.cpp:81 #44 0x090d3520 in QQmlData::signalEmitted (object=0x280db7f0, index=3, a=0x28bf98) at qml\qqmlengine.cpp:703 #45 0x6b94b0ce in QMetaObject::activate (sender=0x280db7f0, signalOffset=3, local_signal_index=0, argv=0x28bf98) at kernel\qobject.cpp:3423 #46 0x6b94aee8 in QMetaObject::activate (sender=0x280db7f0, m=0x2036a028 <QQuickAction::staticMetaObject>, local_signal_index=0, argv=0x28bf98) at kernel\qobject.cpp:3405 #47 0x203432b3 in QQuickAction::triggered (this=0x280db7f0, _t1=0x2813e030) at .moc\debug_shared\moc_qquickaction_p.cpp:338 #48 0x2033297c in QQuickAction::trigger (this=0x280db7f0, source=0x2813e030) at qquickaction.cpp:443 #49 0x20342be2 in QQuickAction::qt_static_metacall (_o=0x280db7f0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x28c110) at .moc\debug_shared\moc_qquickaction_p.cpp:165 #50 0x20342ec9 in QQuickAction::qt_metacall (this=0x280db7f0, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x28c110) at .moc\debug_shared\moc_qquickaction_p.cpp:267 #51 0x6b91d3c2 in QMetaObject::metacall (object=0x280db7f0, cl=QMetaObject::InvokeMetaMethod, idx=17, argv=0x28c110) at kernel\qmetaobject.cpp:308 #52 0x090afc13 in CallMethod (object=0x280db7f0, index=17, returnType=43, argCount=1, argTypes=0x27fa27e4, engine=0x1d07a100, callArgs=0x1f180398) at jsruntime\qv4qobjectwrapper.cpp:1059 #53 0x090b096d in CallPrecise (object=0x280db7f0, data=..., engine=0x1d07a100, callArgs=0x1f180398) at jsruntime\qv4qobjectwrapper.cpp:1306 #54 0x090b0ede in CallOverloaded (object=0x280db7f0, data=..., engine=0x1d07a100, callArgs=0x1f180398) at jsruntime\qv4qobjectwrapper.cpp:1392 #55 0x090b3cb5 in QV4::QObjectMethod::callInternal (this=0x222117a0, callData=0x1f180398) at jsruntime\qv4qobjectwrapper.cpp:1778 #56 0x090b37da in QV4::QObjectMethod::call (m=0x222117a0, callData=0x1f180398) at jsruntime\qv4qobjectwrapper.cpp:1719 #57 0x092b1504 in QV4::FunctionObject::call (this=0x222117a0, callData=0x1f180398) at jsruntime/qv4functionobject_p.h:130 #58 0x09052d0a in QV4::__qmljs_call_property (context=0x28c790, name=..., callData=...) at jsruntime\qv4runtime.cpp:812 #59 0x21e50b1f in ?? () #60 0x092b936e in QV4::Function::code (this=0x217954a0, ctx=0x28c790, data=0x0) at jsruntime/qv4function_p.h:106 #61 0x090795ca in QV4::SimpleScriptFunction::call (that=0x26170380, callData=0x1f180008) at jsruntime\qv4functionobject.cpp:554 #62 0x092b1504 in QV4::FunctionObject::call (this=0x26170380, callData=0x1f180008) at jsruntime/qv4functionobject_p.h:130 #63 0x091832c9 in QQmlJavaScriptExpression::evaluate (this=0x27e979d8, context=0x2813df10, function=..., callData=0x1f180008, isUndefined=0x0) at qml\qqmljavascriptexpression.cpp:170 #64 0x0911f0cc in QQmlBoundSignalExpression::evaluate (this=0x27e979c8, a=0x28ce68) at qml\qqmlboundsignal.cpp:226 #65 0x0911f9d4 in QQmlBoundSignal_callback (e=0x2822c79c, a=0x28ce68) at qml\qqmlboundsignal.cpp:353 #66 0x09164ba8 in QQmlNotifier::emitNotify (endpoint=0x2822c79c, a=0x28ce68) at qml\qqmlnotifier.cpp:81 #67 0x090d3520 in QQmlData::signalEmitted (object=0x2813e2d0, index=43, a=0x28ce68) at qml\qqmlengine.cpp:703 #68 0x6b94b0ce in QMetaObject::activate (sender=0x2813e2d0, signalOffset=29, local_signal_index=14, argv=0x28ce68) at kernel\qobject.cpp:3423 #69 0x6b94aee8 in QMetaObject::activate (sender=0x2813e2d0, m=0x636014d8 <QQuickMouseArea::staticMetaObject>, local_signal_index=14, argv=0x28ce68) at kernel\qobject.cpp:3405 #70 0x6342fdb3 in QQuickMouseArea::released (this=0x2813e2d0, _t1=0x28cf18) at .moc\debug_shared\moc_qquickmousearea_p.cpp:521 #71 0x63370eb8 in QQuickMouseArea::setPressed (this=0x2813e2d0, button=Qt::LeftButton, p=false) at items\qquickmousearea.cpp:1100 #72 0x6336f20a in QQuickMouseArea::mouseReleaseEvent (this=0x2813e2d0, event= 0x283d6190) at items\qquickmousearea.cpp:722 #73 0x6331195f in QQuickItemPrivate::deliverMouseEvent (this=0x21d8a8b8, e=0x283d6190) at items\qquickitem.cpp:4497 #74 0x633272e0 in QQuickWindow::sendEvent (this=0x27f772e0, item=0x2813e2d0, e=0x283d6190) at items\qquickwindow.cpp:2214 #75 0x63322513 in QQuickWindowPrivate::deliverMouseEvent (this=0x21a2ea30, event=0x28d860) at items\qquickwindow.cpp:1352 #76 0x6332267b in QQuickWindow::mouseReleaseEvent (this=0x27f772e0, event=0x28d860) at items\qquickwindow.cpp:1385 #77 0x01742d0f in QWindow::event (this=0x27f772e0, ev=0x28d860) at kernel\qwindow.cpp:1842 #78 0x63321bcb in QQuickWindow::event (this=0x27f772e0, e=0x28d860) at items\qquickwindow.cpp:1253 #79 0x1002ddd5 in QApplicationPrivate::notify_helper (this=0x1b91eda8, receiver=0x27f772e0, e=0x28d860) at kernel\qapplication.cpp:3470 #80 0x1002b6f2 in QApplication::notify (this=0x28fde0, receiver=0x27f772e0, e=0x28d860) at kernel\qapplication.cpp:2891 #81 0x6b91733e in QCoreApplication::notifyInternal (this=0x28fde0, receiver=0x27f772e0, event=0x28d860) at kernel\qcoreapplication.cpp:882 #82 0x019bd87d in QCoreApplication::sendSpontaneousEvent ( receiver=0x27f772e0, event=0x28d860) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:235 #83 0x0173b30a in QGuiApplicationPrivate::processMouseEvent (e=0x28335240) at kernel\qguiapplication.cpp:1581 #84 0x0173aa96 in QGuiApplicationPrivate::processWindowSystemEvent ( e=0x28335240) at kernel\qguiapplication.cpp:1398 #85 0x0173075e in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel\qwindowsysteminterface.cpp:572 #86 0x1d6ed88f in QWindowsGuiEventDispatcher::sendPostedEvents (this= 0x1d062650) at qwindowsguieventdispatcher.cpp:89 #87 0x6b972b9b in qt_internal_proc (hwnd=0x2e0f78, message=1025, wp=0, lp=0) at kernel\qeventdispatcher_win.cpp:421 #88 0x765b775e in USER32!CallNextHookEx () from C:\WINDOWS\SYSTEM32\user32.dll #89 0x765b8c2a in USER32!FindWindowA () from C:\WINDOWS\SYSTEM32\user32.dll #90 0x765b84e5 in USER32!CallNextHookEx () from C:\WINDOWS\SYSTEM32\user32.dll #91 0x765b93d1 in USER32!DispatchMessageW () from C:\WINDOWS\SYSTEM32\user32.dll #92 0x6b974418 in QEventDispatcherWin32::processEvents (this=0x1d062650, flags=...) at kernel\qeventdispatcher_win.cpp:756 #93 0x1d6ed7a2 in QWindowsGuiEventDispatcher::processEvents (this=0x1d062650, flags=...) at qwindowsguieventdispatcher.cpp:80 #94 0x6b91495c in QEventLoop::processEvents (this=0x28fce0, flags=...) at kernel\qeventloop.cpp:136 #95 0x6b914cea in QEventLoop::exec (this=0x28fce0, flags=...) at kernel\qeventloop.cpp:212 #96 0x6b917c05 in QCoreApplication::exec () at kernel\qcoreapplication.cpp:1135 #97 0x0173a8a0 in QGuiApplication::exec () at kernel\qguiapplication.cpp:1332 #98 0x1002b0a9 in QApplication::exec () at kernel\qapplication.cpp:2695 #99 0x004018de in qMain (argc=1, argv=0x1d062c38) at ../cangote/main.cpp:89 #100 0x0042eaad in WinMain@16 (instance=0x400000, prevInstance=prevInstance@entry=0x0, cmdShow=10) at qtmain_win.cpp:131 #101 0x004bdc2d in main (flags=1, cmdline=0x1d062008, inst=0x1b91cf58) at ../mingw-w64-crt/crt/crt0_c.c:18