bugGNU Octave - Bugs: bug #53101, Ctrl+C no longer breaks to gdb...

 
 

bug #53101: Ctrl+C no longer breaks to gdb prompt

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Fri 09 Feb 2018 01:07:45 AM UTC  
 
Category: InterpreterSeverity: 4 - Important
Priority: 5 - NormalItem Group: Regression
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 12 Feb 2018 10:51:07 PM UTC, comment #4:

Confirmed that SIGSTOP works, therefore also Ctrl+Z in Octave sends control back to gdb and allows debugging and resuming.

Mike Miller <mtmiller>
Project Administrator
Mon 12 Feb 2018 10:42:36 PM UTC, comment #3:

According to https://stackoverflow.com/q/11543288/384593, which looks very similar to what Octave is now doing, a workaround is to send SIGSTOP to octave-cli from a separate program.

But apparently the whole idea of using a separate thread to wait on and catch signals including SIGINT breaks the normal mechanism of using Ctrl+C to break out of the program and interact with gdb.

Mike Miller <mtmiller>
Project Administrator
Mon 12 Feb 2018 09:47:00 PM UTC, comment #2:

This is a side effect of the signal handling overhaul in c5c11b07598a.

Also affects gdb remotely attached to the octave-gui process.

Mike Miller <mtmiller>
Project Administrator
Mon 12 Feb 2018 07:51:43 PM UTC, comment #1:

I'm not sure why this is happening now, but it is not intended behavior.

John W. Eaton <jwe>
Project Administrator
Fri 09 Feb 2018 01:07:45 AM UTC, original submission:

When running octave-cli under gdb, it used to be possible to

Now octave seems to catch the Ctrl+C itself and not allow control to be returned to the debugger.

If this is an improvement to make Ctrl+C more robust in octave, that's ok, but is there any way to work interactively with a debugger now?

Mike Miller <mtmiller>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1