[Libreoffice-bugs] [Bug 109262] New: exception at app.cxx:2060

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 21 19:17:10 UTC 2017


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

            Bug ID: 109262
           Summary: exception at app.cxx:2060
           Product: LibreOffice
           Version: 6.0.0.0.alpha0+ Master
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: lo_bugs at iseries-guru.com

Created attachment 134775
  --> https://bugs.documentfoundation.org/attachment.cgi?id=134775&action=edit
example spreadsheet

STR
---

( 1) Set your macro security level (Tools > Options > LibreOfficeDev >
     Security > "Macro Security") to Medium.

( 2) Optionally download attached test3.ods to /tmp/ and skip ahead to
     step (10).

( 3) Create new empty spreadsheet.

( 4) Take menu options Tools > Macros > "Organize Macros" >
     "LibreOfficeDev Basic...".  Program presents window
     "LibreOfficeDev Macros".

( 5) In pane "Macro From", click "Untitled 1" and then click <New>.
     Program presents dialog "New Module" with default Name "Module 1".

( 6) In dialog "New Macro", click <OK>.  Program displays window
     "Untitled 1.Standard - LibreOfficeDev Basic 6.0".  In source pane
     observe line 3 "Sub Main" and line 5 "End Sub".

( 7) File > Close.  Program returns focus to window "Untitled 1 -
     LibreOfficeDev Calc 6.0".

( 8) Save the spreadsheet as /tmp/test3.ods.

( 9) Close LibreOffice.

(10) Run LibreOffice from the command line with parameters
     --script-cat /tmp/test3.ods

     Expected: I am not sure, as I have never actually seen output
               from this option.

     Observed:  Terminal output includes
                    UNO exception during client open: 
                    Application Error
                    Fatal exception: Signal 6
                followed by a stack trace.

Note that the behaviour of Writer is exactly parallel to Calc.

I observe this on debian-stretch with daily Linux dbgutil bibisect
repository version 2017-07-21 and in a local build of commit 4b7b93be
(2017-07-05).

Experimentation in gdb shows that the message comes from
desktop/source/app/app.cxx:2074; the try block starts at line 2045.  A
`step` command at line 2060 -- "OpenClients(); -- transfers control
directly to the catch block.  The exception then is

    $1 = (const com::sun::star::uno::Exception &) @0x555558c7d510:
        { Message = ""
        , Context = uno::Reference to
            (basic::SfxScriptLibrary *) 0x555558c7a9b0
        }

Funnily enough, an attempt to backtrace from the catch block displays
two stack frames, and then gdb pegs one CPU.

Further work in the daily dbgutil bibisect repository shows that the
exception entered LibreOffice at about the same time as parameter
--script-cat, somewhere in the day before commit

    2017-06-10: source-hash-076ed447f694239d5c67adee528ea6e471d909ff

-- 
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/20170721/b9514769/attachment.html>


More information about the Libreoffice-bugs mailing list