[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:33:47 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0 |
Follow-up Comment #3, bug #51552 (project octave):
Here is some other tests resultin in the same error:
octave:1> test libinterp/corefcn/bsxfun.cc-tst verbose
>>>>> /home/dima/src/octave/gcc_asan/libinterp/corefcn/bsxfun.cc-tst
***** shared a, b, c, f
a = randn (4, 4);
b = mean (a, 1);
c = mean (a, 2);
f = @minus;
***** error (bsxfun (f))
=================================================================
==14242==ERROR: AddressSanitizer: stack-use-after-scope on address
0x7ffe82c926a0 at pc 0x7f26727f8e67 bp 0x7ffe82c923a0 sp 0x7ffe82c92390
WRITE of size 8 at 0x7ffe82c926a0 thread T0
#0 0x7f26727f8e66 in Array<octave_value>::Array()
../liboctave/array/Array.h:257
#1 0x7f26727f8e66 in octave_value_list::octave_value_list()
../libinterp/octave-value/ovl.h:46
octave:1> test libinterp/corefcn/conv2.cc-tst verbose
>>>>> /home/dima/src/octave/gcc_asan/libinterp/corefcn/conv2.cc-tst
***** test
(...deleted...)
rand ("seed", 42);
x = rand (100);
y = ones (5);
A = conv2 (x, y)(5:end-4,5:end-4);
B = conv2 (x, y, "valid");
assert (B, A); # Yes, this test is for *exact* equivalence.
***** error conv2 ()
=================================================================
==14696==ERROR: AddressSanitizer: stack-use-after-scope on address
0x7ffd975fa9d0 at pc 0x7f1fc8d8fe67 bp 0x7ffd975fa6d0 sp 0x7ffd975fa6c0
WRITE of size 8 at 0x7ffd975fa9d0 thread T0
#0 0x7f1fc8d8fe66 in Array<octave_value>::Array()
../liboctave/array/Array.h:257
#1 0x7f1fc8d8fe66 in octave_value_list::octave_value_list()
../libinterp/octave-value/ovl.h:46
octave:1> test libinterp/corefcn/dassl.cc-tst verbose
>>>>> /home/dima/src/octave/gcc_asan/libinterp/corefcn/dassl.cc-tst
(...deleted...)
***** test
x0 = [1; 0];
xdot0 = [-10; 10];
t = (0:0.2:1)';
tol = 500 * dassl_options ("relative tolerance");
[x, xdot] = dassl ("__f", x0, xdot0, t);
y = [exp(-10*t), 1-exp(-10*t)];
assert (x, y, tol);
***** test
old_tol = dassl_options ("absolute tolerance");
dassl_options ("absolute tolerance", eps);
assert (dassl_options ("absolute tolerance") == eps);
## Restore old value of tolerance
dassl_options ("absolute tolerance", old_tol);
***** error dassl_options ("foo", 1, 2)
=================================================================
==15006==ERROR: AddressSanitizer: stack-use-after-scope on address
0x7fff47b4b610 at pc 0x7fd60967ee67 bp 0x7fff47b4b310 sp 0x7fff47b4b300
WRITE of size 8 at 0x7fff47b4b610 thread T0
#0 0x7fd60967ee66 in Array<octave_value>::Array()
../liboctave/array/Array.h:257
#1 0x7fd60967ee66 in octave_value_list::octave_value_list()
../libinterp/octave-value/ovl.h:46
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51552>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/