[Libreoffice-bugs] [Bug 127205] Crash when terminating the StarDesktop from running a document macro

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 28 16:00:29 UTC 2019


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

--- Comment #1 from Jan-Marek Glogowski <glogow at fbihome.de> ---
Created attachment 153714
  --> https://bugs.documentfoundation.org/attachment.cgi?id=153714&action=edit
Crashes LO on load, if macros are enabled!

The whole macro code is:

Sub Main
    MsgBox "Lets close LO"
    StarDesktop.terminate
End Sub

Resulting backtrace:

Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007ffff6ca4055 in SbxValue::Put (this=this at entry=0x55555bfd2240, rVal=...)
at /home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxvalue.cxx:415
415         ErrCode eOld = GetError();
(gdb) bt
#0  0x00007ffff6ca4055 in SbxValue::Put (this=this at entry=0x55555bfd2240,
rVal=...) at
/home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxvalue.cxx:415
#1  0x00007ffff6ca5656 in SbxValue::PutBool (this=this at entry=0x55555bfd2240,
b=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxvalue.cxx:571
#2  0x00007ffff6be99e9 in unoToSbxValue (pVar=pVar at entry=0x55555bfd2240,
aValue=...) at
/home/jmg/Development/libreoffice/symbols/basic/source/classes/sbunoobj.cxx:793
#3  0x00007ffff6bf2fee in SbUnoObject::Notify (this=<optimized out>, rBC=...,
rHint=...) at
/home/jmg/Development/libreoffice/symbols/basic/source/classes/sbunoobj.cxx:2228
#4  0x00007ffff6320205 in SfxBroadcaster::Broadcast
(this=this at entry=0x55555bfd7ac0, rHint=...) at
/home/jmg/Development/libreoffice/symbols/svl/source/notify/SfxBroadcaster.cxx:49
#5  0x00007ffff6ca7485 in SbxVariable::Broadcast (this=0x55555bfd2240,
nHintId=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxvar.cxx:183
#6  0x00007ffff6ca29f2 in SbxValue::SbxValue (this=0x55555bfd2330,
__vtt_parm=0x7ffff6d37ee0 <VTT for SbxMethod+16>, r=..., __in_chrg=<optimized
out>)
    at
/home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxvalue.cxx:64
#7  0x00007ffff6ca7773 in SbxVariable::SbxVariable (this=0x55555bfd2330,
__vtt_parm=0x7ffff6d37ed8 <VTT for SbxMethod+8>, r=..., __in_chrg=<optimized
out>)
    at /home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxvar.cxx:69
#8  0x00007ffff6c9bd48 in SbxMethod::SbxMethod (this=0x55555bfd2330, r=...,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxobj.cxx:840
#9  0x00007ffff6c640db in SbiRuntime::FindElement
(this=this at entry=0x55555bfc6070, pObj=<optimized out>, nOp1=<optimized out>,
nOp1 at entry=5, nOp2=nOp2 at entry=12, nNotFound=..., nNotFound at entry=..., 
    bLocal=bLocal at entry=false, bStatic=false) at
