Issue 122678 - Clicking New Document toolbar item crashes
Summary: Clicking New Document toolbar item crashes
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: 4.0.0-dev
Hardware: PC Linux, all
: P3 Normal (vote)
Target Milestone: 4.0.0
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords: crash, release_blocker
Depends on:
Blocks:
 
Reported: 2013-07-04 03:17 UTC by Michael Hood
Modified: 2022-10-28 12:54 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---
jsc: 4.0.0_release_blocker+


Attachments
Simple fix (801 bytes, patch)
2013-07-05 07:58 UTC, Ariel Constenla-Haile
no flags Details | Diff
Simple fix (1.26 KB, patch)
2013-07-06 04:00 UTC, Ariel Constenla-Haile
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description Michael Hood 2013-07-04 03:17:10 UTC
AOO400m2(Build:9701)  -  Rev. 1498538 2013-07-02_04:10:42 - Rev. 1498774

When I click on the New Document Icon in AOO the application crahes.

If I select the drop downlist and select the app Calc, Writer etc.
Comment 1 Michael Hood 2013-07-04 03:20:40 UTC
If I select the drop downlist and select the app Calc, Writer etc these Apps Open Ok.
Comment 2 Edwin Sharp 2013-07-04 17:09:07 UTC
New document opens OK in Rev. 1499427 Win 7.
Comment 3 Ariel Constenla-Haile 2013-07-05 07:57:06 UTC
Crash on Linux with gcc < 4.5.0

A bug in the libstdc++ dynamic cast runtime makes the dynamic_cast from VCLXMenu* to VCLXPopupMenu * fail in framework::NewToolbarController::execute( sal_Int16 ) framework/source/uielement/popuptoolbarcontroller.cxx

Bug is solved in gcc >= 4.5.0, see http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=149297

Reproducible in Fedora 18 or some other newer Linux system if you copy in /opt/openoffice4/program an older version of libstdc++, like the one available in CentOS 5 (gcc 4.1.2).

Simple fix: replace the dynamic_cast with a reinterpret_cast, or C-style cast.
Comment 4 Ariel Constenla-Haile 2013-07-05 07:58:27 UTC
Created attachment 81002 [details]
Simple fix
Comment 5 jsc 2013-07-05 08:04:15 UTC
grant showstopper flag
Comment 6 Ariel Constenla-Haile 2013-07-06 04:00:38 UTC
Created attachment 81009 [details]
Simple fix
Comment 7 SVN Robot 2013-07-06 04:01:21 UTC
"arielch" committed SVN revision 1500198 into trunk:
i122678 - Workaround for dynamic cast runtime bug
Comment 8 Ariel Constenla-Haile 2013-07-06 04:02:13 UTC
Fixed on trunk
Comment 9 Michael Hood 2013-07-12 03:52:57 UTC
Works great in build AOO400m3(Build:9702)  -  Rev. 1501409 2013-07-10_04:09:18 - Rev. 1501642.

Thanks for fixing it so fast... :-)