bugGNU Octave - Bugs: bug #50502, [octave forge] (optim)...

 
 

bug #50502: [octave forge] (optim) nonlin_curvefit crash in 1.5.2

Submitter:  Juan Pablo Carbajal <juanpi>
Submitted:  Thu 09 Mar 2017 06:41:57 PM UTC
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  3 - Low Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  juanpi Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

( Jump to the original submission )

Wed 25 Aug 2021 11:55:58 AM UTC, comment #6: 

The code from comment #0 works for me with octave 6.3, i.e. I get the expected result as in comment #3. I'll close this report, which is now very old, but it can be reopen later if someone can reproduce with a recent version of Octave.

Pantxo Diribarne <pantxo>
Project Member
Tue 21 Mar 2017 05:21:21 PM UTC, comment #5: 

Hi,

pkg-devs decided that since this is a bug against dev versions of Octave it wont fix.
I am ok with that.

@Devs: please close this bug. Maybe as "won't fix"?

Juan Pablo Carbajal <juanpi>
Project Member
Sun 12 Mar 2017 02:36:49 AM UTC, comment #4: 

thanks, still crashes in HG ID "44d51b2b691c"

Running with debug symbols I get from gdb

Thread 15 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffb4f27700 (LWP 26529)]
0x00007ffff477c8ee in _IO_vfprintf_internal (s=s@entry=0x7fffb47282d0,
    format=format@entry=0x7fffb4728850 "%s: called from",
    ap=ap@entry=0x7fffb47288a0) at vfprintf.c:1267
1267        vfprintf.c: No such file or directory.

>where
#0  0x00007ffff477c8ee in _IO_vfprintf_internal (s=s@entry=0x7fffb47282d0,
    format=format@entry=0x7fffb4728850 "%s: called from",
    ap=ap@entry=0x7fffb47288a0) at vfprintf.c:1267
#1  0x00007ffff47a7053 in _IO_vasprintf (result_ptr=0x7fffb4728450,
    format=0x7fffb4728850 "%s: called from", args=0x7fffb47288a0)
    at vasprintf.c:59
#2  0x00007ffff5cf51be in octave_vasprintf_wrapper (buf=0x7fffb4728450,
    fmt=0x7fffb4728850 "%s: called from", args=0x7fffb47288a0)
    at ../default/liboctave/wrappers/vasprintf-wrapper.c:38
#3  0x00007ffff722f537 in octave_vasprintf[abi:cxx11](char const*, __va_list_tag*) (fmt=0x7fffb4728850 "%s: called from", args=0x7fffb47288a0)
    at ../default/libinterp/corefcn/utils.cc:1283
#4  0x00007ffff722f488 in octave_vformat (os=...,
    fmt=0x7fffb4728850 "%s: called from", args=0x7fffb47288a0)
    at ../default/libinterp/corefcn/utils.cc:1269
#5  0x00007ffff6e8ba4f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=false, os=..., name=0x0, id=0x7ffff72998bc "",
    fmt=0x7fffb4728850 "%s: called from", args=0x7fffb47288a0, with_cfn=false)
    at ../default/libinterp/corefcn/error.cc:163
#6  0x00007ffff6e8c04d in pr_where_2(std::ostream &, const char *, typedef __va_list_tag __va_list_tag *) (os=..., fmt=0x7ffff7299978 "%s: called from\n",
    args=0x7fffb47288a0) at ../default/libinterp/corefcn/error.cc:248
#7  0x00007ffff6e8c1ae in pr_where_1 (os=...,
    fmt=0x7ffff7299978 "%s: called from\n")
    at ../default/libinterp/corefcn/error.cc:265
#8  0x00007ffff6e8c234 in pr_where (os=..., who=0x7ffff7299943 "error",
    frames=...) at ../default/libinterp/corefcn/error.cc:284
#9  0x00007ffff6e8c530 in pr_where (os=..., who=0x7ffff7299943 "error")
    at ../default/libinterp/corefcn/error.cc:327
#10 0x00007ffff6e8c601 in make_execution_exception (who=0x7ffff7299943 "error")
    at ../default/libinterp/corefcn/error.cc:335
#11 0x00007ffff6e8d40c in error_1(std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (os=...,
    name=0x7ffff7299943 "error", id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb4728db0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:550
