bugGNUstep - Bugs: bug #33405, Release fails in multithreaded...

 
 

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

bug #33405: Release fails in multithreaded environment

Submitted by:  Thomas Davie <beelsebob>
Submitted on:  Thu 26 May 2011 07:01:04 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Works For Me
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 18 Jun 2011 01:11:19 PM UTC, comment #2:

No follow-up ...can't reproduce.

Richard Frith-Macdonald <CaS>
Project Member
Thu 26 May 2011 09:19:54 AM UTC, comment #1:

I can't reproduce this with gnustep trunk built with gcc and the traditional runtime (or built with gcc-4.6 and using the gnu rumtime).
Could the problem be clang/libobjc2 related, or could this just be a transient problem with base while working on bug #3392?

Richard Frith-Macdonald <CaS>
Project Member
Thu 26 May 2011 07:01:04 AM UTC, original submission:

When an NSThread has been created, release no longer causes objects to hit a retain count of 0, and no longer triggers deallocation. Source to reproduce the problem is attached. Using svn trunk clang, libobjc2, gnustep-make and gnustep-base, my output from this is:

tatd2@GLaDOS:~/Desktop$ ./obj/Test
2011-05-26 06:51:53.532 Test[4334] Testing outside thread
2011-05-26 06:51:53.533 Test[4334] Allocing A 0xab2b20
2011-05-26 06:51:53.533 Test[4334] Releasing A 0xab2b20 (count before 1)
2011-05-26 06:51:53.533 Test[4334] Dealloc A 0xab2b20
2011-05-26 06:51:53.533 Test[4334]
2011-05-26 06:51:53.533 Test[4334] Testing outside thread again
2011-05-26 06:51:53.533 Test[4334] Allocing A 0xab2b20
2011-05-26 06:51:53.533 Test[4334] Releasing A 0xab2b20 (count before 1)
2011-05-26 06:51:53.533 Test[4334] Dealloc A 0xab2b20
2011-05-26 06:51:53.533 Test[4334]
2011-05-26 06:51:53.533 Test[4334] Testing inside thread
2011-05-26 06:51:53.534 Test[4334] Allocing A 0xadae30
2011-05-26 06:51:53.534 Test[4334] Releasing A 0xadae30 (count before 1)
2011-05-26 06:51:53.534 Test[4334]
2011-05-26 06:51:53.534 Test[4334] Testing outside thread again
2011-05-26 06:51:53.534 Test[4334] Allocing A 0xb8ae30
2011-05-26 06:51:53.534 Test[4334] Releasing A 0xb8ae30 (count before 1)

Thomas Davie <beelsebob>

 

Attached Files
file #23451:  test.m added by beelsebob (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by beelsebob (Submitted the item)
  • -unavailable- added by beelsebob
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 18 Jun 2011 01:11:19 PM UTCCaSOpen/ClosedOpen=>Closed
    Thu 26 May 2011 09:19:54 AM UTCCaSStatusNone=>Works For Me
    Thu 26 May 2011 07:01:04 AM UTCbeelsebobAttached File-=>Added test.m, #23451
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1