bugGNUstep - Bugs: bug #26024, crash in NSNotificationQueue...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26024: crash in NSNotificationQueue dealloc (PATCH included)

Submitted by:  Mike McCauley <mikem>
Submitted on:  Fri 27 Mar 2009 05:56:36 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 27 Mar 2009 06:09:26 AM UTC, comment #1:

Already fixed in subversion trunk

Richard Frith-Macdonald <CaS>
Project Member
Fri 27 Mar 2009 05:56:36 AM UTC, original submission:

crash in NSNotificationQueue dealloc

Observed in gnustep-base-1.18.0. Same broken code is in 1.19.0 Crash observed with Cygwin 1.5 on Windows server 2003, using gcc 4.3.

The bug occurs when remove_from_queue is called (which frees the item) before the item->prev link is fetched. At the end of the iteration, item will have been freed and item->prev may already be clobbered depending on the platform.

Mike McCauley <mikem>

 

Attached Files
file #17816:  NSNotificationQueue.diff added by mikem (830B - text/x-diff - diff -u patch file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by mikem (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 27 Mar 2009 06:09:26 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 27 Mar 2009 05:56:36 AM UTCmikemAttached File-=>Added NSNotificationQueue.diff, #17816

    Back to the top


    Powered by Savane 3.1-cleanup1