Issue 19743 - ThisComponent.Dispose crash when execute on script asociated to "open document" event
Summary: ThisComponent.Dispose crash when execute on script asociated to "open documen...
Status: CLOSED DUPLICATE of issue 19711
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Linux, all
: P1 (highest) Trivial (vote)
Target Milestone: ---
Assignee: h.ilter
QA Contact: issues@sw
URL:
Keywords: crash, oooqa
Depends on:
Blocks:
 
Reported: 2003-09-18 10:35 UTC by Unknown
Modified: 2004-03-18 15:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Document that crash on Linux (6.60 KB, application/octet-stream)
2003-09-18 10:38 UTC, Unknown
no flags Details
Test document: just load it and grant macro execution (6.21 KB, application/vnd.sun.xml.writer)
2004-01-28 10:05 UTC, Mathias_Bauer
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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
.