[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues
From: |
Dmitri A. Sergatskov |
Subject: |
[Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues |
Date: |
Thu, 21 Nov 2024 16:23:12 -0500 (EST) |
Follow-up Comment #5, bug #66471 (group octave):
Attached is the full trace of
octave:2> pkg load stk
octave:3> __stk_sampling_vdc_rr2__(10,1)
ans = <10x1 stk_dataframe array>
=================================================================
==393798==ERROR: AddressSanitizer: heap-use-after-free on address
0x507000357c20 at pc 0x0000004c5db7 bp 0x7f46582108e0 sp 0x7f46582100a0
READ of size 80 at 0x507000357c20 thread T8 (QThread)
#0 0x4c5db6 in __asan_memmove
(/usr/local/libexec/octave/10.0.0/exec/x86_64-pc-linux-gnu/octave-gui+0x4c5db6)
(BuildId: 4f5040c5051881a5755926222df61af133dc99de)
#1 0x7f477bb33b66 in double* std::__copy_move<false, true,
std::random_access_iterator_tag>::__copy_m<double const, double>(double
const*, double const*, double*)
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_algobase.h:437:6
#2 0x7f477bb33b14 in double* std::__copy_move_a2<false, double const*,
double*>(double const*, double const*, double*)
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_algobase.h:505:14
#3 0x7f477bb339a4 in double* std::__copy_move_a1<false, double const*,
double*>(double const*, double const*, double*)
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_algobase.h:533:14
#4 0x7f477bf8222c in double* std::__copy_move_a<false, double const*,
double*>(double const*, double const*, double*)
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_algobase.h:541:3
#5 0x7f477bf82119 in double* std::copy<double const*, double*>(double
const*, double const*, double*)
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_algobase.h:632:14
#6 0x7f47788c95af in double* std::__copy_n<double const*, long,
double*>(double const*, long, double*, std::random_access_iterator_tag)
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_algo.h:731:14
#7 0x7f47788c8b53 in double* std::copy_n<double const*, long,
double*>(double const*, long, double*)
/opt/rh/gcc-toolset-13/root/usr/lib/gcc/x86_64-redhat-linux/13/../../../../include/c++/13/bits/stl_algo.h:763:14
#8 0x7f47788cb87a in long octave::idx_vector::index<double>(double const*,
long, double*) const
/home/dima/src/dev/octave/clang_asan/../liboctave/array/idx-vector.h:595:9
#9 0x7f47788cc907 in Array<double,
std::pmr::polymorphic_allocator<double>>::index(octave::idx_vector const&,
octave::idx_vector const&) const
/home/dima/src/dev/octave/clang_asan/../liboctave/array/Array-base.cc:822:18
#10 0x7f47788d0c3b in Array<double,
std::pmr::polymorphic_allocator<double>>::index(octave::idx_vector const&,
octave::idx_vector const&, bool, double const&) const
/home/dima/src/dev/octave/clang_asan/../liboctave/array/Array-base.cc:1100:14
#11 0x7f477b310050 in Array<double,
std::pmr::polymorphic_allocator<double>>::index(octave::idx_vector const&,
octave::idx_vector const&, bool) const
/home/dima/src/dev/octave/clang_asan/../liboctave/array/Array.h:731:12
#12 0x7f477b2d06b6 in
octave_base_matrix<NDArray>::do_index_op(octave_value_list const&, bool)
/home/dima/src/dev/octave/clang_asan/../libinterp/octave-value/ov-base-mat.cc:204:37
#13 0x7f477b2cf1af in
octave_base_matrix<NDArray>::subsref(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char>> const&,
std::__cxx11::list<octave_value_list, std::allocator<octave_value_list>>
const&)
/home/dima/src/dev/octave/clang_asan/../libinterp/octave-value/ov-base-mat.cc:77:16
...
(using clang compiler this time).
(File asan_stk_clang.txt)
Is this what you are asking for?
Dmitri.
--
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66471>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, Dmitri A. Sergatskov, 2024/11/21
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, Dmitri A. Sergatskov, 2024/11/21
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, Markus Mützel, 2024/11/21
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, Dmitri A. Sergatskov, 2024/11/21
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, John W. Eaton, 2024/11/21
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues,
Dmitri A. Sergatskov <=
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, Dmitri A. Sergatskov, 2024/11/22
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, Dmitri A. Sergatskov, 2024/11/22
- [Octave-bug-tracker] [bug #66471] polymorphic allocator memory issues, Dmitri A. Sergatskov, 2024/11/29