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

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

[Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in oct


From: anonymous
Subject: [Octave-bug-tracker] [bug #60334] Embedded Octave crashes on exit in octave::interpreter::~interpreter()
Date: Wed, 7 Apr 2021 15:07:14 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

Follow-up Comment #7, bug #60334 (project octave):

I see, there seems to be another issue with the development version of Octave
which is related to the number of input arguments.

But maybe you can try also this command:
`./mbdyn -f ../modules/module-octave/demo/octave_const_law.mbdyn`

If I run it, I get this output:

MBDyn - MultiBody Dynamics develop
configured on Apr  5 2021 at 19:24:37

Copyright 1996-2017 (C) Paolo Mantegazza and Pierangelo Masarati,
Dipartimento di Ingegneria Aerospaziale <http://www.aero.polimi.it/>
Politecnico di Milano                   <http://www.polimi.it/>

MBDyn is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it
under certain conditions.  Use 'mbdyn --license' to see the conditions.
There is absolutely no warranty for MBDyn.  Use "mbdyn --warranty"
for details.

reading from file
"/home/reinhard/work/mbdyn-git/modules/module-octave/demo/octave_const_law.mbdyn"
configure with --enable-multithread for multithreaded assembly
Creating scalar solver with Umfpack linear solver
Reading Structural(1)
Reading Structural(2)
Reading Structural(3)
Reading Abstract(1)
Reading Body(1)
Reading Body(2)
Reading Joint(1)
Reading Genel(1)
Reading Genel(2)
Reading Joint(2)
Reading Joint(3)
Reading Force(1)
Reading Force(2)
Reading Force(3)
mboct: embed octave is enabled!
Step  2060        1.0004        0.0005    1   2.14611e-18             0 0 1
End of simulation at time 1.0004 after 2060 steps;
output in file "/tmp/test_octave"
total iterations: 2060
total Jacobian matrices: 2092
total error: 7.32396e-05
Segmentation fault (core dumped)


An if I run it through valgrind, I get the same invalid read access:

==3313== Invalid read of size 8
==3313==    at 0x53A36C8: compare (basic_string.h:2855)
==3313==    by 0x53A36C8: operator< <char, std::char_traits<char>,
std::allocator<char> > (basic_string.h:6229)
==3313==    by 0x53A36C8: operator() (stl_function.h:386)
..............
==3313==    by 0x5A25919: ~_Rb_tree (stl_tree.h:995)
==3313==    by 0x5A25919: ~map (stl_map.h:300)
==3313==    by 0x5A25919: ~symbol_table (symtab.h:69)
==3313==    by 0x5A25919: octave::interpreter::~interpreter()
(interpreter.cc:646)
==3313==    by 0x52BDEC: oct::OctaveInterface::~OctaveInterface()
(module-octave.cc:938)


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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