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

Group
 
 

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

Submitter:  Mike McCauley <mikem>
Submitted:  Fri 27 Mar 2009 05:56:36 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Already fixed in subversion trunk

Richard Frith-Macdonald <CaS>
Group 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>

 

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

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by mikem (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-03-27 CaS StatusNone Fixed
        Open/ClosedOpen Closed
    2009-03-27 mikem Attached File- Added NSNotificationQueue.diff, #17816

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code