#12 0x00007ffff6e8d876 in verror_with_id_cfn (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb4728db0)
    at ../default/libinterp/corefcn/error.cc:618
#13 0x00007ffff7091999 in lo_error_with_id_handler (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element")
    at ../default/libinterp/corefcn/interpreter.cc:157
#14 0x00007ffff5cc11e4 in octave::err_invalid_resize ()
    at ../default/liboctave/util/lo-array-errwarn.cc:310
#15 0x00007ffff54d5675 in Array<char>::resize1 (this=0x7fffb4729030, n=0,
    rfv=@0x7fffb4728fc7: 0 '\000') at ../default/liboctave/array/Array.cc:918
#16 0x00007ffff54d5c3a in Array<char>::resize1 (this=0x7fffb4729030, n=0)
    at ../default/liboctave/array/Array.h:612
#17 0x00007ffff570990c in charNDArray::charNDArray (this=0x7fffb4729030, s="")
    at ../default/liboctave/array/chNDArray.cc:66
#18 0x00007ffff6cb61f6 in octave_char_matrix::octave_char_matrix (this=
    0x7fffa52a4f30, s="") at ../default/libinterp/octave-value/ov-ch-mat.h:73
#19 0x00007ffff6cb64bd in octave_char_matrix_str::octave_char_matrix_str (this=
    0x7fffa52a4f30, s="") at ../default/libinterp/octave-value/ov-str-mat.h:74
#20 0x00007ffff6cb6645 in octave_char_matrix_sq_str::octave_char_matrix_sq_str
    (this=0x7fffa52a4f30, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:203
#21 0x00007ffff6c91d09 in octave_value::octave_value (this=0x7fffb4729210,
    s="", type=39 '\'') at ../default/libinterp/octave-value/ov.cc:779
#22 0x00007ffff6df65f7 in octave::call_stack::do_backtrace (
    this=0x7fffa41a7aa0, nskip=0, curr_user_frame=@0x7fffb47293a0: 0,
print_subfn=true) at ../default/libinterp/corefcn/call-stack.cc:427
#23 0x00007ffff7982534 in octave::call_stack::backtrace (nskip=0,
curr_user_frame=@0x7fffb47293a0: 0, print_subfn=true)
    at ../default/libinterp/corefcn/call-stack.h:292
#24 0x00007ffff6e8bd7f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=true, os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb47297b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:219
#25 0x00007ffff6e8d2ee in error_1(octave::execution_exception &, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (e=..., os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb47297b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:527
#26 0x00007ffff6e8d435 in error_1(std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (os=...,
    name=0x7ffff7299943 "error", id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb47297b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:552
#27 0x00007ffff6e8d876 in verror_with_id_cfn (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb47297b0)
    at ../default/libinterp/corefcn/error.cc:618
#28 0x00007ffff7091999 in lo_error_with_id_handler (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element")
    at ../default/libinterp/corefcn/interpreter.cc:157
#29 0x00007ffff5cc11e4 in octave::err_invalid_resize ()
    at ../default/liboctave/util/lo-array-errwarn.cc:310
#30 0x00007ffff54d5675 in Array<char>::resize1 (this=0x7fffb4729a30, n=0,
    rfv=@0x7fffb47299c7: 0 '\000') at ../default/liboctave/array/Array.cc:918
#31 0x00007ffff54d5c3a in Array<char>::resize1 (this=0x7fffb4729a30, n=0)
    at ../default/liboctave/array/Array.h:612
#32 0x00007ffff570990c in charNDArray::charNDArray (this=0x7fffb4729a30, s="")
    at ../default/liboctave/array/chNDArray.cc:66
#33 0x00007ffff6cb61f6 in octave_char_matrix::octave_char_matrix (
    this=0x7fffa52a43e0, s="")
    at ../default/libinterp/octave-value/ov-ch-mat.h:73
#34 0x00007ffff6cb64bd in octave_char_matrix_str::octave_char_matrix_str (
    this=0x7fffa52a43e0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:74
#35 0x00007ffff6cb6645 in octave_char_matrix_sq_str::octave_char_matrix_sq_str
    (this=0x7fffa52a43e0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:203
#36 0x00007ffff6c91d09 in octave_value::octave_value (this=0x7fffb4729c10,
    s="", type=39 '\'') at ../default/libinterp/octave-value/ov.cc:779
