[Mono-bugs] [Bug 52608][Nor] Changed - mcs hangs or core dumps on FreeBSD 4.9 Stable

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Jul 2004 09:09:22 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by paf@design.ru.

http://bugzilla.ximian.com/show_bug.cgi?id=52608

--- shadow/52608	2004-06-23 22:03:31.000000000 -0400
+++ shadow/52608.tmp.12074	2004-07-20 09:09:22.000000000 -0400
@@ -62,6 +62,26 @@
 ------- Additional Comments From bmaurer@users.sf.net  2004-01-05 12:19 -------
 --> runtime
 
 ------- Additional Comments From luke@foolishgames.com  2004-01-05 13:46 -------
 When compiled without garbage collection, mcs, mint and mono work as
 expected.  
+
+------- Additional Comments From PAF@design.ru  2004-07-20 09:09 -------
+on FreeBSD libgc sends itself a SIG_USR1 to stop threads prior to 
+collect garbage.
+so mono should not intercept it on FreeBSD.
+
+libgc/include/private/gcconfig.h:
+#   ifdef FREEBSD
+...
+#       define SIG_SUSPEND SIGUSR1
+
+I've tried to comment out this line:
+mini.c:
+add_signal_handler (mono_thread_get_abort_signal (), 
+sigusr1_signal_handler);
+
+and it helps _this_ problem.
+
+my project still has other problems running under mono@FreeBSD, will 
+report them separately after proper debugging.