bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #30863] Segfault problem on windows (all applications) NSTask/threa


From: Riccardo mottola
Subject: [bug #30863] Segfault problem on windows (all applications) NSTask/thread
Date: Wed, 25 Aug 2010 13:05:58 +0000
User-agent: Opera/9.80 (Windows NT 5.1; U; en-GB) Presto/2.6.30 Version/10.61

Follow-up Comment #3, bug #30863 (project gnustep):

Apapplying the patch pasted below (removing the autoreleases inserted) solves
the crash.

Index: Source/NSTask.m
===================================================================
--- Source/NSTask.m     (revisione 31199)
+++ Source/NSTask.m     (copia locale)
@@ -907,7 +907,7 @@
 - (void) _terminatedChild: (int)status
 {
   [tasksLock lock];
-  IF_NO_GC([[self retain] autorelease];)
+//  IF_NO_GC([[self retain] autorelease];)
   NSMapRemove(activeTasks, (void*)(intptr_t)_taskId);
   [tasksLock unlock];
   _terminationStatus = status;
@@ -1019,7 +1019,7 @@
       [tasksLock lock];
       task = (NSConcreteWindowsTask*)NSMapGet(activeTasks,
        (void*)(intptr_t) taskId);
-      IF_NO_GC([[task retain] autorelease];)
+ //     IF_NO_GC([[task retain] autorelease];)
       [tasksLock unlock];
       if (task == nil)
        {
@@ -1358,7 +1358,7 @@
 #if    defined(WAITDEBUG)
              [tasksLock lock];
              t = (NSTask*)NSMapGet(activeTasks, (void*)(intptr_t)result);
-             IF_NO_GC([[t retain] autorelease];)
+//           IF_NO_GC([[t retain] autorelease];)
              [tasksLock unlock];
              if (t != nil)

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]