#37 0x00007ffff6df65f7 in octave::call_stack::do_backtrace (
    this=0x7fffa41a7aa0, nskip=0, curr_user_frame=@0x7fffb4729da0: 0,
    print_subfn=true) at ../default/libinterp/corefcn/call-stack.cc:427
#38 0x00007ffff7982534 in octave::call_stack::backtrace (nskip=0,
    curr_user_frame=@0x7fffb4729da0: 0, print_subfn=true)
    at ../default/libinterp/corefcn/call-stack.h:292
#39 0x00007ffff6e8bd7f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=true, os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472a1b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:219
#40 0x00007ffff6e8d2ee in error_1(octave::execution_exception &, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (e=..., os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an
 out-of-bounds array element", args=0x7fffb472a1b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:527
#41 0x00007ffff6e8d435 in error_1(std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (os=...,
    name=0x7ffff7299943 "error", id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472a1b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:552
#42 0x00007ffff6e8d876 in verror_with_id_cfn (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472a1b0)
    at ../default/libinterp/corefcn/error.cc:618
#43 0x00007ffff7091999 in lo_error_with_id_handler (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element")
    at ../default/libinterp/corefcn/interpreter.cc:157
#44 0x00007ffff5cc11e4 in octave::err_invalid_resize ()
    at ../default/liboctave/util/lo-array-errwarn.cc:310
#45 0x00007ffff54d5675 in Array<char>::resize1 (this=0x7fffb472a430, n=0,
    rfv=@0x7fffb472a3c7: 0 '\000') at ../default/liboctave/array/Array.cc:918
#46 0x00007ffff54d5c3a in Array<char>::resize1 (this=0x7fffb472a430, n=0)
   at ../default/liboctave/array/Array.h:612
#47 0x00007ffff570990c in charNDArray::charNDArray (this=0x7fffb472a430, s="")
    at ../default/liboctave/array/chNDArray.cc:66
#48 0x00007ffff6cb61f6 in octave_char_matrix::octave_char_matrix (
    this=0x7fffa52a3ed0, s="")
    at ../default/libinterp/octave-value/ov-ch-mat.h:73
#49 0x00007ffff6cb64bd in octave_char_matrix_str::octave_char_matrix_str (
    this=0x7fffa52a3ed0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:74
#50 0x00007ffff6cb6645 in octave_char_matrix_sq_str::octave_char_matrix_sq_str
    (this=0x7fffa52a3ed0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:203
#51 0x00007ffff6c91d09 in octave_value::octave_value (this=0x7fffb472a610,
    s="", type=39 '\'') at ../default/libinterp/octave-value/ov.cc:779
#52 0x00007ffff6df65f7 in octave::call_stack::do_backtrace (
    this=0x7fffa41a7aa0, nskip=0, curr_user_frame=@0x7fffb472a7a0: 0,
    print_subfn=true) at ../default/libinterp/corefcn/call-stack.cc:427
#53 0x00007ffff7982534 in octave::call_stack::backtrace (nskip=0,
    curr_user_frame=@0x7fffb472a7a0: 0, print_subfn=true)
    at ../default/libinterp/corefcn/call-stack.h:292
#54 0x00007ffff6e8bd7f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=true, os=..., name=0x7ffff7299943 "error",
     "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472abb0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:219
#55 0x00007ffff6e8d2ee in error_1(octave::execution_exception &, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (e=..., os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472abb0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:527
#56 0x00007ffff6e8d435 in error_1(std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (os=...,
    name=0x7ffff7299943 "error", id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472abb0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:552
#57 0x00007ffff6e8d876 in verror_with_id_cfn (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472abb0)
    at ../default/libinterp/corefcn/error.cc:618
#58 0x00007ffff7091999 in lo_error_with_id_handler (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element")
    at ../default/libinterp/corefcn/interpreter.cc:157
#59 0x00007ffff5cc11e4 in octave::err_invalid_resize ()
    at ../default/liboctave/util/lo-array-errwarn.cc:310
#60 0x00007ffff54d5675 in Array<char>::resize1 (this=0x7fffb472ae30, n=0,
    rfv=@0x7fffb472adc7: 0 '\000') at ../default/liboctave/array/Array.cc:918
