bugGNU Octave - Bugs: bug #62248, s = dbstatus() throws a strange...

 
 

bug #62248: s = dbstatus() throws a strange error when debug_on_interrupt is true

Submitter:  Rik <rik5>
Submitted:  Fri 01 Apr 2022 11:35:21 PM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.0.92 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 05 Apr 2022 08:55:20 PM UTC, comment #2: 

Turns out Octave was returning a null octave_value object rather than 'octave_value ("")' to return an empty string octave_value object.  I fixed that on the stable branch here: http://hg.savannah.gnu.org/hgweb/octave/rev/41101f2facdc.

Closing report.

Rik <rik5>
Group administrator
Tue 05 Apr 2022 12:27:45 PM UTC, comment #1: 

Confirmed on Windows.

Something seems to be wrong with the structure returned by dbstatus. After executing the commands in comment #0:

>> fieldnames(y)
        ans =
        {
          [1,1] = bkpt
          [2,1] = intr
        }

>> y.intr
error: structure has no member 'intr'


Markus Mützel <mmuetzel>
Group administrator
Fri 01 Apr 2022 11:35:21 PM UTC, original submission:  

Sample Octave session showing "octave_base_value::print ()" error.


octave:2> debug_on_interrupt (1)
octave:3> debug_on_interrupt
ans = 1
octave:4> dbstatus
stop if interrupt
octave:5> y = dbstatus
error: octave_base_value::print (): wrong type argument '<unknown type>'
y =

  scalar structure containing the fields:

    bkpt =

      0x1 struct array containing the fields:

        name
        file
        line
        cond

    intr =


It's not that big a deal, but clearly something is wrong.

Rik <rik5>
Group administrator

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by rik5 (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-05 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Releasedev 7.0.92

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code