[Libreoffice-bugs] [Bug 124168] Crash when inserting table of content

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 20 17:33:59 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124168

--- Comment #5 from Tor Lillqvist <tml at iki.fi> ---
... and when I reproduce exactly, I get a crash then, too, and the top slots in
the stack are the same ones, related to BASIC. (Actually I don't remember
exactly how much of BASIC functionality we do compile and include in the iOS
app. Clearly we do get something as those Sbx* things show up in the stack
trace; they are from the basic/source/sbx directory. (The reason we in general
have avoided building BASIC, Python, and other potential macro/scripting
functionality for iOS is because iOS apps for the App Store are not allowed to
be "programmable" according to Apple's rules. At least something like that used
to be mentioned, but now when I look at
https://developer.apple.com/app-store/review/guidelines/ , I don't actually see
it?)

Anyway, the stack trace from the crash corresponding to Nicolas's reproduction
instruction is:

> #0	0x0000000103ee082c in std::__1::unique_ptr<BasicDLL::Impl, std::__1::default_delete<BasicDLL::Impl> >::operator->() const [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2567
> #1	0x0000000103ee082c in GetSbxData_Impl() at /Volumes/TML13/lo/ios-optimised-cp-6.0/basic/source/runtime/basrdll.cxx:109
> #2	0x0000000103ee5660 in SbxBase::GetError() at /Volumes/TML13/lo/ios-optimised-cp-6.0/basic/source/sbx/sbxbase.cxx:99
> #3	0x0000000103ef04cc in SbxValue::Put(SbxValues const&) at /Volumes/TML13/lo/ios-optimised-cp-6.0/basic/source/sbx/sbxvalue.cxx:425
> #4	0x0000000103ef1790 in SbxValue::PutLong(int) at /Volumes/TML13/lo/ios-optimised-cp-6.0/basic/source/sbx/sbxvalue.cxx:652
> #5	0x000000010809ab98 in SwSbxValue::SwSbxValue(long) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/inc/calc.hxx:107
> #6	0x0000000107390440 in SwCalc::SwCalc(SwDoc&) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/core/bastyp/calc.cxx:230
> #7	0x00000001073912b8 in SwCalc::SwCalc(SwDoc&) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/core/bastyp/calc.cxx:240
> #8	0x000000010756d974 in sw::DocumentFieldsManager::UpdateExpFields(SwTextField*, bool) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/core/doc/DocumentFieldsManager.cxx:893
> #9	0x0000000107e483ec in SwViewShell::CalcLayout() at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/core/view/viewsh.cxx:1012
> #10	0x0000000107721610 in SwEditShell::CalcLayout() at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/core/edit/edws.cxx:112
> #11	0x000000010771d5cc in SwEditShell::InsertTableOf(SwTOXBase const&, SfxItemSet const*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/core/edit/edtox.cxx:144
> #12	0x00000001083c9214 in SwWrtShell::InsertTableOf(SwTOXBase const&, SfxItemSet const*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/uibase/wrtsh/wrtsh2.cxx:332
> #13	0x00000001081a4e04 in SwTOXMgr::UpdateOrInsertTOX(SwTOXDescription const&, SwTOXBase**, SfxItemSet const*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/uibase/index/toxmgr.cxx:429
> #14	0x000000010850f8e0 in SwMultiTOXTabDialog::Ok() at /Volumes/TML13/lo/ios-optimised-cp-6.0/sw/source/ui/index/cnttab.cxx:388
> #15	0x0000000105fd652c in SfxTabDialog::OkHdl(Button*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sfx2/source/dialog/tabdlg.cxx:866
> #16	0x0000000105fd3478 in SfxTabDialog::LinkStubOkHdl(void*, Button*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sfx2/source/dialog/tabdlg.cxx:852
> #17	0x0000000108c23330 in Link<Button*, void>::Call(Button*) const at /Volumes/TML13/lo/ios-optimised-cp-6.0/include/tools/link.hxx:84
> #18	0x0000000108c232e8 in Button::Click()::$_0::operator()() const at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/control/button.cxx:125
> #19	0x0000000108c232b0 in decltype(std::__1::forward<Button::Click()::$_0&>(fp)(std::__1::forward<>(fp0))) std::__1::__invoke<Button::Click()::$_0&>(Button::Click()::$_0&&&) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:4428
> #20	0x0000000108c232a0 in void std::__1::__invoke_void_return_wrapper<void>::__call<Button::Click()::$_0&>(Button::Click()::$_0&&&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__functional_base:349
> #21	0x0000000108c23130 in std::__1::__function::__func<Button::Click()::$_0, std::__1::allocator<Button::Click()::$_0>, void ()>::operator()() at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1562
> #22	0x000000010240530c in std::__1::function<void ()>::operator()() const at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:1913
> #23	0x0000000108c365bc in Control::ImplCallEventListenersAndHandler(VclEventId, std::__1::function<void ()> const&) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/control/ctrl.cxx:314
> #24	0x0000000108c03d6c in Button::Click() at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/control/button.cxx:125
> #25	0x0000000108c0d388 in OKButton::Click() at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/control/button.cxx:1731
> #26	0x0000000108c0aa70 in PushButton::Tracking(TrackingEvent const&) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/control/button.cxx:1251
> #27	0x0000000108bbc5ec in vcl::Window::EndTracking(TrackingEventFlags) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/window/window2.cxx:372
> #28	0x0000000108bf21d0 in ImplHandleMouseEvent(VclPtr<vcl::Window> const&, MouseNotifyEvent, bool, long, long, unsigned long, unsigned short, MouseEventModifiers) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/window/winproc.cxx:705
> #29	0x0000000108bf6214 in ImplHandleSalMouseButtonUp(vcl::Window*, SalMouseEvent const*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/window/winproc.cxx:1994
> #30	0x0000000108bf520c in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/window/winproc.cxx:2342
> #31	0x0000000109066630 in Application::PostEventHandler(Application*, void*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/svapp.cxx:953
> #32	0x0000000109065e80 in Application::LinkStubPostEventHandler(void*, void*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/svapp.cxx:911
> #33	0x0000000105f472e0 in Link<void*, void>::Call(void*) const at /Volumes/TML13/lo/ios-optimised-cp-6.0/include/tools/link.hxx:84
> #34	0x0000000108bf81a0 in ImplHandleUserEvent(ImplSVEvent*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/window/winproc.cxx:1928
> #35	0x0000000108bf57b8 in ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/window/winproc.cxx:2478
> #36	0x0000000109152e24 in SalFrame::CallCallback(SalEvent, void const*) const at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/inc/salframe.hxx:275
> #37	0x00000001091582b4 in AquaSalInstance::ProcessEvent(SalUserEventList::SalUserEvent) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/headless/svpinst.cxx:276
> #38	0x0000000109033d74 in SalUserEventList::DispatchUserEvents(bool) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/salusereventlist.cxx:109
> #39	0x0000000109158e88 in AquaSalInstance::DoYield(bool, bool) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/headless/svpinst.cxx:413
> #40	0x0000000109062e40 in ImplYield(bool, bool) at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/svapp.cxx:469
> #41	0x00000001090629ac in Application::Yield() at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/svapp.cxx:534
> #42	0x0000000109062928 in Application::Execute() at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/svapp.cxx:449
> #43	0x000000010635c444 in desktop::Desktop::Main() at /Volumes/TML13/lo/ios-optimised-cp-6.0/desktop/source/app/app.cxx:1642
> #44	0x0000000109073768 in ImplSVMain() at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/svmain.cxx:281
> #45	0x00000001090760a8 in SVMain() at /Volumes/TML13/lo/ios-optimised-cp-6.0/vcl/source/app/svmain.cxx:319
> #46	0x000000010637cff4 in ::soffice_main() at /Volumes/TML13/lo/ios-optimised-cp-6.0/desktop/source/app/sofficemain.cxx:167
> #47	0x00000001063dbe30 in lo_startmain(void*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/desktop/source/lib/init.cxx:4371
> #48	0x00000001088924ac in osl_thread_start_Impl(void*) at /Volumes/TML13/lo/ios-optimised-cp-6.0/sal/osl/unx/thread.cxx:234
> #49	0x0000000195a5025c in _pthread_body ()
> #50	0x0000000195a501bc in _pthread_start ()
> #51	0x0000000195a53cf4 in thread_start ()

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190320/a776dc75/attachment-0001.html>


More information about the Libreoffice-bugs mailing list