[Top][All Lists]

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

[Octave-bug-tracker] [bug #51552] AddressSanitizer: stack-use-after-scop

From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #51552] AddressSanitizer: stack-use-after-scope error in Array.h
Date: Sun, 23 Jul 2017 21:53:58 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0


                 Summary: AddressSanitizer: stack-use-after-scope error in
                 Project: GNU Octave
            Submitted by: dasergatskov
            Submitted on: Mon 24 Jul 2017 01:53:56 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: Dmitri A. Sergatskov
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux



When built with "enable-address-sanitizer-flags" octave crashed 
in multiple tests with 

SUMMARY: AddressSanitizer: stack-use-after-scope
../liboctave/array/Array.h:257 in Array<octave_value>::Array()

error. (Array.h is attached)

E.g. running 

octave:1> test libinterp/corefcn/Cell.cc-tst verbose
>>>>> /home/dima/src/octave/gcc_asan/libinterp/corefcn/Cell.cc-tst
***** test
 a = {"foo", "bar"};
 assert (a(), a);
***** error <wrong type argument 'cell array'> nnz ({0, 1, 2})
==31489==ERROR: AddressSanitizer: stack-use-after-scope on address
0x7ffd91b06350 at pc 0x7f7d98957e67 bp 0x7ffd91b06050 sp 0x7ffd91b06040
WRITE of size 8 at 0x7ffd91b06350 thread T0
    #0 0x7f7d98957e66 in Array<octave_value>::Array()
    #1 0x7f7d98957e66 in octave_value_list::octave_value_list()
    #2 0x7f7d99cb7e59 in

(full log is attached).

One needs to have at least gcc 7 to get stack-use-after-scope diagnostic. See




File Attachments:

Date: Mon 24 Jul 2017 01:53:56 AM UTC  Name: Array.h  Size: 27KiB   By:

Date: Mon 24 Jul 2017 01:53:56 AM UTC  Name:
octave_stack-use-after-scope_log.txt  Size: 12KiB   By: dasergatskov



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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