[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: Mon, 24 Jul 2017 00:21:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #2, bug #51552 (project octave):

octave:1> nnz({0, 1, 2})
error: nnz: wrong type argument 'cell array'
octave:1> nnz (C)
error: 'C' undefined near line 1 column 6
octave:1> C = {0, 1, 2};
octave:2> nnz (C)
error: nnz: wrong type argument 'cell array'
octave:2> 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})
==13766==ERROR: AddressSanitizer: stack-use-after-scope on address
0x7ffc505c01a0 at pc 0x7f3641fa2e67 bp 0x7ffc505bfea0 sp 0x7ffc505bfe90
WRITE of size 8 at 0x7ffc505c01a0 thread T0
    #0 0x7f3641fa2e66 in Array<octave_value>::Array()
    #1 0x7f3641fa2e66 in octave_value_list::octave_value_list()
    #2 0x7f3643302e59 in
    #3 0x7f36432beccd in
octave::tree_evaluator::evaluate(octave::tree_expression*, int)


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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