bugGNU Octave - Bugs: bug #47542, ctrl-c interrupt terminates...

 
 

bug #47542: ctrl-c interrupt terminates external editor in octave-cli

Submitter:  Thorsten Meyer <tmeyier>
Submitted:  Sat 26 Mar 2016 10:54:33 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Thorsten Meyer Open/Closed:  * Closed
Release:  * 4.0.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 27 Mar 2016 02:52:48 AM UTC, comment #2: 

I think it's the same bug, closing as a duplicate.

Mike Miller <mtmiller>
Group Member
Sat 26 Mar 2016 09:52:08 PM UTC, comment #1: 

Thorsten, could you confirm that this is a duplicate of bug #45654?

The patch there should fix this problem for emacs, by detaching the editor from the "process group" associated with Octave.

I'll update it to fix it for nedit too.  Perhaps it should unconditionally detach the editor from the process group.  If someone more senior can advise me, that would be great :)

Lachlan Andrew <lachlan>
Sat 26 Mar 2016 10:54:33 AM UTC, original submission:  

I'm on debian testing/unstable. I can reproduce the bug below with 4.0.0 and 4.0.1

in a octave-cli session, when I start an editor with the edit function and try to interrupt an octave script with ctrl-c afterwards, the editor session crashes. Within octave itself the interrupt works as expected as far as I can see.

It looks like the interrupt gets somehow forwarded to the editor.

I have tried the "async" as well as the "synch" mode (with the EDITOR command with an & at the end) and I have tried to detach the stdin of the editor using

EDITOR("nedit %s </dev/null")

Also I have tried emacs as well as nedit. That all doesn't make any difference.

Thorsten Meyer <tmeyier>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by tmeyier (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
    2016-03-27 mtmiller Open/ClosedOpen Closed
        Dependencies- Depends on bugs #45654
    2016-03-26 lachlan StatusNone Duplicate

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code