#61 0x00007ffff54d5c3a in Array<char>::resize1 (this=0x7fffb472ae30, n=0)
    at ../default/liboctave/array/Array.h:612
#62 0x00007ffff570990c in charNDArray::charNDArray (this=0x7fffb472ae30, s="")
    at ../default/liboctave/array/chNDArray.cc:66
#63 0x00007ffff6cb61f6 in octave_char_matrix::octave_char_matrix (
    this=0x7fffa52a3860, s="")
    at ../default/libinterp/octave-value/ov-ch-mat.h:73
#64 0x00007ffff6cb64bd in octave_char_matrix_str::octave_char_matrix_str (
    this=0x7fffa52a3860, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:74
#65 0x00007ffff6cb6645 in octave_char_matrix_sq_str::octave_char_matrix_sq_str
    (this=0x7fffa52a3860, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:203
#66 0x00007ffff6c91d09 in octave_value::octave_value (this=0x7fffb472b010,
    s="", type=39 '\'') at ../default/libinterp/octave-value/ov.cc:779
#67 0x00007ffff6df65f7 in octave::call_stack::do_backtrace (
    this=0x7fffa41a7aa0, nskip=0, curr_user_frame=@0x7fffb472b1a0: 0,
    print_subfn=true) at ../default/libinterp/corefcn/call-stack.cc:427
#68 0x00007ffff7982534 in octave::call_stack::backtrace (nskip=0,
    curr_user_frame=@0x7fffb472b1a0: 0, print_subfn=true)
    at ../default/libinterp/corefcn/call-stack.h:292
#69 0x00007ffff6e8bd7f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=true, os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an
 out-of-bounds array element", args=0x7fffb472b5b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:219
#70 0x00007ffff6e8d2ee in error_1(octave::execution_exception &, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (e=..., os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472b5b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:527
#71 0x00007ffff6e8d435 in error_1(std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (os=...,
    name=0x7ffff7299943 "error", id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472b5b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:552
#72 0x00007ffff6e8d876 in verror_with_id_cfn (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472b5b0)
    at ../default/libinterp/corefcn/error.cc:618
#73 0x00007ffff7091999 in lo_error_with_id_handler (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element")
    at ../default/libinterp/corefcn/interpreter.cc:157
#74 0x00007ffff5cc11e4 in octave::err_invalid_resize ()
    at ../default/liboctave/util/lo-array-errwarn.cc:310
#75 0x00007ffff54d5675 in Array<char>::resize1 (this=0x7fffb472b830, n=0,
    rfv=@0x7fffb472b7c7: 0 '\000') at ../default/liboctave/array/Array.cc:918
#76 0x00007ffff54d5c3a in Array<char>::resize1 (this=0x7fffb472b830, n=0)
    at ../default/liboctave/array/Array.h:612
#77 0x00007ffff570990c in charNDArray::charNDArray (this=0x7fffb472b830, s="")
    at ../default/liboctave/array/chNDArray.cc:66
#78 0x00007ffff6cb61f6 in octave_char_matrix::octave_char_matrix (
    this=0x7fffa52a1fa0, s="")
    at ../default/libinterp/octave-value/ov-ch-mat.h:73
#79 0x00007ffff6cb64bd in octave_char_matrix_str::octave_char_matrix_str (
    this=0x7fffa52a1fa0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:74
#80 0x00007ffff6cb6645 in octave_char_matrix_sq_str::octave_char_matrix_sq_str
    (this=0x7fffa52a1fa0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:203
#81 0x00007ffff6c91d09 in octave_value::octave_value (this=0x7fffb472ba10,
    s="", type=39 '\'') at ../default/libinterp/octave-value/ov.cc:779
#82 0x00007ffff6df65f7 in octave::call_stack::do_backtrace (
    this=0x7fffa41a7aa0, nskip=0, curr_user_frame=@0x7fffb472bba0: 0,
    print_subfn=true) at ../default/libinterp/corefcn/call-stack.cc:427
#83 0x00007ffff7982534 in octave::call_stack::backtrace (nskip=0,
    curr_user_frame=@0x7fffb472bba0: 0, print_subfn=true)
    at ../default/libinterp/corefcn/call-stack.h:292
