bugGNU Octave - Bugs: bug #55541, GUI freezes when saving file that...

 
 

bug #55541: GUI freezes when saving file that is stopped in the debugger

Submitter:  Andrew Janke <apjanke>
Submitted:  Tue 22 Jan 2019 12:51:13 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.4.1 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 23 Jan 2019 09:01:01 PM UTC, comment #7: 

Okay, closing as fixed.

@Rik: Generally I agree. But in cases where the synchronization between worker and gui thread might be involved, there is a possibility that a dead-lock, which only shows up under some rare conditions, is causing the freeze.

Torsten Lilge <ttl>
Group Member
Wed 23 Jan 2019 08:41:57 PM UTC, comment #6: 

Works for me on stable too, as of "5.0.1 (hg id: a7502ba98540 + patches)". You can close this as fixed.

Andrew Janke <apjanke>
Wed 23 Jan 2019 08:12:17 PM UTC, comment #5: 

@Torsten: I wouldn't bother with the behavior on 4.4.1.  If this is a problem on the 5.0 stable branch then we should look at it, but I think it has already been fixed.

Rik <rik5>
Group administrator
Wed 23 Jan 2019 06:55:48 PM UTC, comment #4: 

Hardly: the `octave-gui` process is stuck at 0.3% CPU, and the Octave-4.4.1 process is at 0.0%.

Here are "samples" files I grabbed of the processes from Activity Monitor while it was frozen, if that helps:

file #46082:  octave-gui - sample while frozen after saving file stopped in debugger.txt
file #46083:  Octave-4.4.1 - sample while frozen after saving file stopped in debugger.txt

Andrew Janke <apjanke>
Wed 23 Jan 2019 06:48:38 PM UTC, comment #3: 

Works for me with 5.0.1 on Debian, too.

@Andrew, does Octave consume CPU resources when frozen?

Torsten Lilge <ttl>
Group Member
Tue 22 Jan 2019 04:43:14 PM UTC, comment #2: 

This works for me with the 5.0.1 stable branch.

@Andrew: Could you re-test with a newer version of Octave?

Rik <rik5>
Group administrator
Tue 22 Jan 2019 07:11:41 AM UTC, comment #1: 

Just to be sure, on Windows with octave-6.0.0 this behaves as designed. No crash, file is saved, Octave jumps out of debug mode.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 22 Jan 2019 12:51:13 AM UTC, original submission:  

When I'm stopped in a file in the debugger, modify the file, and save it without manually doing a "dbquit" first, the Octave GUI freezes.

To reproduce:

Create a hello_world.m file in the editor and save it:


function hello_world
  x = 1;
  y = 2;
endfunction


Set a breakpoint on line 3 by clicking in the left margin of the editor. Run "hello_world" in the command window. The debugger will stop at line 3. Add a new line below that that says "blah". Press Cmd-S to save. You'll get a prompt that says "This file is currently being executed. Quit debugging and save?". Click "Save". At this point for me, the GUI becomes unresponsive and I get a spinning-beachball mouse cursor.

Sorry I can't provide a crash dump or core file; when it's in this state it doesn't respond to "kill -SIGSEGV", so I have to just Force Quit it, and that doesn't result in a crash dump or core.

Andrew Janke <apjanke>

 

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

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by apjanke (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-23 ttl StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2019-01-23 apjanke Attached File- Added octave-gui - sample while frozen after saving file stopped in debugger.txt, #46082
        Attached File- Added Octave-4.4.1 - sample while frozen after saving file stopped in debugger.txt, #46083
    2019-01-22 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code