bugGNUstep - Bugs: bug #44477, Deadlock on class_addMethod

 
 

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

bug #44477: Deadlock on class_addMethod

Submitted by:  Sergey <skudryas>
Submitted on:  Sat Mar 7 18:38:37 2015  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: BugStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Wed Mar 11 16:48:48 2015, comment #2:

Update: this is not deadlock, this is endless loop in mergeMethodsFromSuperclass, dtable.m line 525, because subclass->sibling_class points to self (subclass). This cycling is produced by code in associate.m line 217-218 in hiddenClass allocation.
I try to comment setup of sibling_class, and endless loop is disappeared.
You can see patch associate.m.patch.

This looks like a fix of this problem.
Some remarks?

(file #33309)

Sergey <skudryas>
Sat Mar 7 22:46:27 2015, comment #1:

Corrected category

Fred Kiefer <FredKiefer>
Project Member
Sat Mar 7 18:38:37 2015, original submission:

Hello, now I take libobjc2 rev 37977 from svn://svn.gna.org/svn/gnustep/libs/libobjc2/trunk
and gnustep-base rev 38378 from svn://svn.gna.org/svn/gnustep/tools/make/trunk
and I found deadlock in case like in example program (see in 2.m),
see backtrace in attach.
Could somebody clarify me if I do something wrong?

Sergey <skudryas>

 

Attached Files
file #33309:  associate.m.patch added by skudryas (498B - text/x-patch)
file #33282:  2.m added by skudryas (1kB - text/x-objcsrc)
file #33280:  1.m added by skudryas (2kB - text/x-objcsrc)
file #33281:  backtrace.txt added by skudryas (1kB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)
  • -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
    Wed Mar 11 16:48:48 2015skudryasAttached File-=>Added associate.m.patch, #33309
    Sat Mar 7 22:46:27 2015FredKieferCategoryBase/Foundation=>Libraries
    Sat Mar 7 18:40:30 2015skudryasAttached File-=>Added 2.m, #33282
    Sat Mar 7 18:38:37 2015skudryasAttached File-=>Added 1.m, #33280
      Attached File-=>Added backtrace.txt, #33281
      Carbon-Copy-=>Added skudryas

    Back to the top


    Powered by Savane 3.1-cleanup1