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

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

[Octave-bug-tracker] [bug #57353] crash signal 11 when using patch() wit


From: Hg200
Subject: [Octave-bug-tracker] [bug #57353] crash signal 11 when using patch() with large stl file
Date: Thu, 5 Dec 2019 12:32:37 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

Follow-up Comment #19, bug #57353 (project octave):

Here is my backtrace output. Some informations in advance:

RAM is 4GB total

(gdb) break graphics.cc:10125
Breakpoint 1 at 0x7fcab33c56e5: file libinterp/corefcn/graphics.cc, line
10125.
(gdb) c
Continuing.
Thread 5 "QThread" hit Breakpoint 1, patch::properties::update_vertex_normals
(this=0x7fca88379650, reset=false, force=false)
    at libinterp/corefcn/graphics.cc:10125
10125         std::vector<RowVector> vec_vn [num_v];  // list of normals for
vertices
(gdb) print num_v
$1 = 471129
(gdb) ptype num_v
type = long

Looks not suspicious (?) because is consistent with the call to patch (i am
calling with 3 x 157043 = 471129 points). Hint: I am using different stl data
(much smaller) than marcel.

Backtrace:

Thread 5 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f2b97fff700 (LWP 9180)]
0x00007f2bc1b627a4 in std::_Vector_base<RowVector, std::allocator<RowVector>
>::_Vector_impl::_Vector_impl (this=0x7f2b977ff000)
    at /usr/include/c++/8/bits/stl_vector.h:96
96              : _Tp_alloc_type(), _M_start(), _M_finish(),
_M_end_of_storage()
#0  0x00007f2bc1b627a4 in std::_Vector_base<RowVector,
std::allocator<RowVector> >::_Vector_impl::_Vector_impl()
(this=0x7f2b977ff000)
    at /usr/include/c++/8/bits/stl_vector.h:96
#1  0x00007f2bc1b5c77a in std::_Vector_base<RowVector,
std::allocator<RowVector> >::_Vector_base() (this=0x7f2b977ff000)
    at /usr/include/c++/8/bits/stl_vector.h:249
#2  0x00007f2bc1b582f4 in std::vector<RowVector, std::allocator<RowVector>
>::vector() (this=0x7f2b977ff000)
    at /usr/include/c++/8/bits/stl_vector.h:395
#3  0x00007f2bc1b047f4 in patch::properties::update_vertex_normals(bool, bool)
(this=0x7f2b90379650, reset=false, force=false)
    at libinterp/corefcn/graphics.cc:10125
#4  0x00007f2bc1b4558c in patch::properties::update_normals(bool, bool)
(this=0x7f2b90379650, reset=false, force=false)
    at libinterp/corefcn/graphics.h:9299
#5  0x00007f2bc1afcf3a in axes::properties::trigger_normals_calc()
(this=0x7f2b90307900) at libinterp/corefcn/graphics.cc:9292
#6  0x00007f2bc1b00263 in light::initialize(graphics_object const&)
(this=0x7f2b90857200, go=...) at libinterp/corefcn/graphics.cc:9590
#7  0x00007f2bc1b2bbf3 in graphics_object::initialize() (this=0x7f2b97fec120)
at libinterp/corefcn/graphics.h:3110
#8  0x00007f2bc19f00fb in xinitialize(graphics_handle const&) (h=...) at
libinterp/corefcn/graphics.cc:3194
#9  0x00007f2bc1b19e6f in make_graphics_object(std::__cxx11::string const&,
bool, octave_value_list const&)
    (go_name="light", integer_figure_handle=false, args=...) at
libinterp/corefcn/graphics.cc:13124
#10 0x00007f2bc1b1b938 in F__go_light__(octave::interpreter&,
octave_value_list const&, int) (interp=..., args=...)
    at libinterp/corefcn/graphics.cc:13346
#11 0x00007f2bc167cb1b in octave_builtin::call(octave::tree_evaluator&, int,
octave_value_list const&) (
    this=0x7f2b900787c0, tw=..., nargout=1, args=...) at
libinterp/octave-value/ov-builtin.cc:68
#12 0x00007f2bc183368c in
octave::tree_index_expression::evaluate_n(octave::tree_evaluator&, int)
(this=0x7f2b90878410, tw=..., nargout=1)


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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