bugGNU Octave - Bugs: bug #50312, dbstep fails when combined with...

 
 

bug #50312: dbstep fails when combined with another command: "dbstep; cmd2"

Submitted by:  nicodemus <nicmus>
Submitted on:  Wed 15 Feb 2017 10:59:15 AM UTC  
 
Category:  Interpreter Severity:  2 - Minor
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  4.2.0 Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 16 Feb 2017 05:24:19 PM UTC, comment #2:

Changing the priority to Low. The debug path is only occasionally used so it makes more sense to spend time fixing bugs on the default execution path. And there is an easy workaround of using just one dbnext command per line.

When it comes to debugging this, the issue is the dbnext command itself. It wants to stop after every single command execution.

For example,

As you can see, the debugger stops in the middle of the pipeline "cmd1; cmd2". If I use dbnext once more in this intermediate context then it executes cmd2 (sin (1)) and then line 3 from the script.

Obviously the Octave parser is confused about what stack frame it is located in. If I use the command "dbnext; dbnext" you might think that from the example above it would halt after the first "dbnext", and that typing "dbnext" would cause it to execute the second half. Instead, there is as an error issued.

Rik <rik5>
Project Administrator
Wed 15 Feb 2017 05:48:52 PM UTC, comment #1:

Confirmed here when using dbstep on the same line as another debug command. This goes back to at least version 3.8, this is not a recent change.

Easy workaround is to not use more than one debugging command per entry at the debug prompt.

Mike Miller <mtmiller>
Project Administrator
Wed 15 Feb 2017 10:59:15 AM UTC, original submission:

Hi when I run the debug octave --no-gui console a strange behaviour shows up by concatanating dbstep and other commands.

Here is an example which best explain the problem

nicodemus <nicmus>

 

(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 mtmiller (Posted a comment)
  • -email is unavailable- added by nicmus (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can 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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    Thu 16 Feb 2017 05:25:35 PM UTC rik5 Summarydebug: combining dbstep and dblist => dbstep fails when combined with another command: "dbstep; cmd2"
    Thu 16 Feb 2017 05:24:19 PM UTC rik5 Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 3 - Low
    Wed 15 Feb 2017 05:48:52 PM UTC mtmiller Item GroupSegfault, Bus Error, etc. => Incorrect Result
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.3