We're using Valgrind to check memory leak.
When check the code which uses QCustomPlot, it reports a warning of "Invalid read of size 16".
The back trace is listed below.
Is it an issue? Thanks.

Stacktrace

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function qt_blend_argb32_on_argb32_ssse3(unsigned char*, int, unsigned char const*, int, int, int, int)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/painting/qdrawhelper_ssse3.cpp:151
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QRasterPaintEnginePrivate::drawImage(QPointF const&, QImage const&, void (*)(unsigned char*, int, unsigned char const*, int, int, int, int), QRect const&, int, QRect const&)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/painting/qpaintengine_raster.cpp:1013
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QRasterPaintEngine::drawImage(QPointF const&, QImage const&)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/painting/qpaintengine_raster.cpp:2121
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QRasterPaintEngine::drawPixmap(QPointF const&, QPixmap const&)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/painting/qpaintengine_raster.cpp:2006
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QPainter::drawPixmap(QPointF const&, QPixmap const&)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/painting/qpainter.cpp:5065
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCPAxisPainterPrivate::placeTickLabel(QCPPainter*, double, int, QString const&, QSize*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:6411
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCPAxisPainterPrivate::draw(QCPPainter*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:6199
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCPAxis::draw(QCPPainter*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:5831
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCustomPlot::draw(QCPPainter*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:10894
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCustomPlot::replot(QCustomPlot::RefreshPriority)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:10381
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCustomPlot::QCustomPlot(QWidget*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:9086
Code Source code not available

Object /var/lib/jenkins/jobs/4008A_Smoke_trunk/workspace/build/release/xm1app/unit_test/Xm1/unit_tests/CommonPlotViewStrategyCommonTest/CommonPlotViewStrategyCommonTest
Function fwidget::FPlotView::createPlotter(QWidget*)
File/Line /var/lib/jenkins/jobs/4008A_Smoke_trunk/workspace/Xm1/fwidget/FPlotView/FPlotView.cpp:348
Code
338 + "\n Time-Axis markerLabels: " + timeMarkLabels_.toList().join(","));
339
340
341 }
342 }
343
344 void FPlotView::createPlotter(QWidget * const theParent)
345 {
346 viewLayout_ = new QVBoxLayout(this);
347 this->setLayout(viewLayout_);
348 plotter_ = new QCustomPlot(theParent);
349 viewLayout_->addWidget(plotter_);
350 viewLayout_->setContentsMargins(0,0,0,-5);
351 plotter_->setAntialiasedElements(QCP::aeAll);
352
353 //Define for X-axis

Auxiliary Details

Address 0x5bdfa70 is 8 bytes before a block of size 512 alloc'd

Object /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so
Function malloc
File/Line /mnt/valgrind-3.10.0/coregrind/m_replacemalloc/vg_replace_malloc.c:296
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QImageData::create(QSize const&, QImage::Format, int)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/image/qimage.cpp:160
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QImage::QImage(int, int, QImage::Format)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/image/qimage.cpp:776
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QRasterPlatformPixmap::resize(int, int)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/image/qpixmap_raster.cpp:98
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QPlatformPixmap::create(int, int, QPlatformPixmap::PixelType)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/image/qplatformpixmap.cpp:56
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QPixmap::doInit(int, int, int)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/image/qpixmap.cpp:89
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libQt5Gui.so.5.6.0
Function QPixmap::QPixmap(QSize const&)
File/Line /usr/src/debug/qtbase/5.6.0-r0/qtbase-opensource-src-5.6.0/src/gui/image/qpixmap.cpp:146
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCPAxisPainterPrivate::placeTickLabel(QCPPainter*, double, int, QString const&, QSize*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:6394
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCPAxisPainterPrivate::draw(QCPPainter*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:6199
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCPAxis::draw(QCPPainter*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:5831
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCustomPlot::draw(QCPPainter*)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:10894
Code Source code not available

Object /opt/windriver/sdk-7.0-host/sysroots/core2-32-wrs-linux/usr/lib/libqcustomplot.so.1.3.2
Function QCustomPlot::replot(QCustomPlot::RefreshPriority)
File/Line /usr/src/debug/qcustomplot/1_1.3.2-r0/build/../qcustomplot-source/qcustomplot.cpp:10381
Code Source code not available