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

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

[Octave-bug-tracker] [bug #59228] embedded.cc example crashes with segfa


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #59228] embedded.cc example crashes with segfault
Date: Wed, 14 Oct 2020 12:08:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #20, bug #59228 (project octave):

Oops, wait, I may have spoken too soon.  I was able to generate a core file. 
Stack trace is


(gdb) thread apply all bt

Thread 1 (Thread 0x7f72ceb15b40 (LWP 3414079)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f72d6435537 in __GI_abort () at abort.c:79
#2  0x00007f72d648e828 in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x7f72d659ce31 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007f72d6495b1a in malloc_printerr (str=str@entry=0x7f72d659f170
"free(): double free detected in tcache 2") at malloc.c:5347
#4  0x00007f72d6497115 in _int_free (av=0x7f72d65ceb80 <main_arena>,
p=0x559a72453e60, have_lock=0) at malloc.c:4201
#5  0x00007f72d7f6e115 in dim_vector::freerep (this=0x7ffc126d5638,
this=0x7ffc126d5638) at
/home/jwe/src/octave-stable/liboctave/array/dim-vector.h:162
#6  dim_vector::~dim_vector (this=0x7ffc126d5638, __in_chrg=<optimized out>)
at /home/jwe/src/octave-stable/liboctave/array/dim-vector.h:325
#7  octave_base_value::isempty (this=<optimized out>) at
/home/jwe/src/octave-stable/libinterp/octave-value/ov-base.h:357
#8  0x00007f72d835fcbe in octave_value::isempty (this=<optimized out>) at
/home/jwe/src/octave-stable/libinterp/octave-value/ov.h:558
#9  Fget (interp=..., args=...) at
/home/jwe/src/octave-stable/libinterp/corefcn/graphics.cc:12886
#10 0x00007f72d7f644d6 in octave_builtin::execute (this=0x559a72385900,
tw=..., nargout=1, args=...) at
/home/jwe/src/octave-stable/libinterp/octave-value/ov-builtin.cc:65
#11 0x00007f72d7fc2548 in octave_function::call (this=0x559a72385900, tw=...,
nargout=1, args=...) at
/home/jwe/src/octave-stable/libinterp/octave-value/ov-fcn.cc:57
#12 0x00007f72d8122e02 in octave::tree_index_expression::evaluate_n
(this=0x7ffc126d5c00, tw=..., nargout=1) at
/home/jwe/src/octave-stable/libinterp/parse-tree/pt-idx.cc:402
#13 0x00007f72d812390c in octave::tree_index_expression::evaluate
(this=<optimized out>, tw=..., nargout=<optimized out>) at
/home/jwe/src/octave-stable/libinterp/parse-tree/pt-idx.h:107
#14 0x00007f72d80f5a71 in octave::tree_simple_assignment::evaluate
(this=0x559a724eed90, tw=...) at
/home/jwe/src/octave-stable/libinterp/parse-tree/pt-assign.cc:101
#15 0x00007f72d810feb3 in octave::tree_evaluator::visit_statement
(this=0x559a722ea318, stmt=...) at
/home/jwe/src/octave-stable/libinterp/parse-tree/pt-eval.cc:3031
#16 0x00007f72d8101ad0 in octave::tree_statement::accept (tw=...,
this=0x559a724eedd0) at
/home/jwe/src/octave-stable/libinterp/parse-tree/pt-stmt.h:124
#17 octave::tree_evaluator::visit_statement_list (this=0x559a722ea318,
lst=...) at /home/jwe/src/octave-stable/libinterp/parse-tree/pt-eval.cc:3090
#18 0x00007f72d810a3ca in octave::tree_statement_list::accept (tw=...,
this=0x559a72609f10) at
/home/jwe/src/octave-stable/libinterp/parse-tree/pt-stmt.h:201
#19 octave::tree_evaluator::execute_user_function
(this=this@entry=0x559a722ea318, user_function=..., nargout=nargout@entry=0,
xargs=...) at
/home/jwe/src/octave-stable/libinterp/parse-tree/pt-eval.cc:2770
#20 0x00007f72d8041cc1 in octave_user_function::execute (args=...,
nargout=<optimized out>, tw=..., this=0x559a722126c0) at
/home/jwe/src/octave-stable/libinterp/octave-value/ov-usr-fcn.cc:496
#21 octave_user_function::call (this=0x559a722126c0, tw=..., nargout=0,
args=...) at
/home/jwe/src/octave-stable/libinterp/octave-value/ov-usr-fcn.cc:489
#22 0x00007f72d84783bf in octave::interpreter::feval (this=0x559a722e9580,
name="close", args=..., nargout=0) at
/home/jwe/src/octave-stable/libinterp/corefcn/interpreter.cc:1534
--Type <RET> for more, q to quit, c to continue without paging--
#23 0x00007f72d847843a in octave::interpreter::feval (this=0x559a722e9580,
name=<optimized out>, args=..., nargout=0) at
/usr/include/c++/10/ext/new_allocator.h:79
#24 0x00007f72d8479e9a in octave::interpreter::shutdown (this=0x559a722e9580)
at /home/jwe/src/octave-stable/libinterp/octave-value/ovl.h:211
#25 0x00007f72d8a039b3 in octave_file_io_intf::~octave_file_io_intf
(this=0x7f72d8a09240 <octave_file_io_intf::get_instance()::instance>,
__in_chrg=<optimized out>) at octave_file_io.cpp:96
#26 0x00007f72d644e5a7 in __run_exit_handlers (status=0, listp=0x7f72d65ce718
<__exit_funcs>, run_list_atexit=run_list_atexit@entry=true,
run_dtors=run_dtors@entry=true) at exit.c:108
#27 0x00007f72d644e74a in __GI_exit (status=<optimized out>) at exit.c:139
#28 0x00007f72d6436cd1 in __libc_start_main (main=0x559a713caeb0 <main(int,
char**)>, argc=1, argv=0x7ffc126d65c8, init=<optimized out>, fini=<optimized
out>, rtld_fini=<optimized out>, stack_end=0x7ffc126d65b8) at
../csu/libc-start.c:342
#29 0x0000559a713cbdfa in _start () at io_test_par.cpp:126


I'll see if I can figure out why that happens.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59228>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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