Apache OpenOffice (AOO) Bugzilla – Issue 128034
FreeBSD crash on exit after running Python macro
Last modified: 2019-10-03 07:54:51 UTC
On the latest SVN trunk on FreeBSD, built with the internal Python (NOT the system-wide one), open a new writer document, type some text, select some of it, then run: Tools -> Macros -> Organize macros -> Python -> OpenOffice macros -> Capitalise -> capitalise Python Then attempt to exit. Crash and recovery.
Could be a regression from my commit 1853252 ("Port main/pyuno to gbuild"). Testing.
Occurs just prior to commit 1853252 too so it can't be regression from that commit.
The problem only occurs when debugging is enabled (Ctrl+Alt+Shift+D) and the messagebox prior to the crash gives an error: Error: Window::~Window: inconsistency in top window chain! From file main/vcl/source/window/window.cxx line 4769
Running under gdb: Program received signal SIGBUS, Bus error. 0x0000000805769182 in Window::~Window () at inputctx.hxx:59 59 void SetFont( const Font& rFont ) { maFont = rFont; } Current language: auto; currently c++ (gdb) bt #0 0x0000000805769182 in Window::~Window () at inputctx.hxx:59 #1 0x000000082716dea1 in SvxScriptOrgDialog::~SvxScriptOrgDialog () at Locale.hpp:20 #2 0x000000082716e045 in SvxScriptOrgDialog::~SvxScriptOrgDialog () at Locale.hpp:20 #3 0x0000000805775c71 in vcl::LazyDeletor<Window>::~LazyDeletor () at /openoffice-git/main/vcl/source/window/winproc.cxx:78 #4 0x0000000805775d0d in vcl::LazyDeletor<Window>::~LazyDeletor () at /openoffice-git/main/vcl/source/window/winproc.cxx:78 #5 0x00000008056e991b in vcl::LazyDelete::flush () at /openoffice-git/main/vcl/source/helper/lazydelete.cxx:60 #6 0x000000080554da5b in ImplYield () at decoview.hxx:91 #7 0x000000080554b01d in Application::Execute () at new:236 #8 0x0000000800e68ac6 in desktop::Desktop::Main (this=0x7fffffffafc8) at app.cxx:2232 #9 0x0000000805550b87 in ImplSVMain () at /openoffice-git/main/vcl/source/app/svmain.cxx:196 #10 0x0000000805551739 in SVMain () at /openoffice-git/main/vcl/source/app/svmain.cxx:237 #11 0x0000000800eb1b88 in soffice_main () at sofficemain.cxx:45 #12 0x00000000004011b9 in sal_main () at main.c:31 #13 0x0000000000401197 in main (argc=1, argv=0x7fffffffb0b0) at main.c:30