Mailinglist Archive: opensuse-bugs (15136 mails)

< Previous Next >
[Bug 328496] New: using the FunctionAccess service causes a core
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 26 Sep 2007 06:09:01 -0600 (MDT)
  • Message-id: <bug-328496-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=328496

           Summary: using the FunctionAccess service causes a core
           Product: openSUSE 10.3
           Version: Beta 2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: OpenOffice.org
        AssignedTo: eward@xxxxxxxxxx
        ReportedBy: nopower@xxxxxxxxxx
         QAContact: qa@xxxxxxx
                CC: pmladek@xxxxxxxxxx
          Found By: Development


Trying to use any calc functions via the uno FunctionAccess service results in
a core

The most immediate observeable affect of this is usage of the infamous showcase
demo for vba the hypocycloid.xls causes the system to core, clearly this is not
a message we want to be sending out when asking people to try our new features.

a simple example of an OpenOffice macro  that demonstrates the core is ...

sub functionaccess
  xFuncAcc = createUnoService("com.sun.star.sheet.FunctionAccess")
  dim aArgs(1)
  aData = Array( 1.0, 2.0, 3.0 )
  aArgs(0) = aData
  aArgs(1) = 2.0
  aResult = xFuncAcc.callFunction("ZTEST", aArgs)
end sub

The root cause is 

#0  0xb17f8651 in ScCompiler::OpCodeMap::putExternalSoftly (this=0x0,
rSymbol=@0xbffc9488, rAddIn=@0x8966038) at
/data4/sles/latestbuild/ooo-build/build/oog680-m5/sc/source/core/tool/compiler.cxx:570
#1  0xb17f87c4 in ScCompiler::fillFromAddInCollectionEnglishName
(xMap=@0xbffc94e8) at
/data4/sles/latestbuild/ooo-build/build/oog680-m5/sc/source/core/tool/compiler.cxx:293
#2  0xb17fa43c in ScCompiler::InitSymbolsEnglish () at
/data4/sles/latestbuild/ooo-build/build/oog680-m5/sc/source/core/tool/compiler.cxx:327
#3  0xb1696dfa in ScFunctionAccess::callFunction () at
/usr/include/c++/4.1.2/new:-1

basically an initialised pointer is used.

a simple fix is located here
http://svn.gnome.org/viewcvs/ooo-build/trunk/patches/src680/sc-compiler-functionaccess.diff?view=log


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >