bugGNU Octave - Bugs: bug #32089, no debugging info after an error...

 
 

bug #32089: no debugging info after an error in function

Submitter:  Eric Chassande-Mottin <ecm>
Submitted:  Mon 10 Jan 2011 02:04:28 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Eric Chassande-Mottin Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 Jan 2011 07:58:56 PM UTC, comment #1: 

I see the following behavior in a copy of Octave built from the current development sources:


octave:1> clear; idx=find([1 2]==3), a(1).a=1; a(2).a=2; b=a(idx); foo(b)
idx = [](1x0)
error: Invalid call to deal.  Correct usage is:

 -- Function File: [R1, R2, ..., RN] = deal (A)
 -- Function File: [R1, R2, ..., RN] = deal (A1, A2, ..., AN)

error: called from:
error:   /home/jwe/src/octave/scripts/help/print_usage.m at line 87, column 5
error:   /home/jwe/src/octave/scripts/general/deal.m at line 67, column 5
error:   /scratch/jwe/build/octave/foo.m at line 3, column 2


so I think this problem has been fixed.

John W. Eaton <jwe>
Group administrator
Mon 10 Jan 2011 02:04:28 PM UTC, original submission:  


not completely sure this is a bug really. the following line results in an error but does not return the line at which the error occurred.

octave3.2:2> clear; idx=find([1 2]==3), a(1).a=1; a(2).a=2; b=a(idx); foo(b)
idx = [](1x0)
error: Invalid call to deal.  Correct usage is:

 -- Function File: [R1, R2, ..., RN] = deal (A)
 -- Function File: [R1, R2, ..., RN] = deal (A1, A2, ..., AN)

function y=foo(x)

  y=deal(x.a)

endfunction

Eric Chassande-Mottin <ecm>

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by ecm (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 group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-10 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code