Bug 86878 - Crash on Mac OS X after installing Grammalecte extension
Summary: Crash on Mac OS X after installing Grammalecte extension
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
(earliest affected) release
Hardware: All Mac OS X (All)
: medium major
Assignee: Not Assigned
Depends on:
Reported: 2014-11-30 18:30 UTC by Milan Bouchet-Valat
Modified: 2015-05-01 16:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

backtrace (75.14 KB, text/plain)
2014-11-30 18:30 UTC, Milan Bouchet-Valat

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Bouchet-Valat 2014-11-30 18:30:17 UTC
Created attachment 110273 [details]

After installing the Grammalecte extension, Writer crashed. This is on OS X Snow Leopard.

I'm not sure the backtrace is really useful, but it's all the OS offered.
Comment 1 Michael Stahl (CIB) 2015-04-24 13:47:30 UTC
something is throwing an exception of a type that is not allowed to be thrown
because it is not listed in the exception specification of a method:

3   libstdc++.6.dylib                   0x0096217a __cxxabiv1::__terminate(void (*)()) + 10
4   libstdc++.6.dylib                   0x009621ba __cxxabiv1::__unexpected(void (*)()) + 0
5   libstdc++.6.dylib                   0x009622b8 __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
6   libgcc3_uno.dylib                   0x0a7bf611 gcc3::raiseException(_uno_Any*, _uno_Mapping*) + 1537
7   libgcc3_uno.dylib                   0x0a7bc851 (anonymous namespace)::cpp2uno_call(bridges::cpp_uno::shared::CppInterfaceProxy*, _typelib_TypeDescription const*, _typelib_TypeDescriptionReference*, long, _typelib_MethodParameter*, void**, void*) + 1025
8   libgcc3_uno.dylib                   0x0a7bce8b cpp_vtable_call + 1051
9   libgcc3_uno.dylib                   0x0a7c478d privateSnippetExecutorClass + 17
10  liblnglo.dylib                      0x273c894d GrammarCheckingIterator::DequeueAndCheck() + 1837

given that there is UNO bridge code on the stack, it's probably the extension - likely implemented in a non-C++ language.

it is possible this bug causes a crash only on Mac OS X because
that is built with clang and clang is the only compiler where
the C++ exception specifications are actually enforced.

GrammarCheckingIterator::DequeueAndCheck() calls the
linguistic2::XProofreader::doProofreading UNO method
so presumably the implementation of that in the extension
throws the exception.

this is likely not-our-bug, please contact the authors of the extension.
Comment 2 Milan Bouchet-Valat 2015-05-01 16:34:16 UTC
Thanks. Reported upstream here: http://www.dicollecte.org/thread.php?prj=fr&t=463