This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
libXcursor + -finline-functions: Invalid read of size 4
- From: William Brana <wbrana at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 8 Aug 2014 13:15:54 +0200
- Subject: libXcursor + -finline-functions: Invalid read of size 4
- Authentication-results: sourceware.org; auth=none
Hello,
I'm getting warnings like following from valgrind when libXcursor is
compiled with -O2 -finline-functions and gcc 4.8.3 or 4.7.4, but not
with -O2.
Is it miscompiled or false positive?
Invalid read of size 4
at 0x8928F8F: XcursorScanTheme.part.0 (in /usr/lib64/libXcursor.so.1.0.2)
by 0x892977C: XcursorLibraryLoadImages (in /usr/lib64/libXcursor.so.1.0.2)
by 0x89298F0: XcursorLibraryLoadCursor (in /usr/lib64/libXcursor.so.1.0.2)
by 0x50A4EFF: QCursorData::update() (in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50A5676: QCursor::handle() const (in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50B38C0: qt_x11_enforce_cursor(QWidget*) (in
/usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50B9507: QWidgetPrivate::create_sys(unsigned long, bool, bool)
(in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x505D607: QWidget::create(unsigned long, bool, bool) (in
/usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50A0952: setupOwner() (in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50A0C89: QClipboard::QClipboard(QObject*) (in
/usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x5000373: QApplication::clipboard() (in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x52B97B4: QTextControl::canPaste() const (in
/usr/lib64/qt4/libQtGui.so.4.8.5)
Address 0xc6ba8e0 is 16 bytes inside a block of size 19 alloc'd
at 0x4C2984F: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x8928D7A: XcursorScanTheme.part.0 (in /usr/lib64/libXcursor.so.1.0.2)
by 0x892977C: XcursorLibraryLoadImages (in /usr/lib64/libXcursor.so.1.0.2)
by 0x89298F0: XcursorLibraryLoadCursor (in /usr/lib64/libXcursor.so.1.0.2)
by 0x50A4EFF: QCursorData::update() (in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50A5676: QCursor::handle() const (in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50B38C0: qt_x11_enforce_cursor(QWidget*) (in
/usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50B9507: QWidgetPrivate::create_sys(unsigned long, bool, bool)
(in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x505D607: QWidget::create(unsigned long, bool, bool) (in
/usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50A0952: setupOwner() (in /usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x50A0C89: QClipboard::QClipboard(QObject*) (in
/usr/lib64/qt4/libQtGui.so.4.8.5)
by 0x5000373: QApplication::clipboard() (in /usr/lib64/qt4/libQtGui.so.4.8.5)