bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #41111] C++ destructors not called correctly in finalize breaking o


From: Richard Frith-Macdonald
Subject: [bug #41111] C++ destructors not called correctly in finalize breaking objc_setAssociatedObject
Date: Tue, 07 Jan 2014 10:46:54 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.71 (KHTML, like Gecko) Version/6.1 Safari/537.71

Update of bug #41111 (project gnustep):

                  Status:               Need Info => Fixed                  
             Open/Closed:                    Open => In Test                

    _______________________________________________________

Follow-up Comment #3:

Hmm … after spending a long time looking at this (and into the runtime code
a little), it seems the report is rather misleading.

Firstly, the test case is broken to always fail because it depends on the
associated object being deallocated, and that object is in an autorelease pool
which won't be deallocated until *after* the test takes place.
i fixed that.

Secondly, the two code snippets *do* behave identically on my system at least;
the suggested code fix doesn't work.

It seems the actual problem is in the logic of the check for small objects
earlier … which was causing the deallocation to start with the wrong class. 
I reversed the logic of the test in svn trunk, and I think that fixes the
issue.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41111>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]