public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* libXcursor + -finline-functions: Invalid read of size 4
@ 2014-08-08 11:15 William Brana
  2014-08-11  8:43 ` Florian Weimer
  0 siblings, 1 reply; 4+ messages in thread
From: William Brana @ 2014-08-08 11:15 UTC (permalink / raw)
  To: gcc-help

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)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-12 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 11:15 libXcursor + -finline-functions: Invalid read of size 4 William Brana
2014-08-11  8:43 ` Florian Weimer
2014-08-12 14:57   ` William Brana
2014-08-12 15:17     ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).