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


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

Submitted by:  Juan Pablo Carbajal <juanpi>
Submitted on:  Thu 09 Mar 2017 06:41:57 PM UTC  
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 3 - LowItem Group: Segfault, Bus Error, etc.
Status: PostponedAssigned to: None
Originator Name: juanpiOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 21 Mar 2017 05:21:21 PM UTC, comment #5:


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

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 =


fy =


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 =


upper =


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

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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Aug 2017 07:07:05 PM UTCjweSummary[optim-1.5.2] nonlin_curvefit crash=>[octave forge] (optim) nonlin_curvefit crash in 1.5.2
    Tue 21 Mar 2017 05:24:30 PM UTCphilipnienhuisPriority5 - Normal=>3 - Low

    Back to the top

    Powered by Savane 3.1-cleanup1