Issue 128034 - FreeBSD crash on exit after running Python macro
Summary: FreeBSD crash on exit after running Python macro
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 4.2.0-dev
Hardware: All FreeBSD
: P5 (lowest) Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2019-02-09 13:42 UTC by damjan
Modified: 2019-10-03 07:54 UTC (History)
0 users

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 damjan 2019-02-09 13:42:44 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.
Comment 1 damjan 2019-02-09 13:43:56 UTC
Could be a regression from my commit 1853252 ("Port main/pyuno to gbuild"). Testing.
Comment 2 damjan 2019-02-09 14:11:09 UTC
Occurs just prior to commit 1853252 too so it can't be regression from that commit.
Comment 3 damjan 2019-02-09 14:13:52 UTC
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
Comment 4 damjan 2019-02-09 14:16:33 UTC
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