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

[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()
../liboctave/array/Array.h:257
    #1 0x7f3641fa2e66 in octave_value_list::octave_value_list()
../libinterp/octave-value/ovl.h:46
    #2 0x7f3643302e59 in
octave::tree_evaluator::visit_identifier(octave::tree_identifier&)
../libinterp/parse-tree/pt-eval.cc:1035
    #3 0x7f36432beccd in
octave::tree_evaluator::evaluate(octave::tree_expression*, int)
../libinterp/parse-tree/pt-eval.h:270



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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