Issue 19743

Summary: ThisComponent.Dispose crash when execute on script asociated to "open document" event
Product: Writer Reporter: Unknown <non-migrated>
Component: uiAssignee: h.ilter
Status: CLOSED DUPLICATE QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P1 (highest) CC: issues
Version: OOo 1.1 RC4Keywords: crash, oooqa
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Document that crash on Linux
none
Test document: just load it and grant macro execution none

Description Unknown 2003-09-18 10:35:14 UTC
Script asociated to "open document" event:

Sub Main
  ThisComponent.Dispose
End Sub

also tested

Sub Main
  ThisComponent.close(true)
End Sub

and other equibalent code
Comment 1 Unknown 2003-09-18 10:38:40 UTC
Created attachment 9447 [details]
Document that crash on Linux
Comment 2 utomo99 2003-09-19 07:13:43 UTC
I try the problem on 
OpenOffice 1.1 RC4(default Install, US), Win XP Pro Sp1. 
(And MS Office XP Sp2). 
I can open it and after that it close the Openoffice writer.
is that the one you mention about crash ? 



Comment 3 Unknown 2003-09-19 07:24:14 UTC
Yes is that, but only crash on Linux System. I test it with Suse 8.2 
and RedHat 9.0 with OpenOffice 1.1 RC4(default Install, US).
Comment 4 dankegel 2003-09-23 08:00:59 UTC
I saw the crash on Red Hat 9 with ooo1.1.0rc4,
and submitted a crash report that mentioned this
issue number.

FWIW, here's gdb's view of the crash:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21038)]
0x411340c2 in pthread_mutex_lock () from /lib/libpthread.so.0
(gdb) bt
#0  0x411340c2 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x40bbabde in osl_acquireMutex () from
/opt/OpenOffice.org1.1.0rc4-pre/program/libsal.so.3
#2  0x40b586db in
cppu::OInterfaceIteratorHelper::~OInterfaceIteratorHelper() ()
   from /opt/OpenOffice.org1.1.0rc4-pre/program/libcppuhelpergcc3.so.3
#3  0x43ba700a in SfxBaseModel::postEvent_Impl(SfxEventHint const&) ()
from /opt/OpenOffice.org1.1.0rc4-pre/program/libsfx645li.so
...

And the mangled view on stdout:

Fatal exception: Signal 11
Stack:
...
/opt/OpenOffice.org1.1.0rc4-pre/program/libsal.so.3(osl_acquireMutex+0x23)[0x40bbabde]
/opt/OpenOffice.org1.1.0rc4-pre/program/libcppuhelpergcc3.so.3(_ZN4cppu24OInterfaceIteratorHelperD1Ev+0x2f)[0x40b586db]
/opt/OpenOffice.org1.1.0rc4-pre/program/libsfx645li.so(_ZN12SfxBaseModel14postEvent_ImplERK12SfxEventHint+0x14c)[0x43ba700a]
/opt/OpenOffice.org1.1.0rc4-pre/program/libsfx645li.so(_ZN12SfxBaseModel6NotifyER14SfxBroadcasterRK7SfxHint+0x367)[0x43ba57bf]
...

By searching Issuezilla for _ZN4cppu24OInterfaceIteratorHelperD1Ev,
I saw that this is a dup of the earlier bug 19711.

*** This issue has been marked as a duplicate of 19711 ***
Comment 5 Mathias_Bauer 2004-01-28 10:05:08 UTC
Created attachment 12761 [details]
Test document: just load it and grant macro execution
Comment 6 h.ilter 2004-03-18 15:30:43 UTC
.