[Libreoffice-bugs] [Bug 116003] Crash when asking subtotals on 2 groups with pre-sort area checked

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Mar 1 22:27:55 UTC 2018


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

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serval2412 at yahoo.fr

--- Comment #3 from Julien Nabet <serval2412 at yahoo.fr> ---
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Here are some gdb traces:
(gdb) frame 0
#0  0x00007fffc78c11ec in ScTable::DoSubTotals (this=0x555557a1bf50,
rParam=...) at /home/julien/lo/libreoffice/sc/source/core/data/table3.cxx:2215
2215                    label +=
ScGlobal::GetRscString(lcl_GetSubTotalStrId(eResFunc[0]));
(gdb) p rParam
$1 = (ScSubTotalParam &) @0x7fffffff1320: {nCol1 = 0, nRow1 = 0, nCol2 = 6,
nRow2 = 35, nUserIndex = 0, bRemoveOnly = false, bReplace = true, bPagebreak =
false, 
  bCaseSens = false, bDoSort = true, bAscending = true, bUserDef = false,
bIncludePattern = false, bGroupActive = {true, true, false}, nField = {6, 0,
0}, nSubTotals = {0, 1, 
    0}, pSubTotals = {0x0, 0x555557b4acc0, 0x0}, pFunctions = {0x0,
0x55555cad1290, 0x0}}
(gdb) p eResFunc
$2 = (ScSubTotalFunc *) 0x0
(gdb) p rParam.pFunctions
$3 = {0x0, 0x55555cad1290, 0x0}
(gdb) p rParam.pFunctions[1]
$4 = (ScSubTotalFunc *) 0x55555cad1290
(gdb) p *rParam.pFunctions[1]
$5 = SUBTOTAL_FUNC_SUM
(gdb) p aRowEntry
$6 = {nGroupNo = 0, nSubStartRow = 1, nDestRow = 44, nFuncStart = 1, nFuncEnd =
42}
(gdb) p aRowVector
$7 = std::__debug::vector of length 9, capacity 16 = {{nGroupNo = 1,
nSubStartRow = 1, nDestRow = 7, nFuncStart = 1, nFuncEnd = 6}, {nGroupNo = 1,
nSubStartRow = 8, 
    nDestRow = 17, nFuncStart = 8, nFuncEnd = 16}, {nGroupNo = 1, nSubStartRow
= 18, nDestRow = 21, nFuncStart = 18, nFuncEnd = 20}, {nGroupNo = 1,
nSubStartRow = 22, 
    nDestRow = 25, nFuncStart = 22, nFuncEnd = 24}, {nGroupNo = 1, nSubStartRow
= 26, nDestRow = 33, nFuncStart = 26, nFuncEnd = 32}, {nGroupNo = 1,
nSubStartRow = 34, 
    nDestRow = 40, nFuncStart = 34, nFuncEnd = 39}, {nGroupNo = 1, nSubStartRow
= 41, nDestRow = 42, nFuncStart = 41, nFuncEnd = 41}, {nGroupNo = 1,
nSubStartRow = 1, 
    nDestRow = 43, nFuncStart = 1, nFuncEnd = 41}, {nGroupNo = 0, nSubStartRow
= 1, nDestRow = 44, nFuncStart = 1, nFuncEnd = 42}}
(gdb) p nLevelCount
$8 = 2

-- 
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/20180301/806ea2dc/attachment.html>


More information about the Libreoffice-bugs mailing list