bugGNUstep - Bugs: bug #44477, Deadlock on class_addMethod


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

bug #44477: Deadlock on class_addMethod

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

Wed 11 Mar 2015 04:48:48 PM UTC, 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 07 Mar 2015 10:46:27 PM UTC, comment #1:

Corrected category

Fred Kiefer <FredKiefer>
Project Member
Sat 07 Mar 2015 06:38:37 PM UTC, 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 (1KiB - text/x-objcsrc)
file #33280:  1.m added by skudryas (2KiB - text/x-objcsrc)
file #33281:  backtrace.txt added by skudryas (1KiB - 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 11 Mar 2015 04:48:48 PM UTCskudryasAttached File-=>Added associate.m.patch, #33309
    Sat 07 Mar 2015 10:46:27 PM UTCFredKieferCategoryBase/Foundation=>Libraries
    Sat 07 Mar 2015 06:40:30 PM UTCskudryasAttached File-=>Added 2.m, #33282
    Sat 07 Mar 2015 06:38:37 PM UTCskudryasAttached 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