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: Marcel Hell
Subject: [Octave-bug-tracker] [bug #57353] crash signal 11 when using patch() with large stl file
Date: Thu, 5 Dec 2019 04:19:11 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

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

@Dmitry: yes it still crashes.

@Rik:

Here is the bt output before and after it crashes:
#0  0x00007f2749052363 in patch::properties::update_vertex_normals (
    this=0x7f27117c2c30, reset=false, force=false)
    at libinterp/corefcn/graphics.cc:10125
#1  0x00007f2749097a22 in patch::properties::update_normals (
    this=0x7f27117c2c30, reset=false, force=false)
    at libinterp/corefcn/graphics.h:9299
#2  0x00007f274904a55f in axes::properties::trigger_normals_calc (
    this=0x7f2711738f20) at libinterp/corefcn/graphics.cc:9292
#3  0x00007f274904da82 in light::initialize (this=0x7f271182b4e0, go=...)
    at libinterp/corefcn/graphics.cc:9590
#4  0x00007f274907bc33 in graphics_object::initialize (this=0x7f271f270c30)
    at libinterp/corefcn/graphics.h:3110
#5  0x00007f2748f40c8d in xinitialize (h=...)
    at libinterp/corefcn/graphics.cc:3194
#6  0x00007f27490685be in make_graphics_object (go_name="light", 
    integer_figure_handle=false, args=...)
    at libinterp/corefcn/graphics.cc:13124
#7  0x00007f274906a36d in F__go_light__ (interp=..., args=...)
    at libinterp/corefcn/graphics.cc:13346
#8  0x00007f2748b9b38a in octave_builtin::call (this=0x7f271007b820, tw=..., 
    nargout=1, args=...) at libinterp/octave-value/ov-builtin.cc:68
#9  0x00007f2748d68d3b in octave::tree_index_expression::evaluate_n (
    this=0x7f271181ef40, tw=..., nargout=1)
    at libinterp/parse-tree/pt-idx.cc:518
#10 0x00007f2748d6a66e in octave::tree_index_expression::evaluate (
    this=0x7f271181ef40, tw=..., nargout=1)
    at libinterp/parse-tree/pt-idx.h:106
#11 0x00007f2748d36788 in octave::tree_simple_assignment::evaluate (
    this=0x7f27117d1230, tw=...) at libinterp/parse-tree/pt-assign.cc:98
#12 0x00007f2748d4af78 in octave::tree_evaluator::visit_statement (
    this=0x7f27100057f0, stmt=...) at libinterp/parse-tree/pt-eval.cc:2724
#13 0x00007f2748d75702 in octave::tree_statement::accept (
    this=0x7f2711808b50, tw=...) at libinterp/parse-tree/pt-stmt.h:121
#14 0x00007f2748d4b1c9 in octave::tree_evaluator::visit_statement_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2783
#15 0x00007f2748b46486 in octave::tree_statement_list::accept (
    this=0x7f271180d940, tw=...) at libinterp/parse-tree/pt-stmt.h:198
#16 0x00007f2748d4a035 in octave::tree_evaluator::execute_user_function (
    this=0x7f27100057f0, user_function=..., nargout=1, xargs=..., 
    closure_frames=0x0) at libinterp/parse-tree/pt-eval.cc:2444
#17 0x00007f2748c5b3cd in octave_user_function::call (this=0x7f2711824a20, 
    tw=..., nargout=1, args=..., closure_frames=0x0)
    at libinterp/octave-value/ov-usr-fcn.cc:464
#18 0x00007f2748c5e96b in octave_user_function::call (this=0x7f2711824a20, 
    tw=..., nargout=1, args=...) at libinterp/octave-value/ov-usr-fcn.h:376
#19 0x00007f2748d68d3b in octave::tree_index_expression::evaluate_n (
    this=0x7f2711819ed0, tw=..., nargout=1)
    at libinterp/parse-tree/pt-idx.cc:518
#20 0x00007f2748d6a66e in octave::tree_index_expression::evaluate (
    this=0x7f2711819ed0, tw=..., nargout=1)
    at libinterp/parse-tree/pt-idx.h:106
#21 0x00007f2748d36788 in octave::tree_simple_assignment::evaluate (
    this=0x7f271181a090, tw=...) at libinterp/parse-tree/pt-assign.cc:98
---Type <return> to continue, or q <return> to quit---
#22 0x00007f2748d4af78 in octave::tree_evaluator::visit_statement (
    this=0x7f27100057f0, stmt=...) at libinterp/parse-tree/pt-eval.cc:2724
