Created attachment 74211 [details] small test table and pivottable, and function GETPIVOTDATA used. Check the attachment. If I set the subtotals for a data field to 'automatic', Calc crashes. When I remove the GETPIVOTDATA function, I can make the change without problems.
Comment on attachment 74211 [details] small test table and pivottable, and function GETPIVOTDATA used. mimetype fixed
Created attachment 74382 [details] bt + console logs on master On pc Debian x86-64 with master sources updated today, I reproduced the crash. I attached console logs + bt
Kohei/Markus/Eike: bt with symbols attached, one for you?
Interesting. Crash happens *only when* the subtotal is set to autmatic? Hmm...
I'll take a look.
It's the "empty line after each item" option set for the "type" field that's causing grief. Uncheck that, and the crash will go away.
Well, I really don't like the way GETPIVOTDATA is calculated currently. We actually parse the actual table output to come up with the final value, which is susceptible to layout changes (like this bug report suggests). IMO It would be much better to use the calculation result already computed and stored by the pivot engine somehow, which is independent of how the result is presented on the sheet.
Eike Rathke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=8bd3be9915ff28458d010fc8f0a1a1ab66d730b0 prevent vector and sequence out of bounds access, fdo#60300 The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Eike Rathke committed a patch related to this issue. It has been pushed to "libreoffice-3-6": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0ac18f7d54f22c0c0d40cc4b1cfe6059ef0b56c5&h=libreoffice-3-6 prevent vector and sequence out of bounds access, fdo#60300 It will be available in LibreOffice 3.6.7. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Eike Rathke committed a patch related to this issue. It has been pushed to "libreoffice-4-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=e58a8b6d7dc1b01af9f54bec8fdce718b1d8bccd&h=libreoffice-4-0 prevent vector and sequence out of bounds access, fdo#60300 It will be available in LibreOffice 4.0.3. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Just merged the feature branch to master. The new code calculates GETPIVOTDATA from the pivot result tree instead of from the pivot table output.
Kohei Yoshida committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=ac569ed4cf5064248b9952f182f6572f20dc9bcb fdo#60300: Work-in-progress change to rework pivot table core. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.