Apache OpenOffice (AOO) Bugzilla – Issue 111524
chart2: TickmarkHelper::getMaxTickCount gets Inf interval count
Last modified: 2013-02-24 21:22:16 UTC
In a calc document with a generated chart (https://bugzilla.redhat.com/show_bug.cgi?id=590524) OOo crashes with a stack like below. The initial problem is that the chart data contains some infinite values and in TickmarkHelper::getMaxTickCount the approxSub returns an Inf which gives a spurious massive negative nIntervalCount which causes all sorts of havoc later on #0 osl_decrementInterlockedCount (pCount=0x0) at interlck.c:85 #1 0x000000300040bf5b in ?? () from /usr/lib64/openoffice.org3/program/../basis-link/ure-link/lib/libuno_cppu.so.3 #2 0x00000030004109f1 in ?? () from /usr/lib64/openoffice.org3/program/../basis-link/ure-link/lib/libuno_cppu.so.3 #3 0x000000300040c2a0 in uno_type_destructData () from /usr/lib64/openoffice.org3/program/../basis-link/ure-link/lib/libuno_cppu.so.3 #4 0x00007f157e151ae4 in ~Sequence (this=<value optimized out>, rAllTickInfos=std::vector of length 0, capacity 0) at /root/rpmbuild/BUILD/OOO320_m17/solver/320/unxlngx6.pro/inc/com/sun/star/uno/Sequence.hxx:117 #5 chart::TickmarkHelper::getAllTicks (this=<value optimized out>, rAllTickInfos=std::vector of length 0, capacity 0) at /root/rpmbuild/BUILD/OOO320_m17/chart2/source/view/axes/TickmarkHelper.cxx:636 #6 0x00007f157e14e06a in chart::VAxisBase::prepareShapeCreation (this=0x44fa5f0) at /root/rpmbuild/BUILD/OOO320_m17/chart2/source/view/axes/VAxisBase.cxx:172 #7 0x00007f157e15df78 in chart::VCartesianAxis::createMaximumLabels (this=0x44fa5f0) at /root/rpmbuild/BUILD/OOO320_m17/chart2/source/view/axes/VCartesianAxis.cxx:1147 #8 0x00007f157e16bfc1 in chart::VCoordinateSystem::createMaximumAxesLabels (this=0x4723ab0) at /root/rpmbuild/BUILD/OOO320_m17/chart2/source/view/axes/VCoordinateSystem.cxx:473 #9 0x00007f157e1e1542 in chart::ChartView::impl_createDiagramAndContent (this=0x4370ed0, rSeriesPlotterContainer=..., xDiagramPlusAxes_Shapes=..., rAvailablePos=..., rAvailableSize=..., rPageSize=...) at /root/rpmbuild/BUILD/OOO320_m17/chart2/source/view/main/ChartView.cxx:1414 #10 0x00007f157e1e87cd in chart::ChartView::createShapes (this=0x4370ed0)
Created attachment 69405 [details] avoid crash
Applied the patch in CWS chart47. Thanks!
Created attachment 69423 [details] create a chart from the values -> crash
@Thomas, please verify in CWS chart47.
Seen ok in cws chart 47 -> verified
closing, integrated m83