Fix termination segfault caused by a use-after free race by having the
finalizer_thread exit as soon as it finishes. okay robert@ naddy@
This commit is contained in:
parent
a860c12135
commit
f12f025fe7
@ -1,11 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.73 2012/12/26 17:47:56 naddy Exp $
|
||||
|
||||
BROKEN= unreliable build, fails in bulk builds
|
||||
# $OpenBSD: Makefile,v 1.74 2013/01/13 21:38:37 kurt Exp $
|
||||
|
||||
COMMENT= cross platform, open source .NET developement framework
|
||||
|
||||
DISTNAME= mono-2.10.9
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
|
||||
CATEGORIES= lang devel
|
||||
|
||||
|
11
lang/mono/patches/patch-mono_metadata_gc_c
Normal file
11
lang/mono/patches/patch-mono_metadata_gc_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-mono_metadata_gc_c,v 1.1 2013/01/13 21:38:37 kurt Exp $
|
||||
--- mono/metadata/gc.c.orig Thu Jan 10 10:55:32 2013
|
||||
+++ mono/metadata/gc.c Thu Jan 10 11:24:55 2013
|
||||
@@ -1098,6 +1098,7 @@ finalizer_thread (gpointer unused)
|
||||
}
|
||||
|
||||
SetEvent (shutdown_event);
|
||||
+ pthread_exit(NULL);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user