Apache OpenOffice (AOO) Bugzilla – Issue 34480
gcc3_linux_intel C++ UNO bridge broken for gcc 3.4
Last modified: 2004-10-18 10:50:49 UTC
Following BASIC code crashes the Office in a product build. The problem does not appear in a non-product build. <code> xSFA = CreateUnoService( "com.sun.star.ucb.SimpleFileAccess" ) msgbox( xSFA.isReadOnly( "vnd.sun.star.expand:${$SYSBINDIR/bootstraprc::UserInstallation}/user/Scripts/beanshell")) </code> xSFA.isReadOnly() will throw an exception which should result in an error box displayed by BASIC. From what I've seen this could be a code optimization problem with gcc 3.4. If bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx gets compiled with -Os the bridge gets broken. The catch (...) handler in function cpp_call() will not be called in case the called C++ virtual member function does throw an exception. This works fine if uno2cpp.cxx is compiled without optimization.
.
Stephan, please take care of this problem. Thanks.
See http://gcc.gnu.org/ml/gcc/2004-09/msg01270.html for a description of the problem (bridges/source/cpp_uno/gcc3_linux_intel/uno2cpp.cxx, "inner" is "callVirtualMethod").
*** Issue 34515 has been marked as a duplicate of this issue. ***
See follow-up issue 34673 for fixing this on gcc3 bridges other than Linux Intel.
fix will only make it into SRC680m56
verified
closed