Issue 34480 - gcc3_linux_intel C++ UNO bridge broken for gcc 3.4
Summary: gcc3_linux_intel C++ UNO bridge broken for gcc 3.4
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: 680m52
Hardware: All Linux, all
: P2 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: Stephan Bergmann
QA Contact: issues@udk
URL:
Keywords:
: 34515 (view as issue list)
Depends on:
Blocks:
 
Reported: 2004-09-22 08:21 UTC by kai.sommerfeld
Modified: 2004-10-18 10:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kai.sommerfeld 2004-09-22 08:21:15 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.
Comment 1 kai.sommerfeld 2004-09-22 08:21:46 UTC
.
Comment 2 kai.sommerfeld 2004-09-22 13:56:07 UTC
Stephan, please take care of this problem. Thanks.
Comment 3 Stephan Bergmann 2004-09-22 14:27:27 UTC
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").
Comment 4 Oliver Specht 2004-09-27 08:56:20 UTC
*** Issue 34515 has been marked as a duplicate of this issue. ***
Comment 5 Stephan Bergmann 2004-09-27 12:47:52 UTC
See follow-up issue 34673 for fixing this on gcc3 bridges other than Linux Intel.
Comment 6 stefan.baltzer 2004-09-27 18:08:42 UTC
*** Issue 34515 has been marked as a duplicate of this issue. ***
Comment 7 Stephan Bergmann 2004-10-07 09:21:40 UTC
fix will only make it into SRC680m56
Comment 8 Stephan Bergmann 2004-10-18 10:50:22 UTC
verified
Comment 9 Stephan Bergmann 2004-10-18 10:50:49 UTC
closed