bugDDD - Bugs: bug #32949, "waiting until GDB gets...

 
 

bug #32949: "waiting until GDB gets ready" on Run

Submitted by:  John Boncek <johnboncek>
Submitted on:  Tue 29 Mar 2011 10:11:30 PM UTC  
 
Category: Gdb integrationSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 3.3.11

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 10 Jul 2014 12:29:53 PM UTC, comment #1:

Encountered this problem too. The easy solution as posted on Stackoverflow is to delete the init file in the ~/.ddd/ directory.

But that means all your customizations will be gone. So I started hunting for the real cause. I observed that the problem only occurs after I have used the "GDB Settings" dialog. Once you opened this dialog the init file mentioned above will grow because a lot of gdb settings will be stored there.

After shrinking those additional lines step by step I found the "offending line".
The problem is caused by the setting for extended-prompt. After opening the GDB settings dialog this line will read like

set extended-prompt not set\n\

This "not set" is what gdb will report on "show extended-prompt". Unfortunatley "set extended-prompt" is sort of buggy in gdb, so if I enter "set extended-prompt not set" in a gdb running from a shell without ddd involved gdb will lockup as well.

It looks like the only safe way of setting the extend-prompt is when it contains the string "(gdb)". So I modified the offending line in the init file and now it reads like this:

set extended-prompt (gdb) \n\

With this setting I do not encounter the problem any longer. Hope that helps in your case too.

Rainer K├Ânig <rakoenig>
Tue 29 Mar 2011 10:11:30 PM UTC, original submission:

When you run a program repeatedly using F2, DDD intermittently hangs for varying lengths of time with "Run: waiting until GDB gets ready" displayed, then sometimes continues and other times reports "GDB exited abnormally (segmentation fault)". This tends to get worse (happens more often, with longer delays, and more chance of the abnormal exit) the more times you run a program during a single debugging session.

Problems in GDB may be implicated as well as (or instead of) in DDD.

John Boncek <johnboncek>

 

(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 rakoenig (Posted a comment)
  • -unavailable- added by johnboncek (Submitted the item)
  • -unavailable- added by johnboncek
  •  

    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 logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 29 Mar 2011 10:11:31 PM UTCjohnboncekCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup