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

 
 

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

Submitted by:  Thorsten Meyer <tmeyier>
Submitted on:  Sat 26 Mar 2016 10:54:33 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: DuplicateAssigned to: None
Originator Name: Thorsten MeyerOpen/Closed: Closed
Release: 4.0.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project Administrator
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>
Project Member
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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by lachlan (Posted a comment)
  • -unavailable- added by tmeyier (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Mar 2016 02:52:48 AM UTCmtmillerOpen/ClosedOpen=>Closed
      Dependencies-=>Depends on bugs #45654
    Sat 26 Mar 2016 09:52:08 PM UTClachlanStatusNone=>Duplicate

    Back to the top


    Powered by Savane 3.1-cleanup1