octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52026] I tried the address sanitizer and got


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #52026] I tried the address sanitizer and got this at startup.
Date: Thu, 14 Sep 2017 16:25:10 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?52026>

                 Summary: I tried the address sanitizer and got this at
startup.
                 Project: GNU Octave
            Submitted by: dastew
            Submitted on: Thu 14 Sep 2017 08:25:09 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Doug stewart
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I built with the instructions from
http://wiki.octave.org/Finding_Memory_Leaks



Octave successfully built.  Now choose from the following:

   ./run-octave    - to run in place to test before installing
   make check      - to run the tests
   make install    - to install (PREFIX=/home/user/local)

   HG ID for this build is "2ae8efbafb58+"

make[2]: Leaving directory '/home/doug/octavec4'
make[1]: Leaving directory '/home/doug/octavec4'

real    17m35.081s
user    60m56.148s
sys     2m26.572s
address@hidden:~/octavec4$ ./run-octave
=================================================================
==5019==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x61900018f540 at pc 0x7f6270e8b935 bp 0x7ffd3fa33030 sp 0x7ffd3fa327d8
READ of size 948 at 0x61900018f540 thread T0
GNU Octave, version 4.3.0+
Copyright (C) 2016 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-pc-linux-gnu".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

    #0 0x7f6270e8b934 in __asan_memcpy
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x8c934)
    #1 0x7f62707fb9bf in memcpy
/usr/include/x86_64-linux-gnu/bits/string3.h:53
    #2 0x7f62707fb9bf in TerminalView::updateImage()
libgui/qterminal/libqterminal/unix/TerminalView.cpp:973
    #3 0x7f62707ea4b9 in QUnixTerminalImpl::resizeEvent(QResizeEvent*)
libgui/qterminal/libqterminal/unix/QUnixTerminalImpl.cpp:228
    #4 0x7f626a0428cf in QWidget::event(QEvent*)
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x21b8cf)
    #5 0x7f6269febfdb in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1c4fdb)
    #6 0x7f6269ff2f15 in QApplication::notify(QObject*, QEvent*)
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x1cbf15)
    #7 0x7f6269abe90c in QCoreApplication::notifyInternal(QObject*, QEvent*)
(/usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x18a90c)
    #8 0x7f626a03ea50 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool,
bool) (/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x217a50)
    #9 0x7f626a03fbd2 in QWidgetPrivate::show_helper()
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x218bd2)
    #10 0x7f626a03fb11 in QWidgetPrivate::showChildren(bool)
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x218b11)
    #11 0x7f626a03fbee in QWidgetPrivate::show_helper()
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x218bee)
    #12 0x7f626a03fb11 in QWidgetPrivate::showChildren(bool)
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x218b11)
    #13 0x7f626a03fbee in QWidgetPrivate::show_helper()
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x218bee)
    #14 0x7f626a041c09 in QWidget::setVisible(bool)
(/usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x21ac09)
    #15 0x7f6270883aba in QWidget::show()
/usr/include/qt4/QtGui/qwidget.h:497
    #16 0x7f6270883aba in main_window::set_window_layout(QSettings*)
libgui/src/main-window.cc:1237
    #17 0x7f62708847e2 in main_window::read_settings()
libgui/src/main-window.cc:1167
    #18 0x7f62708a3acb in octave::gui_application::execute()
libgui/src/octave-gui.cc:232
    #19 0x40180e in main src/main-gui.cc:104
    #20 0x7f626b8bc82f in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
    #21 0x401d48 in _start
(/home/doug/octavec4/src/.libs/lt-octave-gui+0x401d48)

0x61900018f540 is located 0 bytes to the right of 960-byte region
[0x61900018f180,0x61900018f540)
allocated by thread T0 here:
    #0 0x7f6270e986b2 in operator new[](unsigned long)
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x996b2)
    #1 0x7f62707ef14c in ScreenWindow::getImage()
libgui/qterminal/libqterminal/unix/ScreenWindow.cpp:67

SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 __asan_memcpy
Shadow bytes around the buggy address:
  0x0c3280029e50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3280029e60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3280029e70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3280029e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x0c3280029e90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c3280029ea0: 00 00 00 00 00 00 00 00[fa]fa fa fa fa fa fa fa
  0x0c3280029eb0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c3280029ec0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c3280029ed0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c3280029ee0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c3280029ef0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
==5019==ABORTING
address@hidden:~/octavec4$ 

 






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52026>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]