bugGNU Octave - Bugs: bug #47107, error with struct input ignores...

 
 

bug #47107: error with struct input ignores stack field

Submitter:  Julien Bect <jbect>
Submitted:  Wed 10 Feb 2016 08:17:16 AM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 4.0.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 03 Sep 2017 01:20:22 AM UTC, comment #3: 

Marking as confirmed.  Not that many people use this functionality, so until there is a strong interest it probably won't get fixed.

Rik <rik5>
Group administrator
Thu 11 Feb 2016 09:17:28 AM UTC, comment #2: 

Well, both, actually ;-)

I have some code where I use error with a struct input, and I was surprised to discover that my code behaved differently in Matlab and in Octave.

It took me some time to realize that the stack field was simply ignored by Octave.  In fact, the documentation for 'error' does not even mention the case where error is called with a struct input.

So, yes, I was mainly recording this in the tracker to make it easier for people to find this information.

But of course I would be happy if someone could tackle the issue. It has been there for such a long time, I assume it must not be bothering too many people...

Julien Bect <jbect>
Thu 11 Feb 2016 09:06:48 AM UTC, comment #1: 

Thanks for the bug report, Julien.

There are lots of FIXMEs in the code.  Are you suggesting that we do something to address this one, or just putting it in the tracker for the record?

Lachlan Andrew <lachlan>
Wed 10 Feb 2016 08:17:16 AM UTC, original submission:  

The error () function, when called with a struct input argument, ignores the 'stack' field.

There is a comment about that in libinterp/corefcn/error.cc:

// FIXME: also need to handle "stack" field in error structure,
//        but that will require some more significant surgery on
//        handle_message, error_with_id, etc.


Julien Bect <jbect>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by jbect (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-09-03 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code