unhandled exception / abort etc. ...

Stephan Bergmann sbergman at redhat.com
Wed Feb 29 08:00:57 PST 2012


On 02/29/2012 03:29 PM, Michael Meeks wrote:
> 	So - it took me a while to get around to this, but luckily while I was
> chasing:
>
> 	https://bugs.freedesktop.org/show_bug.cgi?id=46340
>
> 	I hit this. Interestingly on Linux we do get some (not particularly
> helpful) console debug:
>
> $ ./soffice /tmp/foo.odp
>
> terminate called after throwing an instance of
> 'com::sun::star::lang::DisposedException'
> $
>
> 	And of course, no auto-save, no contents of the exception etc. etc. And
> I imagine the same is true for all un-caught exceptions, including
> (incidentally ::std::bad_alloc() ;-). I imagine that at the moment
> actively discards document data left&  right in the vast majority of
> cases where it is not caught.

Strange.  At least for my (--enable-dbgutil) master build, following the 
instructions of fdo#46340 *does* lead to a restart with crash dialog and 
document recovery.

Also, experimenting with the attached crash.patch (see also 
<https://issues.apache.org/ooo/show_bug.cgi?id=108411> "let SID_CRASH 
really crash") does lead to the crash dialog in all four variations of 
the code (std::abort() vs. throw std::bad_alloc() and directly from main 
thread vs. pthread_create).

Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.patch
Type: text/x-patch
Size: 1852 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120229/235a3a29/attachment.bin>


More information about the LibreOffice mailing list