bugDDD - Bugs: bug #24896, assertion `qu_count == count'...

 
 

bug #24896: assertion `qu_count == count' failed

Submitted by:  Peter Wainwright <pwainwright>
Submitted on:  Fri 21 Nov 2008 03:16:00 PM UTC  
 
Category: NoneSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Peter Wainwright <pwainwright>
Open/Closed: ClosedRelease: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 26 Nov 2008 10:03:52 AM UTC, comment #3:

Patches applied to Subversion (trunk, pydb and gddd branches).

Peter Wainwright <pwainwright>In charge of this item.
Sat 22 Nov 2008 01:19:46 PM UTC, comment #2:

The test I removed should be redundant, since the number of answers received should always be consistent with the flags set in extra_data. However, this requires careful updates to the code in several places, which makes comm-manag.C a nightmare to maintain.

In particular, the flag extra_data->refresh_frame was overlooked in the PYDB case. A further patch is necessary to fix this.

(file #16897)

Peter Wainwright <pwainwright>In charge of this item.
Sat 22 Nov 2008 11:40:31 AM UTC, comment #1:

The attached patch removes an if (...) test and fixes this particular problem for me.

I'm pretty sure the test should be qu_count >= 0, not > 0, and having made that change it becomes redundant (always true).

(file #16896)

Peter Wainwright <pwainwright>In charge of this item.
Fri 21 Nov 2008 03:16:00 PM UTC, original submission:

In pydb branch, as of Fri Nov 21 2008, running GDB as inferior debugger.

If I start ddd and issue the command "set print static-members off", DDD crashes with the following assertion failure:

comm-manag.C: In function `void extra_completed(StringArray&, const VoidArray&, void*)':
comm-manag.C:3337: assertion `qu_count == count' failed

ddd-3.3.11 does not crash here. Copying the old comm-manag.C from ddd-3.3.11 fixes the crash, so the bug appears to be related to that file.

Peter Wainwright <pwainwright>In charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #16897:  ddd-pydb-refresh_frame.patch added by pwainwright (469B - text/x-patch - Patch to handle extra_data->refresh_frame flag in PYDB case.)
file #16896:  ddd-pydb-qu_count.patch added by pwainwright (607B - text/x-patch - Patch to remove redundant if() test.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pwainwright (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 logged-in users can vote.

     

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

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 26 Nov 2008 10:03:52 AM UTCpwainwrightStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Sat 22 Nov 2008 01:19:46 PM UTCpwainwrightAttached File-=>Added ddd-pydb-refresh_frame.patch, #16897
    Sat 22 Nov 2008 12:04:29 PM UTCpwainwrightStatusWorks For Me=>In Progress
    Sat 22 Nov 2008 11:40:31 AM UTCpwainwrightAttached File-=>Added ddd-pydb-qu_count.patch, #16896
      StatusNone=>Works For Me
      Assigned toNone=>pwainwright

    Back to the top


    Powered by Savane 3.1-cleanup1