[Libreoffice-bugs] [Bug 40701] Base crashes with runtime error when "Find Record" button is clicked with certain documents

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 9 23:06:40 CEST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=40701

--- Comment #15 from Lionel Elie Mamane <lionel at mamane.lu> 2011-09-09 14:06:40 PDT ---
Reproduced on GNU/Linux amd64.

This failed assertion looks relevant:

Error: FmXFormShell::OnSearchContextRequest : impossible : have more view than
model columns ! From File
/home/master/src/libreoffice/libreoffice-3.4/svx/source/form/fmshimp.cxx at
Line 2491

Log of FmXGridPeer::getByIndex calls:

FmXGridPeer::getByIndex (this=0x250efa0, _nIndex=0)
FmXGridPeer::getByIndex (this=0x250efa0, _nIndex=1)
Error: FmXFormShell::OnSearchContextRequest : impossible : have more view than
model columns ! From File
/home/master/src/libreoffice/libreoffice-3.4/svx/source/form/fmshimp.cxx at
Line 2491
FmXGridPeer::getByIndex (this=0x2594660, _nIndex=0)
and in this call, we get the error.

Backtrace of that last call:

#0  FmXGridPeer::getByIndex (this=0x2594660, _nIndex=0) at
/home/master/src/libreoffice/libreoffice-3.4/svx/source/fmcomp/fmgridif.cxx:2434
#1  0x00007fffd8bb3759 in FmXFormShell::OnSearchContextRequest (this=0x2464720,
pfmscContextInfo=0x7fffffff9280)
    at
/home/master/src/libreoffice/libreoffice-3.4/svx/source/form/fmshimp.cxx:2496
#2  0x00007fffd8bad6e0 in FmXFormShell::ExecuteSearch (this=0x2464720) at
/home/master/src/libreoffice/libreoffice-3.4/svx/source/form/fmshimp.cxx:1552
#3  0x00007fffd8b9ff9e in FmFormShell::Execute (this=0x24637b8, rReq=...)
    at
/home/master/src/libreoffice/libreoffice-3.4/svx/source/form/fmshell.cxx:727
#4  0x00007fffd8b9e28a in SfxStubFmFormShellExecute (pShell=0x24637b8,
rReq=...)
    at
/home/master/src/libreoffice/libreoffice-3.4/solver/340/unxlngx6/workdir/SdiTarget/svx/sdi/svxslots.hxx:290


Error is:

- nId is set to 0
- pGrid->GetModelColumnPos(nId) returns GRID_COLUMN_NOT_FOUND, that is 65535
- next line uses it unconditionally without error checking (without checking
whether it is GRID_COLUM_NOT_FOUND)

That's easy enough to fix, but the root cause is probably higher up...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list