#84 0x00007ffff6e8bd7f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=true, os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472bfb0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:219
#85 0x00007ffff6e8d2ee in error_1(octave::execution_exception &, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (e=..., os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472bfb0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:527
#86 0x00007ffff6e8d435 in error_1(std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (os=...,
    name=0x7ffff7299943 "error", id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472bfb0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:552
#87 0x00007ffff6e8d876 in verror_with_id_cfn (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472bfb0)
    at ../default/libinterp/corefcn/error.cc:618
#88 0x00007ffff7091999 in lo_error_with_id_handler (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element")
    at ../default/libinterp/corefcn/interpreter.cc:157
#89 0x00007ffff5cc11e4 in octave::err_invalid_resize ()
    at ../default/liboctave/util/lo-array-errwarn.cc:310
#90 0x00007ffff54d5675 in Array<char>::resize1 (this=0x7fffb472c230, n=0,
    rfv=@0x7fffb472c1c7: 0 '\000') at ../default/liboctave/array/Array.cc:918
#91 0x00007ffff54d5c3a in Array<char>::resize1 (this=0x7fffb472c230, n=0)
    at ../default/liboctave/array/Array.h:612
#92 0x00007ffff570990c in charNDArray::charNDArray (this=0x7fffb472c230, s="")
    at ../default/liboctave/array/chNDArray.cc:66
#93 0x00007ffff6cb61f6 in octave_char_matrix::octave_char_matrix (
    this=0x7fffa52a27e0, s="")
    at ../default/libinterp/octave-value/ov-ch-mat.h:73
#94 0x00007ffff6cb64bd in octave_char_matrix_str::octave_char_matrix_str (
    this=0x7fffa52a27e0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:74
#95 0x00007ffff6cb6645 in octave_char_matrix_sq_str::octave_char_matrix_sq_str
    (this=0x7fffa52a27e0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:203
#96 0x00007ffff6c91d09 in octave_value::octave_value (this=0x7fffb472c410,
    s="", type=39 '\'') at ../default/libinterp/octave-value/ov.cc:779
#97 0x00007ffff6df65f7 in octave::call_stack::do_backtrace (
    this=0x7fffa41a7aa0, nskip=0, curr_user_frame=@0x7fffb472c5a0: 0,
    print_subfn=true) at ../default/libinterp/corefcn/call-stack.cc:427
#98 0x00007ffff7982534 in octave::call_stack::backtrace (nskip=0,
    curr_user_frame=@0x7fffb472c5a0: 0, print_subfn=true)
    at ../default/libinterp/corefcn/call-stack.h:292
#99 0x00007ffff6e8bd7f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=true, os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472c9b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:219
#100 0x00007ffff6e8d2ee in error_1(octave::execution_exception &, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag
*, bool) (e=..., os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472c9b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:527
#101 0x00007ffff6e8d435 in error_1(std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (os=...,
    name=0x7ffff7299943 "error", id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472c9b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:552
#102 0x00007ffff6e8d876 in verror_with_id_cfn (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472c9b0)
    at ../default/libinterp/corefcn/error.cc:618
#103 0x00007ffff7091999 in lo_error_with_id_handler (
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element")
    at ../default/libinterp/corefcn/interpreter.cc:157
#104 0x00007ffff5cc11e4 in octave::err_invalid_resize ()
    at ../default/liboctave/util/lo-array-errwarn.cc:310
#105 0x00007ffff54d5675 in Array<char>::resize1 (this=0x7fffb472cc30, n=0,
    rfv=@0x7fffb472cbc7: 0 '\000') at ../default/liboctave/array/Array.cc:918
#106 0x00007ffff54d5c3a in Array<char>::resize1 (this=0x7fffb472cc30, n=0)
    at ../default/liboctave/array/Array.h:612
#107 0x00007ffff570990c in charNDArray::charNDArray (this=0x7fffb472cc30, s="")
    at ../default/liboctave/array/chNDArray.cc:66
#108 0x00007ffff6cb61f6 in octave_char_matrix::octave_char_matrix (
    this=0x7fffa52a1ce0, s="")
    at ../default/libinterp/octave-value/ov-ch-mat.h:73
