URL:
  <http://savannah.gnu.org/bugs/?33405>

                 Summary: Release fails in multithreaded environment
                 Project: GNUstep
            Submitted by: beelsebob
            Submitted on: Thu 26 May 2011 07:01:04 AM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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)




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 26 May 2011 07:01:04 AM GMT  Name: test.m  Size: 1kB   By: beelsebob

<http://savannah.gnu.org/bugs/download.php?file_id=23451>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33405>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to