bugGNUstep - Bugs: bug #44477, Deadlock on class_addMethod


bug #44477: Deadlock on class_addMethod

Submitter:  Sergey <skudryas>
Submitted:  Sat 07 Mar 2015 06:38:37 PM UTC
Category:  Libraries Severity:  3 - Normal
Item Group:  Bug Status:  Works For Me
Privacy:  Public Assigned to:  gcasa
Open/Closed:  Declined
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Mon 17 Oct 2022 11:01:13 PM UTC, comment #3: 

Unable to reproduce.

Gregory John Casamento <gcasa>
Project Administrator
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>


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

Attach Files:

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-01 gcasa Open/ClosedOpen Declined
    2022-10-17 gcasa StatusNone Works For Me
        Assigned toNone gcasa
    2015-03-11 skudryas Attached File- Added associate.m.patch, #33309
    2015-03-07 FredKiefer CategoryBase/Foundation Libraries
    2015-03-07 skudryas Attached File- Added 2.m, #33282
    2015-03-07 skudryas Attached File- Added 1.m, #33280
        Attached File- Added backtrace.txt, #33281
        Carbon-Copy- Added skudryas

    Back to the top

    Powered by Savane 3.9