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/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep