bugGNUstep - Bugs: bug #44428, Memory leak in libobjc2 on each...

 
 

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

bug #44428: Memory leak in libobjc2 on each call to objc_setAssociatedObject

Submitted by:  Sergey <skudryas>
Submitted on:  Wed 04 Mar 2015 08:22:50 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 07 Mar 2015 06:41:00 PM UTC, comment #2:

Sorry, this problem is fixed in HEAD of GNUstep. But I found new problem - https://savannah.gnu.org/bugs/index.php?44477

Sergey <skudryas>
Thu 05 Mar 2015 08:09:06 PM UTC, comment #1:

I try to make some changes, and I found that class_addMethod isn't working for hiddenClass. I don't understand why. So, I make some patch (see in attach), where destructor method is added into original object class (in 'super' for new hiddenClass). So, leak is fixed, but I think this is just a workaround for this problem.

(file #33252)

Sergey <skudryas>
Wed 04 Mar 2015 08:22:50 PM UTC, original submission:

Hello, I found memory leak, at each call to objc_setAssociatedObject, dtable (possibly, for hiddenClass) isn't freed. I created a simple program to illustrate this issue, and graph, generated by google-pperf, see in attach.

Sergey <skudryas>

 

Attached Files
file #33252:  associate.m.patch added by skudryas (487B - text/x-patch)
file #33247:  1.m.pdf added by skudryas (7KiB - application/pdf)
file #33248:  1.m added by skudryas (968B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by FredKiefer (Updated the item)
  • -unavailable- added by skudryas (Submitted the item)
  • -unavailable- added by skudryas
  •  

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 07 Mar 2015 10:44:44 PM UTCFredKieferStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Thu 05 Mar 2015 08:09:06 PM UTCskudryasAttached File-=>Added associate.m.patch, #33252
    Wed 04 Mar 2015 08:22:50 PM UTCskudryasAttached File-=>Added 1.m.pdf, #33247
      Attached File-=>Added 1.m, #33248
      Carbon-Copy-=>Added skudryas

    Back to the top


    Powered by Savane 3.1-cleanup1