#23 0x00007f2748d75702 in octave::tree_statement::accept (
    this=0x7f271181a0d0, tw=...) at libinterp/parse-tree/pt-stmt.h:121
#24 0x00007f2748d4b1c9 in octave::tree_evaluator::visit_statement_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2783
#25 0x00007f2748b46486 in octave::tree_statement_list::accept (
    this=0x7f27118186f0, tw=...) at libinterp/parse-tree/pt-stmt.h:198
#26 0x00007f2748d4a9ae in octave::tree_evaluator::visit_if_command_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2577
#27 0x00007f2748d53130 in octave::tree_if_command_list::accept (
    this=0x7f271181a1f0, tw=...) at libinterp/parse-tree/pt-select.h:115
#28 0x00007f2748d4a7ce in octave::tree_evaluator::visit_if_command (
    this=0x7f27100057f0, cmd=...) at libinterp/parse-tree/pt-eval.cc:2555
#29 0x00007f2748d741ee in octave::tree_if_command::accept (
    this=0x7f271181af30, tw=...) at libinterp/parse-tree/pt-select.h:148
#30 0x00007f2748d4aec6 in octave::tree_evaluator::visit_statement (
    this=0x7f27100057f0, stmt=...) at libinterp/parse-tree/pt-eval.cc:2702
#31 0x00007f2748d75702 in octave::tree_statement::accept (
    this=0x7f271181af70, tw=...) at libinterp/parse-tree/pt-stmt.h:121
#32 0x00007f2748d4b1c9 in octave::tree_evaluator::visit_statement_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2783
#33 0x00007f2748b46486 in octave::tree_statement_list::accept (
    this=0x7f271017fb70, tw=...) at libinterp/parse-tree/pt-stmt.h:198
#34 0x00007f2748d4a035 in octave::tree_evaluator::execute_user_function (
    this=0x7f27100057f0, user_function=..., nargout=0, xargs=..., 
    closure_frames=0x0) at libinterp/parse-tree/pt-eval.cc:2444
#35 0x00007f2748c5b3cd in octave_user_function::call (this=0x7f2711804870, 
    tw=..., nargout=0, args=..., closure_frames=0x0)
    at libinterp/octave-value/ov-usr-fcn.cc:464
#36 0x00007f2748c5e96b in octave_user_function::call (this=0x7f2711804870, 
    tw=..., nargout=0, args=...) at libinterp/octave-value/ov-usr-fcn.h:376
#37 0x00007f2748d68d3b in octave::tree_index_expression::evaluate_n (
    this=0x7f271046d720, tw=..., nargout=0)
    at libinterp/parse-tree/pt-idx.cc:518
#38 0x00007f2748d6a66e in octave::tree_index_expression::evaluate (
    this=0x7f271046d720, tw=..., nargout=0)
    at libinterp/parse-tree/pt-idx.h:106
#39 0x00007f2748d4af78 in octave::tree_evaluator::visit_statement (
    this=0x7f27100057f0, stmt=...) at libinterp/parse-tree/pt-eval.cc:2724
#40 0x00007f2748d75702 in octave::tree_statement::accept (
    this=0x7f271045c110, tw=...) at libinterp/parse-tree/pt-stmt.h:121
#41 0x00007f2748d4b1c9 in octave::tree_evaluator::visit_statement_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2783
#42 0x00007f2748b46486 in octave::tree_statement_list::accept (
    this=0x7f271041f330, tw=...) at libinterp/parse-tree/pt-stmt.h:198
#43 0x00007f2748d49786 in octave::tree_evaluator::execute_user_script (
    this=0x7f27100057f0, user_script=..., nargout=0, args=...)
    at libinterp/parse-tree/pt-eval.cc:2303
#44 0x00007f2748c59a88 in octave_user_script::call (this=0x7f27103ef6a0, 
    tw=..., nargout=0, args=...) at libinterp/octave-value/ov-usr-fcn.cc:177
#45 0x00007f2748d44f59 in octave::tree_evaluator::source_file (
    this=0x7f27100057f0, 
---Type <return> to continue, or q <return> to quit---
    file_name="/home/marcel/development/octave/STLRead/STLRead/stldemo.m", 
    context="", verbose=false, require_file=true)
    at libinterp/parse-tree/pt-eval.cc:1207