/home/jmg/Development/libreoffice/symbols/basic/source/runtime/runtime.cxx:3506
#10 0x00007ffff6c64ccd in SbiRuntime::StepELEM (this=<optimized out>, nOp1=5,
nOp2=12) at
/home/jmg/Development/libreoffice/symbols/basic/source/runtime/runtime.cxx:3981
#11 0x00007ffff6c5aef1 in SbiRuntime::Step (this=this at entry=0x55555bfc6070) at
/home/jmg/Development/libreoffice/symbols/basic/source/runtime/runtime.cxx:777
#12 0x00007ffff6c089e8 in SbModule::Run (this=this at entry=0x55555a512760,
pMeth=pMeth at entry=0x55555bfc7250) at
/home/jmg/Development/libreoffice/symbols/basic/source/classes/sbxmod.cxx:1110
#13 0x00007ffff6c0962c in SbModule::Notify (this=0x55555a512760, rBC=...,
rHint=...) at
/home/jmg/Development/libreoffice/symbols/basic/source/classes/sbxmod.cxx:776
#14 0x00007ffff6320205 in SfxBroadcaster::Broadcast
(this=this at entry=0x55555c023670, rHint=...) at
/home/jmg/Development/libreoffice/symbols/svl/source/notify/SfxBroadcaster.cxx:49
#15 0x00007ffff6c049a4 in SbMethod::Broadcast (this=0x55555c036920,
nHintId=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/basic/source/classes/sbxmod.cxx:2070
#16 0x00007ffff6ca300e in SbxValue::Get (this=this at entry=0x55555c036920,
rRes=...) at
/home/jmg/Development/libreoffice/symbols/basic/source/sbx/sbxvalue.cxx:286
#17 0x00007ffff6c021a8 in SbMethod::Call (this=0x55555c036920,
pRet=pRet at entry=0x55555bfc71c0, pCaller=pCaller at entry=0x0) at
/home/jmg/Development/libreoffice/symbols/basic/source/classes/sbxmod.cxx:2026
#18 0x00007fffd8d3ed9c in basprov::BasicScriptImpl::invoke
(this=0x55555c04c840, aParams=..., aOutParamIndex=..., aOutParam=...)
    at
/home/jmg/Development/libreoffice/symbols/scripting/source/basprov/basscript.cxx:234
#19 0x00007fffddf8dec8 in
scripting_protocolhandler::ScriptProtocolHandler::dispatchWithNotification
(this=0x55555a4e6a20, aURL=..., lArgs=..., xListener=...)
    at
/home/jmg/Development/libreoffice/symbols/scripting/source/protocolhandler/scripthandler.cxx:215
#20 0x00007fffddf8b989 in
scripting_protocolhandler::ScriptProtocolHandler::dispatch (this=<optimized
out>, aURL=..., lArgs=...)
    at
/home/jmg/Development/libreoffice/symbols/scripting/source/protocolhandler/scripthandler.cxx:299
#21 0x00007ffff685c38c in SfxEvents_Impl::Execute (aEventData=...,
aTrigger=..., pDoc=<optimized out>, pDoc at entry=0x555559fe7910)
    at
/home/jmg/Development/libreoffice/symbols/sfx2/source/notify/eventsupplier.cxx:267
#22 0x00007ffff685d0c9 in SfxEvents_Impl::notifyEvent (this=<optimized out>,
aEvent=...) at
/home/jmg/Development/libreoffice/symbols/sfx2/source/notify/eventsupplier.cxx:292
#23 0x00007ffff681db09 in (anonymous
namespace)::NotifySingleListenerIgnoreRE<com::sun::star::document::XEventListener,
com::sun::star::document::EventObject>::operator() (
    listener=<error reading variable: Dwarf Error: Cannot find DIE at 0x0
referenced in module
/home/jmg/Development/libreoffice/symbols/instdir/program/libsfxlo.so>,
this=<optimized out>)
    at
/home/jmg/Development/libreoffice/symbols/sfx2/source/doc/sfxbasemodel.cxx:3097
#24
cppu::OInterfaceContainerHelper::forEach<com::sun::star::document::XEventListener,
(anonymous
namespace)::NotifySingleListenerIgnoreRE<com::sun::star::document::XEventListener,
com::sun::star::document::EventObject> > (func=..., this=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/include/cppuhelper/interfacecontainer.h:288
#25 SfxBaseModel::postEvent_Impl (this=this at entry=0x55555a1e6a50, aName=...,
xController=...) at
/home/jmg/Development/libreoffice/symbols/sfx2/source/doc/sfxbasemodel.cxx:3144
#26 0x00007ffff681dec2 in SfxBaseModel::Notify (this=0x55555a1e6a50, rBC=...,
rHint=...) at
/home/jmg/Development/libreoffice/symbols/sfx2/source/doc/sfxbasemodel.cxx:2780
#27 0x00007ffff6320205 in SfxBroadcaster::Broadcast
(this=this at entry=0x555559fe7910, rHint=...) at
/home/jmg/Development/libreoffice/symbols/svl/source/notify/SfxBroadcaster.cxx:49
#28 0x00007ffff659bbdd in SfxEventAsyncer_Impl::IdleHdl (this=0x55555bf321b0,
pAsyncIdle=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/sfx2/source/appl/appcfg.cxx:123
#29 0x00007ffff416c3be in Scheduler::ProcessTaskScheduling () at
/home/jmg/Development/libreoffice/symbols/vcl/source/app/scheduler.cxx:480
#30 0x00007fffea50ba5a in SalTimer::CallCallback (this=0x5555568e7560) at
/home/jmg/Development/libreoffice/symbols/vcl/inc/saltimer.hxx:54
#31 Qt5Timer::timeoutActivated (this=0x5555568e7550) at
/home/jmg/Development/libreoffice/symbols/vcl/qt5/Qt5Timer.cxx:41
#32 0x00007fffea50bb55 in Qt5Timer::qt_static_metacall (_o=<optimized out>,
_id=<optimized out>, _a=<optimized out>, _c=<optimized out>)
    at
