Issue 111182

Summary: Desktop::terminate -> ~DropTarget -> _objc_error crash
Product: gsl Reporter: Stephan Bergmann <stephan.bergmann.secondary>
Component: codeAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: DEV300m77   
Target Milestone: OOo 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Stephan Bergmann 2010-04-27 09:45:45 UTC
At least on DEV300_m77-based CWS sb120 (mainly making changes to the testing
framework), executing the unoapi tests at least under unxmacxi non-pro once
crashed during OOo shutdown with

(gdb) where
#0  0x962fabfa in _objc_error ()
#1  0x962fac30 in _objc_error ()
#2  0x962f9637 in _objc_flush_caches ()
#3  0x01f4c3d4 in DropTarget::~DropTarget ()
#4  0x0061da4e in cppu::WeakComponentImplHelperBase::release ()
#5  0x01e707ed in Window::~Window ()
#6  0x01dcdc0b in ImplBorderWindow::~ImplBorderWindow ()
#7  0x01e700f4 in Window::~Window ()
#8  0x01e820bb in WorkWindow::~WorkWindow ()
#9  0x013d0659 in VCLXDevice::DestroyOutputDevice ()
#10 0x013f4dea in VCLXWindow::dispose ()
#11 0x186ff852 in framework::Frame::impl_disposeContainerWindow ()
#12 0x1870f096 in framework::Frame::dispose ()
#13 0x1870f6e1 in framework::Frame::close ()
#14 0x186e2b70 in framework::Desktop::impl_closeFrames ()
#15 0x186e5e2e in framework::Desktop::terminate ()
#16 0x03d77d22 in (anonymous namespace)::callVirtualMethod ()
#17 0x03d780f0 in (anonymous namespace)::cpp_call ()
#18 0x03d7893f in bridges::cpp_uno::shared::unoInterfaceProxyDispatch ()
#19 0x18126d0a in thisDispatch ()
#20 0x18119676 in bridges_urp::ServerMultiJob::execute ()
#21 0x18119f86 in doit ()
#22 0x0015e8ea in cppu_threadpool::JobQueue::enter ()
#23 0x0015ecab in cppu_threadpool::ORequestThread::run ()
#24 0x0015f024 in cppu_requestThreadWorker ()
#25 0x001fd5b7 in osl_thread_start_Impl ()
#26 0x96e3d155 in _pthread_start ()
#27 0x96e3d012 in thread_start ()
Comment 1 Stephan Bergmann 2010-04-27 10:44:33 UTC
A very similar crash appeared on DEV300_m77-based CWS sb120, executing
extensions/qa/unoapi under unxmacxi non-pro at

4: checking: [pcr.ObjectInspector::com::sun::star::lang::XComponent] is iface:
[com.sun.star.lang.XComponent] testcode: [ifc.lang._XComponent]
4: LOG> Execute: dispose()
4: LOG> Execute: removeEventListener()
4: LOG> Execute: addEventListener()
4: LOG> addEventListener(): null
4: 
4: LOG> Thread[main,5,main] is removing EL
ifc.lang._XComponent$MyEventListener2@53aed4
4: LOG> removeEventListener(): null
4: 
4: LOG> begin dispose in thread Thread[main,5,main]
4: LOG> Thread[main,5,main] is DISPOSING
EV1ifc.lang._XComponent$MyEventListener@caea19
4: LOG> end disposeThread[main,5,main]
4: Method addEventListener() finished with state OK
4: Method removeEventListener() finished with state OK
4: Method dispose() finished with state OK
4: LOG> dispose(): PASSED.OK
4: LOG>     Closing dialog if one exists ... 
4: sh:
/net/so-cwsserv02/export/cws/sb120/DEV300/unxmacxi/installation/opt/OpenOffice.org.app/Contents/MacOS/../program/crash_report.bin:
No such file or directory
4: Application Error
/net/so-cwsserv02/export/cws/sb120/DEV300/unxmacxi/installation/opt/OpenOffice.org.app/Contents/MacOS/../program/crash_report.bin
-p 93255 -s 11 -xml /var/tmp//crxmlL7TW9E -chksum /var/tmp//crchkoa8TsQ -stack
/var/tmp//crstkqdufWM -noui
4: 
4: 
4: Fatal exception: Signal 6

with stack

(gdb) where
#0  0x96ee8136 in clock_get_attributes ()
#1  0x96ee1013 in usleep$NOCANCEL$UNIX2003 ()
#2  0x96ef8685 in abort ()
#3  0x01f3bbef in SalAbort ()
#4  0x000aa0df in desktop::Desktop::Exception ()
#5  0x01c57de5 in ImplVCLExceptionHandler::signal ()
#6  0x0020394e in CallSignalHandler ()
#7  0x00203ae5 in SignalHandlerFunction ()
#8  0x96e782bb in _sigtramp ()
#9  0xffffffff in ?? ()
#10 0x0061da4e in cppu::WeakComponentImplHelperBase::release ()
#11 0x01e707ed in Window::~Window ()
#12 0x01ddb4ca in Dialog::~Dialog ()
#13 0x013d0659 in VCLXDevice::DestroyOutputDevice ()
#14 0x013f4dea in VCLXWindow::dispose ()
#15 0x186ff852 in framework::Frame::impl_disposeContainerWindow ()
#16 0x1870f096 in framework::Frame::dispose ()
#17 0x1870f6e1 in framework::Frame::close ()
#18 0x03d77d22 in (anonymous namespace)::callVirtualMethod ()
#19 0x03d780f0 in (anonymous namespace)::cpp_call ()
#20 0x03d7893f in bridges::cpp_uno::shared::unoInterfaceProxyDispatch ()
#21 0x18179d0a in thisDispatch ()
#22 0x1816c676 in bridges_urp::ServerMultiJob::execute ()
#23 0x1816cf86 in doit ()
#24 0x0015e8ea in cppu_threadpool::JobQueue::enter ()
#25 0x0015ecab in cppu_threadpool::ORequestThread::run ()
#26 0x0015f024 in cppu_requestThreadWorker ()
#27 0x001fd5b7 in osl_thread_start_Impl ()
#28 0x96e3d155 in _pthread_start ()
#29 0x96e3d012 in thread_start ()

Worked around for now by disabling the automatic execution of
extensions/qa/unoapi (via subsequenttests), see
<http://hg.services.openoffice.org/cws/sb120/rev/4302079071ad>; please revert
when fixing this issue.
Comment 2 philipp.lohmann 2010-06-04 13:48:32 UTC
target
Comment 3 philipp.lohmann 2010-07-23 10:27:06 UTC
not reproducible, will keep around for a while if it happens again.
Comment 4 Stephan Bergmann 2011-01-24 09:55:26 UTC
Now also happened in forms/qa/complex/forms on DEV300_m98 based CWS sb138,
unxmacxi.pro:

7: JUnit version 4.8.1
7: setUpConnection()
7: .creating a draw document
7: Trying to change all properties.
7: tearDownConnection()
7: objc[62191]: FREED(id): message unregisterDraggingDestinationHandler: sent to
freed object=0x1818da00
Comment 5 Rob Weir 2013-07-30 02:21:08 UTC
Reset assignee on issues not touched by assignee in more than 2000 days.