<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Crash when terminating the StarDesktop from running a document macro"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127205">127205</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash when terminating the StarDesktop from running a document macro
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>Inherited From OOo
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>glogow@fbihome.de
</td>
</tr></table>
<p>
<div>
<pre>Description:
This is basically a variant of <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Crashes when closing the document running the macro (itself)"
href="show_bug.cgi?id=115090">bug 115090</a>. But instead of closing the running
document, this closes LO. Eventually the same happens when calling
XDesktop::terminate() from an extension, but I didn't yet test that.
Interesting, but unrelated fact: if you have a modified document when opening
the crash document, this will trigger the veto handling and LO doesn't crash,
if you abort the shutdown / terminate. So everything else seem to work as
expected.
I also found
<a href="https://ask.libreoffice.org/en/question/175943/stardesktopterminate-does-not-terminateclose-libre-office/">https://ask.libreoffice.org/en/question/175943/stardesktopterminate-does-not-terminateclose-libre-office/</a>,
which suggest that probably adding a "wait" will prevent the crash, but even if
that works, it is just a workaround.
Some times an older LO version won't show the recovery dialog on crash, but
just on the next start. Some times you don't get any recovery dialog, but dmesg
shows a crash like
[25671.427177] soffice.bin[12655]: segfault at 0 ip 0000000000000000 sp
00007ffd9e2fcdf8 error 14 in soffice.bin[400000+1000]
Steps to Reproduce:
1. Open the attached document and click ok from the message box.
Actual Results:
LO crashes.
Expected Results:
LO should just exit without a crash.
Reproducible: Always
User Profile Reset: No
Additional Info:
Tested with OOo 3.3.0 and various releases in between (bibisect releases) and
LO master (6.4).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>