~/Temp/octave-4.4.1$ sudo gdb -x .gdbcmds_axes_xlim_error -p 1348 GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 1348 [New LWP 1349] [New LWP 1350] [New LWP 1351] [New LWP 1352] [New LWP 1353] [New LWP 1354] [New LWP 1355] [New LWP 1356] [New LWP 1357] [New LWP 1359] [New LWP 1360] [New LWP 1363] [New LWP 1364] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0x00007fafbd9a474d in poll () at ../sysdeps/unix/syscall-template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. Breakpoint 1 at 0x7fafc02867fb: axes::update_axis_limits. (2 locations) [Switching to Thread 0x7faf76dc1700 (LWP 1363)] Thread 13 "QThread" hit Breakpoint 1, axes::update_axis_limits (this=0x7faf6c506540, axis_type="xlim", h=...) at libinterp/corefcn/graphics.cc:7783 warning: Source file is more recent than executable. 7783 { Breakpoint 2 at 0x7fafc0286929: file libinterp/corefcn/graphics.cc, line 7825. Breakpoint 3 at 0x7fafc0286c38: file libinterp/corefcn/graphics.cc, line 7833. ---Type to continue, or q to quit--- Breakpoint 4 at 0x7fafc028845d: file libinterp/corefcn/graphics.cc, line 7972. Thread 13 "QThread" hit Breakpoint 2, axes::update_axis_limits (this=0x7faf6c506540, axis_type="xlim", h=...) at libinterp/corefcn/graphics.cc:7825 7825 if (axis_type == "xdata" || axis_type == "xscale" $1 = { = { > = { > = { _vptr.Array = 0x7fafc10e5c80 , dimensions = { rep = 0x23e6bf0 }, rep = 0x7fafbf2c2950 ::nil_rep()::nr>, slice_data = 0x23afa40, slice_len = 0 }, }, }, } ndims: 2 dims: {0, 0} $2 = { data = 0x23afa40, len = 0, count = { ---Type to continue, or q to quit--- count = 353 } } Thread 13 "QThread" hit Breakpoint 3, axes::update_axis_limits (this=0x7faf6c506540, axis_type="xlim", h=...) at libinterp/corefcn/graphics.cc:7833 7833 if (xproperties.xlimmode_is ("auto")) $3 = { = { > = { > = { _vptr.Array = 0x7fafc10e5c80 , dimensions = { rep = 0x7faf6c43d890 }, rep = 0x7faf6c60d6b0, slice_data = 0x7faf6c652300, slice_len = 4 }, }, }, } ndims: 2 dims: {4, 1} $4 = { data = 0x7faf6c652300, ---Type to continue, or q to quit--- len = 4, count = { count = 1 } } Thread 13 "QThread" hit Breakpoint 4, axes::update_axis_limits (this=0x7faf6c506540, axis_type="xlim", h=...) at libinterp/corefcn/graphics.cc:7972 7972 xproperties.set_xlim (limits); Breakpoint 5 at 0x7fafbf97a970 (2 locations) Thread 13 "QThread" hit Breakpoint 5, 0x00007fafbf97a970 in axes::properties::set_xlim(octave_value const&)@plt () from /opt/octave/lib/octave/4.4.1/liboctinterp.so.6 Single stepping until exit from function _ZN4axes10properties8set_xlimERK12octave_value@plt, which has no line number information. axes::properties::set_xlim (this=0x7faf76dbdbf0, val=...) at libinterp/corefcn/graphics.h:6022 warning: Source file is more recent than executable. 6022 void set_xlim (const octave_value& val) Thread 13 "QThread" hit Breakpoint 5, axes::properties::set_xlim (this=0x7faf6c506550, val=...) at libinterp/corefcn/graphics.h:6022 6022 void set_xlim (const octave_value& val) Breakpoint 6 at 0x7fafbf9b06c0 (2 locations) ---Type to continue, or q to quit--- Thread 13 "QThread" hit Breakpoint 6, 0x00007fafbf9b06c0 in array_property::do_set(octave_value const&)@plt () from /opt/octave/lib/octave/4.4.1/liboctinterp.so.6 Breakpoint 7 at 0x7fafc02ad99e: file libinterp/corefcn/graphics.h, line 1454. Thread 13 "QThread" hit Breakpoint 6, array_property::do_set (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.h:1450 1450 bool do_set (const octave_value& v) Breakpoint 8 at 0x7fafbf99aea0 (2 locations) 1452 octave_value tmp = (v.issparse () ? v.full_value () : v); Thread 13 "QThread" hit Breakpoint 7, array_property::do_set (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.h:1454 1454 if (! validate (tmp)) 1449 protected: 1450 bool do_set (const octave_value& v) 1451 { 1452 octave_value tmp = (v.issparse () ? v.full_value () : v); 1453 1454 if (! validate (tmp)) 1455 error (R"(invalid value for array property "%s")", 1456 get_name ().c_str ()); 1457 1458 // FIXME: should we check for actual data change? $5 = {4, 1} ---Type to continue, or q to quit--- Thread 13 "QThread" hit Breakpoint 8, 0x00007fafbf99aea0 in array_property::validate(octave_value const&)@plt () from /opt/octave/lib/octave/4.4.1/liboctinterp.so.6 Single stepping until exit from function _ZN14array_property8validateERK12octave_value@plt, which has no line number information. array_property::validate (this=0x200, v=...) at libinterp/corefcn/graphics.cc:1419 1419 { Thread 13 "QThread" hit Breakpoint 8, array_property::validate (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.cc:1419 1419 { 1420 bool xok = false; Breakpoint 9 at 0x7fafc018291c: file libinterp/corefcn/graphics.cc, line 1451. Breakpoint 10 at 0x7fafc018294b: file libinterp/corefcn/graphics.cc, line 1455. Thread 13 "QThread" hit Breakpoint 9, array_property::validate (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.cc:1451 1451 if (itdims.ndims () == vlen) Thread 13 "QThread" hit Breakpoint 10, array_property::validate (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.cc:1455 1455 for (int i = 0; xok && i < vlen; i++) i = 1813728192 itdims = { rep = 0x7faf6c4ef610 } it = { ---Type to continue, or q to quit--- rep = } vdims = { rep = 0x7faf6c43d890 } vlen = 2 xok = true $6 = {1, 2} $7 = {4, 1} 1450 1451 if (itdims.ndims () == vlen) 1452 { 1453 xok = true; 1454 1455 for (int i = 0; xok && i < vlen; i++) 1456 { 1457 if (itdims(i) > 0) 1458 { 1459 if (itdims(i) != vdims(i)) #0 array_property::validate (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.cc:1455 #1 0x00007fafc02ad9b1 in array_property::do_set (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.h:1454 #2 0x00007fafc02ae19b in row_vector_property::do_set (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.h:1562 #3 0x00007fafc0180782 in base_property::set (this=0x7faf6c50b240, v=..., do_run=false, do_notify_toolkit=true) ---Type to continue, or q to quit--- at libinterp/corefcn/graphics.cc:1158 #4 0x00007fafc02bbcf3 in axes::properties::set_xlim (this=0x7faf6c506550, val=...) at libinterp/corefcn/graphics.h:6024 #5 0x00007fafc02884a9 in axes::update_axis_limits (this=0x7faf6c506540, axis_type="xlim", h=...) at libinterp/corefcn/graphics.cc:7972 #6 0x00007fafc02b20cc in graphics_object::update_axis_limits (this=0x7faf76dbdfe0, axis_type="xlim", h=...) at libinterp/corefcn/graphics.h:3028 (gdb) n 1457 if (itdims(i) > 0) (gdb) n 1459 if (itdims(i) != vdims(i)) (gdb) n 1460 xok = false; (gdb) n 1455 for (int i = 0; xok && i < vlen; i++) (gdb) n 1449 dim_vector itdims = (*it); (gdb) n 1445 for (auto it = size_constraints.cbegin (); (gdb) n 1446 ! xok && it != size_constraints.cend (); (gdb) n 1445 for (auto it = size_constraints.cbegin (); (gdb) n 1449 dim_vector itdims = (*it); (gdb) n Thread 13 "QThread" hit Breakpoint 9, array_property::validate (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.cc:1451 1451 if (itdims.ndims () == vlen) (gdb) p *(itdims.rep)@vlen $8 = {2, 1} (gdb) n 1453 xok = true; (gdb) n Thread 13 "QThread" hit Breakpoint 10, array_property::validate (this=0x7faf6c50b240, v=...) at libinterp/corefcn/graphics.cc:1455 1455 for (int i = 0; xok && i < vlen; i++) (gdb) n 1457 if (itdims(i) > 0) (gdb) n 1459 if (itdims(i) != vdims(i)) (gdb) n 1460 xok = false; (gdb) n 1455 for (int i = 0; xok && i < vlen; i++) (gdb) n 1449 dim_vector itdims = (*it); (gdb) n 1445 for (auto it = size_constraints.cbegin (); (gdb) n 1446 ! xok && it != size_constraints.cend (); (gdb) n 1445 for (auto it = size_constraints.cbegin (); (gdb) n 1439 dim_vector vdims = v.dims (); (gdb) n 1469 if (xok) (gdb) c Continuing. [Inferior 1 (process 1348) exited with code 01] (gdb)