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

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

[Octave-bug-tracker] [bug #58268] hdf5 load crashes on strings


From: Elvis Stansvik
Subject: [Octave-bug-tracker] [bug #58268] hdf5 load crashes on strings
Date: Wed, 29 Apr 2020 05:13:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Follow-up Comment #4, bug #58268 (project octave):

Thanks for the fix Rik! However, I tried the test case out, using Octave from
hg and with debugging symbols, and I still get a crash, though with the
following backtrace:


(gdb) run --eval "load outfile.hdf5"
Starting program: /home/buildbot/my_octave/bin/octave-cli --eval "load
outfile.hdf5"
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffef6ba700 (LWP 24551)]
free(): invalid pointer

Thread 1 "octave-cli" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff5574859 in __GI_abort () at abort.c:79
#2  0x00007ffff55df3ee in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x7ffff5709285 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#3  0x00007ffff55e747c in malloc_printerr (str=str@entry=0x7ffff57074ae
"free(): invalid pointer") at malloc.c:5347
#4  0x00007ffff55e8cac in _int_free (av=<optimized out>, p=<optimized out>,
have_lock=0) at malloc.c:4173
#5  0x00007ffff7646671 in octave::tree_constant::~tree_constant
(this=0x55555597e530, __in_chrg=<optimized out>) at
./../libinterp/parse-tree/pt-const.h:70
#6  0x00007ffff763bb5b in
octave::tree_simple_assignment::~tree_simple_assignment (this=0x55555597e430,
__in_chrg=<optimized out>) at ./../libinterp/parse-tree/pt-assign.cc:56
#7  0x00007ffff763bb86 in
octave::tree_simple_assignment::~tree_simple_assignment (this=0x55555597e430,
__in_chrg=<optimized out>) at ./../libinterp/parse-tree/pt-assign.cc:57
#8  0x00007ffff767bd76 in octave::tree_statement::~tree_statement
(this=0x55555597e5d0, __in_chrg=<optimized out>) at
./../libinterp/parse-tree/pt-stmt.cc:59
#9  0x00007ffff767bdbe in octave::tree_statement::~tree_statement
(this=0x55555597e5d0, __in_chrg=<optimized out>) at
./../libinterp/parse-tree/pt-stmt.cc:61
#10 0x00007ffff7623dc3 in octave::tree_statement_list::~tree_statement_list
(this=0x555555859940, __in_chrg=<optimized out>) at
./../libinterp/parse-tree/pt-stmt.h:166
#11 0x00007ffff7623e18 in octave::tree_statement_list::~tree_statement_list
(this=0x555555859940, __in_chrg=<optimized out>) at
./../libinterp/parse-tree/pt-stmt.h:169
#12 0x00007ffff75577af in octave_user_code::~octave_user_code
(this=0x55555599c350, __in_chrg=<optimized out>) at
./../libinterp/octave-value/ov-usr-fcn.cc:84
#13 0x00007ffff7558b86 in octave_user_function::~octave_user_function
(this=0x55555599c350, __in_chrg=<optimized out>) at
./../libinterp/octave-value/ov-usr-fcn.cc:220
#14 0x00007ffff7558ba6 in octave_user_function::~octave_user_function
(this=0x55555599c350, __in_chrg=<optimized out>) at
./../libinterp/octave-value/ov-usr-fcn.cc:230
#15 0x00007ffff7043951 in octave_value::operator= (this=0x5555557f52e0, a=...)
at ./../libinterp/octave-value/ov.h:393
#16 0x00007ffff7bad9cd in octave::fcn_info::fcn_info_rep::clear_user_function
(this=0x5555557f51d0, force=false) at ./../libinterp/corefcn/fcn-info.h:162
#17 0x00007ffff7badb9f in octave::fcn_info::fcn_info_rep::clear
(this=0x5555557f51d0, force=false) at ./../libinterp/corefcn/fcn-info.h:187
#18 0x00007ffff7badfe8 in octave::fcn_info::clear (this=0x5555559433a0,
force=false) at ./../libinterp/corefcn/fcn-info.h:322
#19 0x00007ffff7baaf06 in octave::symbol_table::clear_functions
(this=0x5555555d0198, force=false) at ./../libinterp/corefcn/symtab.cc:339
#20 0x00007ffff7bac0cd in octave::symbol_table::cleanup (this=0x5555555d0198)
at ./../libinterp/corefcn/symtab.cc:603
#21 0x00007ffff7a180f7 in octave::interpreter::cleanup (this=0x5555555cf4a0)
at ./../libinterp/corefcn/interpreter.cc:1269
#22 0x00007ffff7a155c1 in octave::interpreter::~interpreter
(this=0x5555555cf4a0, __in_chrg=<optimized out>) at
./../libinterp/corefcn/interpreter.cc:638
#23 0x00007ffff702946f in octave::application::delete_interpreter
(this=0x7fffffffe170) at ./../libinterp/octave.cc:320
#24 0x00007ffff7029841 in octave::cli_application::execute
(this=0x7fffffffe170) at ./../libinterp/octave.cc:381
#25 0x00005555555566ec in main (argc=3, argv=0x7fffffffe478) at
./../src/main-cli.cc:95
(gdb)


This was with changeset be19ade4acc3:


(env) buildbot@759e20843d04:~/src/octave$ hg id -i
be19ade4acc3
(env) buildbot@759e20843d04:~/src/octave$


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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