#46 0x00007f27490e614b in octave::interpreter::source_file (
    this=0x7f2710004a60, 
    file_name="/home/marcel/development/octave/STLRead/STLRead/stldemo.m", 
    context="", verbose=false, require_file=true)
    at libinterp/corefcn/interpreter.cc:1601
#47 0x00007f2748d18f44 in Fsource (interp=..., args=...)
    at libinterp/parse-tree/oct-parse.yy:5125
#48 0x00007f2748b9b38a in octave_builtin::call (this=0x7f27100367f0, tw=..., 
    nargout=0, args=...) at libinterp/octave-value/ov-builtin.cc:68
#49 0x00007f2748d68d3b in octave::tree_index_expression::evaluate_n (
    this=0x7f271046ca00, tw=..., nargout=0)
    at libinterp/parse-tree/pt-idx.cc:518
#50 0x00007f2748d42344 in octave::tree_evaluator::eval_string (
    this=0x7f27100057f0, 
    eval_str="source
('/home/marcel/development/octave/STLRead/STLRead/stldemo.m');", silent=false,
parse_status=@0x7f271f27310c: 0, nargout=0)
    at libinterp/parse-tree/pt-eval.cc:502
#51 0x00007f2748d430ed in octave::tree_evaluator::evalin (
    this=0x7f27100057f0, context="caller", 
    try_code="source
('/home/marcel/development/octave/STLRead/STLRead/stldemo.m');",
catch_code="rethrow (lasterror ())", nargout=0)
    at libinterp/parse-tree/pt-eval.cc:661
#52 0x00007f27490e5798 in octave::interpreter::evalin (this=0x7f2710004a60, 
    context="caller", 
    try_code="source
('/home/marcel/development/octave/STLRead/STLRead/stldemo.m');",
catch_code="rethrow (lasterror ())", nargout=0)
    at libinterp/corefcn/interpreter.cc:1430
#53 0x00007f2748d19f15 in Fevalin (interp=..., args=..., nargout=0)
    at libinterp/parse-tree/oct-parse.yy:5472
#54 0x00007f2748b9b38a in octave_builtin::call (this=0x7f27100377e0, tw=..., 
    nargout=0, args=...) at libinterp/octave-value/ov-builtin.cc:68
#55 0x00007f2748d68d3b in octave::tree_index_expression::evaluate_n (
    this=0x7f27103e3c10, tw=..., nargout=0)
    at libinterp/parse-tree/pt-idx.cc:518
#56 0x00007f2748d6a66e in octave::tree_index_expression::evaluate (
    this=0x7f27103e3c10, tw=..., nargout=0)
    at libinterp/parse-tree/pt-idx.h:106
#57 0x00007f2748d4af78 in octave::tree_evaluator::visit_statement (
    this=0x7f27100057f0, stmt=...) at libinterp/parse-tree/pt-eval.cc:2724
#58 0x00007f2748d75702 in octave::tree_statement::accept (
    this=0x7f27103e3db0, tw=...) at libinterp/parse-tree/pt-stmt.h:121
#59 0x00007f2748d4b1c9 in octave::tree_evaluator::visit_statement_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2783
#60 0x00007f2748b46486 in octave::tree_statement_list::accept (
    this=0x7f27103e2e90, tw=...) at libinterp/parse-tree/pt-stmt.h:198
#61 0x00007f2748d4a9ae in octave::tree_evaluator::visit_if_command_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2577
#62 0x00007f2748d53130 in octave::tree_if_command_list::accept (
    this=0x7f27103e0ab0, tw=...) at libinterp/parse-tree/pt-select.h:115
#63 0x00007f2748d4a7ce in octave::tree_evaluator::visit_if_command (
---Type <return> to continue, or q <return> to quit---
    this=0x7f27100057f0, cmd=...) at libinterp/parse-tree/pt-eval.cc:2555
#64 0x00007f2748d741ee in octave::tree_if_command::accept (
    this=0x7f27103e3f10, tw=...) at libinterp/parse-tree/pt-select.h:148
#65 0x00007f2748d4aec6 in octave::tree_evaluator::visit_statement (
    this=0x7f27100057f0, stmt=...) at libinterp/parse-tree/pt-eval.cc:2702
#66 0x00007f2748d75702 in octave::tree_statement::accept (
    this=0x7f27103e3f50, tw=...) at libinterp/parse-tree/pt-stmt.h:121
#67 0x00007f2748d4b1c9 in octave::tree_evaluator::visit_statement_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2783
#68 0x00007f2748b46486 in octave::tree_statement_list::accept (
    this=0x7f271016cae0, tw=...) at libinterp/parse-tree/pt-stmt.h:198
