bugGNU Octave - Bugs: bug #41139, Clicking "step" too fast...

 
 

bug #41139: Clicking "step" too fast confuses the debugger, causes an error

Submitted by:  Michael C. Grant <mcgrant>
Submitted on:  Tue 07 Jan 2014 05:53:34 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  Torsten Lilge <ttl>
Originator Name:  Michael C. Grant Open/Closed:  Closed
Release:  3.8.0 Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Thu 09 Jan 2014 06:11:06 PM UTC, comment #5: 
Torsten Lilge <ttl>
Project MemberIn charge of this item.
Thu 09 Jan 2014 06:22:42 AM UTC, comment #4: 

I tested the patch on the stable branch on Linux and it works for me.  The changeset could go on either stable or gui-release.

Rik <rik5>
Project Administrator
Thu 09 Jan 2014 12:20:36 AM UTC, comment #3: 

I would love to test this, but I must be honest, I am having difficulty compiling Octave on my machine from the development sources. I have no difficulty with the packaged source release on ftp.octave.org, so presumably I'm getting tripped up on the bootstrapping. I'll let you know when I figure it out (indeed this inspires a feature request...)

Michael C. Grant <mcgrant>
Wed 08 Jan 2014 09:03:03 PM UTC, comment #2: 

Please find attached a patch that buffers the debug actions in a semaphore controlled queue in order to synchronize the gui and the core thread (same method is used for the execution of commands).
It fixes the issue on my system; could you please test it?

(file #30226)

Torsten Lilge <ttl>
Project MemberIn charge of this item.
Wed 08 Jan 2014 08:37:44 PM UTC, comment #1: 

Confirmed on Linux.

Torsten Lilge <ttl>
Project MemberIn charge of this item.
Tue 07 Jan 2014 05:53:34 PM UTC, original submission:  

Clicking the "dbstep" GUI button too fast causes the following result:

>> cvx_setup
stopped in /Users/mcgrant/Projects/CVX/trunk/cvx_setup.m at line 8
8: global cvx___
debug>
stopped in /Users/mcgrant/Projects/CVX/trunk/cvx_setup.m at line 9
9: cvx___ = [];
debug>
stopped in /Users/mcgrant/Projects/CVX/trunk/cvx_setup.m at line 10
10: squares = {};
debug>
stopped in /Users/mcgrant/Projects/CVX/trunk/cvx_setup.m at line 11
11: nret = false;
debug> error: dbstep: can only be called in debug mode
error: dbstep: can only be called in debug mode

error: called from:
error:   /Users/mcgrant/Projects/CVX/trunk/cvx_setup.m at line 11, column 6
>> error: dbstep: can only be called in debug mode
error: dbstep: can only be called in debug mode

Michael C. Grant <mcgrant>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30226:  debug_v01.patch added by ttl (5KiB - text/x-diff)

 

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

     

     

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-09 ttl StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2014-01-09 rik5 StatusPatch Submitted => Ready For Test
    2014-01-08 ttl Attached File- => Added debug_v01.patch, #30226
        StatusConfirmed => Patch Submitted
    2014-01-08 ttl StatusNone => Confirmed
        Assigned toNone => ttl
        Operating SystemMac OS => Any

    Back to the top


    Powered by Savane 3.5