/home/jmg/Development/libreoffice/symbols/workdir/CustomTarget/vcl/qt5/Qt5Timer.moc:90
#33 0x00007fffeb5a7906 in QMetaObject::activate(QObject*, int, int, void**) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fffeb5b34b7 in QTimer::timeout(QTimer::QPrivateSignal) () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007fffeb5a813b in QObject::event(QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007fffea8914b1 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007fffea898950 in QApplication::notify(QObject*, QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007fffeb57e5a9 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007fffeb5cec78 in QTimerInfoList::activateTimers() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007fffeb5cf4d4 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#41 0x00007fffeeafef2e in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007fffeeaff1c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007fffeeaff25c in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007fffeb5cf8e4 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007fffe89383e1 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#46 0x00007fffea502ae3 in Qt5Instance::ImplYield
(this=this at entry=0x5555556ec770, bWait=bWait at entry=true,
bHandleAllCurrentEvents=bHandleAllCurrentEvents at entry=false)
    at /home/jmg/Development/libreoffice/symbols/vcl/qt5/Qt5Instance.cxx:354
#47 0x00007fffea502cd6 in Qt5Instance::DoYield (this=0x5555556ec770,
bWait=<optimized out>, bHandleAllCurrentEvents=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/vcl/qt5/Qt5Instance.cxx:365
#48 0x00007ffff417bf72 in ImplYield (i_bWait=i_bWait at entry=true,
i_bAllEvents=i_bAllEvents at entry=false) at
/home/jmg/Development/libreoffice/symbols/vcl/source/app/svapp.cxx:447
#49 0x00007ffff417c65c in Application::Yield () at
/home/jmg/Development/libreoffice/symbols/vcl/source/app/svapp.cxx:511
#50 0x00007ffff417df85 in Application::Execute () at
/home/jmg/Development/libreoffice/symbols/vcl/source/app/svapp.cxx:428
#51 0x00007ffff7e7e514 in desktop::Desktop::Main (this=0x7fffffff2160) at
/home/jmg/Development/libreoffice/symbols/desktop/source/app/app.cxx:1620
#52 0x00007ffff41855c6 in ImplSVMain () at
/home/jmg/Development/libreoffice/symbols/vcl/source/app/svmain.cxx:191
#53 0x00007ffff4185745 in SVMain () at
/home/jmg/Development/libreoffice/symbols/vcl/source/app/svmain.cxx:225
#54 0x00007ffff7eaf4ed in soffice_main () at
/home/jmg/Development/libreoffice/symbols/desktop/source/app/sofficemain.cxx:170
#55 0x000055555555477b in sal_main () at
/home/jmg/Development/libreoffice/symbols/desktop/source/app/main.c:48
#56 main (argc=<optimized out>, argv=<optimized out>) at
/home/jmg/Development/libreoffice/symbols/desktop/source/app/main.c:47

-- 
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/20190828/0d529996/attachment.html>


More information about the Libreoffice-bugs mailing list