#69 0x00007f2748d4a035 in octave::tree_evaluator::execute_user_function (
    this=0x7f27100057f0, user_function=..., nargout=0, xargs=..., 
    closure_frames=0x0) at libinterp/parse-tree/pt-eval.cc:2444
#70 0x00007f2748c5b3cd in octave_user_function::call (this=0x7f27103e4150, 
    tw=..., nargout=0, args=..., closure_frames=0x0)
    at libinterp/octave-value/ov-usr-fcn.cc:464
#71 0x00007f2748c5e96b in octave_user_function::call (this=0x7f27103e4150, 
    tw=..., nargout=0, args=...) at libinterp/octave-value/ov-usr-fcn.h:376
#72 0x00007f2748d68d3b in octave::tree_index_expression::evaluate_n (
    this=0x7f2710492250, tw=..., nargout=0)
    at libinterp/parse-tree/pt-idx.cc:518
#73 0x00007f2748d6a66e in octave::tree_index_expression::evaluate (
    this=0x7f2710492250, tw=..., nargout=0)
    at libinterp/parse-tree/pt-idx.h:106
#74 0x00007f2748d4af78 in octave::tree_evaluator::visit_statement (
    this=0x7f27100057f0, stmt=...) at libinterp/parse-tree/pt-eval.cc:2724
#75 0x00007f2748d75702 in octave::tree_statement::accept (
    this=0x7f2710343790, tw=...) at libinterp/parse-tree/pt-stmt.h:121
#76 0x00007f2748d4b1c9 in octave::tree_evaluator::visit_statement_list (
    this=0x7f27100057f0, lst=...) at libinterp/parse-tree/pt-eval.cc:2783
#77 0x00007f2748b46486 in octave::tree_statement_list::accept (
    this=0x7f2710461fb0, tw=...) at libinterp/parse-tree/pt-stmt.h:198
#78 0x00007f2748d41df4 in octave::tree_evaluator::eval (this=0x7f27100057f0, 
    stmt_list=std::shared_ptr<octave::tree_statement_list> (use count 2, weak
count 0) = {...}, interactive=true) at libinterp/parse-tree/pt-eval.cc:398
#79 0x00007f27490e2928 in octave::interpreter::main_loop (
    this=0x7f2710004a60) at libinterp/corefcn/interpreter.cc:1113
#80 0x00007f27490e14e4 in octave::interpreter::execute (this=0x7f2710004a60)
    at libinterp/corefcn/interpreter.cc:795
#81 0x00007f2749ab2422 in octave::interpreter_qobject::execute (
    this=0x55c18e927240) at libgui/src/interpreter-qobject.cc:85
#82 0x00007f2749ba38c0 in octave::interpreter_qobject::qt_static_metacall (
    _o=0x55c18e927240, _c=QMetaObject::InvokeMetaMethod, _id=2, 
    _a=0x55c18ea4b090) at libgui/src/moc-interpreter-qobject.cc:88
#83 0x00007f27442ad1b2 in QObject::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#84 0x00007f2744ffb83c in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#85 0x00007f2745003104 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#86 0x00007f2749b0e0e4 in octave::octave_qapplication::notify (
    this=0x55c18e89a6f0, receiver=0x55c18e927240, ev=0x55c18ea556a0)
---Type <return> to continue, or q <return> to quit---
    at libgui/src/octave-qobject.cc:130
#87 0x00007f274427d9c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#88 0x00007f274428013d in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#89 0x00007f27442d7353 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#90 0x00007f273d0e6417 in g_main_context_dispatch ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#91 0x00007f273d0e6650 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#92 0x00007f273d0e66dc in g_main_context_iteration ()
   from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#93 0x00007f27442d697f in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#94 0x00007f274427b9fa in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#95 0x00007f274409a23a in QThread::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#96 0x00007f274409f17d in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#97 0x00007f274383a6db in start_thread (arg=0x7f271f27c700)
    at pthread_create.c:463
#98 0x00007f274673088f in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) c
Continuing.

Thread 4 "QThread" received signal SIGSEGV, Segmentation fault.
0x00007f2749052363 in patch::properties::update_vertex_normals (
    this=0x7f27117c2c30, reset=false, force=false)
    at libinterp/corefcn/graphics.cc:10125
10125         std::vector<RowVector> vec_vn [num_v];  // list of normals for
vertices
(gdb) c
Continuing.


    _______________________________________________________

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]