#109 0x00007ffff6cb64bd in octave_char_matrix_str::octave_char_matrix_str (
    this=0x7fffa52a1ce0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:74
#110 0x00007ffff6cb6645 in octave_char_matrix_sq_str::octave_char_matrix_sq_str
    (this=0x7fffa52a1ce0, s="")
    at ../default/libinterp/octave-value/ov-str-mat.h:203
#111 0x00007ffff6c91d09 in octave_value::octave_value (this=0x7fffb472ce10,
    s="", type=39 '\'') at ../default/libinterp/octave-value/ov.cc:779
#112 0x00007ffff6df65f7 in octave::call_stack::do_backtrace (
    this=0x7fffa41a7aa0, nskip=0, curr_user_frame=@0x7fffb472cfa0: 0,
    print_subfn=true) at ../default/libinterp/corefcn/call-stack.cc:427
#113 0x00007ffff7982534 in octave::call_stack::backtrace (nskip=0,
    curr_user_frame=@0x7fffb472cfa0: 0, print_subfn=true)
    at ../default/libinterp/corefcn/call-stack.h:292
#114 0x00007ffff6e8bd7f in verror(bool, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (
    save_last_error=true, os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",
    fmt=0x7ffff5d63930 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element", args=0x7fffb472d3b0, with_cfn=true)
    at ../default/libinterp/corefcn/error.cc:219
#115 0x00007ffff6e8d2ee in error_1(octave::execution_exception &, std::ostream &, const char *, const char *, const char *, typedef __va_list_tag __va_list_tag *, bool) (e=..., os=..., name=0x7ffff7299943 "error",
    id=0x7ffff5d63985 "Octave:invalid-resize",

and it keeps going forever...

Juan Pablo Carbajal <juanpi>
Project Member
Fri 10 Mar 2017 02:19:17 AM UTC, comment #3: 

It seems to be working on Fedora 25
HG ID for this build is "99ee4dd83ceb"
octave:6> x = randn(10,1); y = 2*x+1;
octave:7> [k fy cvg op] = nonlin_curvefit (@(k,x)k(1)*x+k(2), [0; 0], x, y)
k =

   2.0000
   1.0000

fy =

   3.22465
   1.41471
   4.29449
  -0.74552
   2.25316
   0.46475
   1.26779
   2.59261
  -1.80851
   1.09035

cvg =  3
op =

  scalar structure containing the fields:

    user_interaction =

      scalar structure containing the fields:

        stop = [](0x1)
        info = {}(0x1)

    niter =  4
    lambda =

      scalar structure containing the fields:

        lower =

           0
           0

        upper =

           0
           0

        eqlin = [](0x1)
        ineqlin = [](0x1)
        eqnonlin = [](0x1)
        ineqnonlin = [](0x1)

Dmitri A. Sergatskov <dasergatskov>
Thu 09 Mar 2017 10:53:51 PM UTC, comment #2: 

Maybe first I would try to reproduce.
Are you able to reproduce?

Juan Pablo Carbajal <juanpi>
Project Member
Thu 09 Mar 2017 07:06:34 PM UTC, comment #1: 

Since nonlin_curvefit doesn't call any compiled code of the package, the segfault must be due to Octave, not to the optim package.

To find the bug in Octave, a backtrace may be useful.

Olaf Till <i7tiol>
Project Member
Thu 09 Mar 2017 06:41:57 PM UTC, original submission:  

I am getting segmentation faults trying out trivial problems

x = randn(10,1); y = 2*x+1;
[k fy cvg op] = nonlin_curvefit (@(k,x)k(1)*x+k(2), [0; 0], x, y)
Segmentation fault (core dumped)

Ubuntu 16.10
Octave default branch HG-ID 7520aab218a0

Juan Pablo Carbajal <juanpi>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by i7tiol (Posted a comment)
  • -email is unavailable- added by juanpi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-08-25 pantxo StatusPostponed Works For Me
        Open/ClosedOpen Closed
    2017-08-12 jwe Summary[optim-1.5.2] nonlin_curvefit crash [octave forge] (optim) nonlin_curvefit crash in 1.5.2
    2017-03-21 philipnienhuis Priority5 - Normal 3 - Low
        StatusNone Postponed

    Back to the top


    Powered by Savane 3.9