unhandled exception / abort etc. ...

Michael Meeks michael.meeks at suse.com
Wed Feb 29 08:58:38 PST 2012

On Wed, 2012-02-29 at 17:00 +0100, Stephan Bergmann wrote:
> 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.

	Interesting; well - I built with make ENABLE_SYMBOLS=true but otherwise
a reasonably normal build (AFAICS), I don't use --enable-dbgutil myself.

> 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).

	For me with:

+		 fprintf (stderr, "Crash !\n");
+                throw ::std::bad_alloc();

	I get:

./soffice -writer
Warning: -writer is deprecated.  Use --writer instead.

Crash !
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

	And no crash handler. I guess I have a linkoo'd build perhaps something
there is causing grief.

	I attach the patch, and sample macro in case someone else has a more
'producty' build handy and wants to try.

	Incidentally, I love your crash patch :-) IMHO we badly need some unit
tests for crash recovery and a nice built-in simulated crash is rather



michael.meeks at suse.com  <><, Pseudo Engineer, itinerant idiot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mycrash.diff
Type: text/x-patch
Size: 1944 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120229/65c2dc83/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash-test.odt
Type: application/vnd.oasis.opendocument.text
Size: 11499 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120229/65c2dc83/attachment.odt>

More information about the LibreOffice mailing list