mail-archives/mono-bugs/2005-June/030736.html

95 строки
4.6 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:03:35 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 74921][Maj] Changed - The runtime doesn't work
correctly when compiled with gcc-4.0
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2074921%5D%5BMaj%5D%20Changed%20-%20The%20runtime%20doesn%27t%20work%0A%09correctly%20when%20compiled%20with%20gcc-4.0&In-Reply-To=bug-74921%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="030735.html">
<LINK REL="Next" HREF="030737.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 74921][Maj] Changed - The runtime doesn't work
correctly when compiled with gcc-4.0</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2074921%5D%5BMaj%5D%20Changed%20-%20The%20runtime%20doesn%27t%20work%0A%09correctly%20when%20compiled%20with%20gcc-4.0&In-Reply-To=bug-74921%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 74921][Maj] Changed - The runtime doesn't work
correctly when compiled with gcc-4.0">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Tue Jun 21 07:07:42 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="030735.html">[Mono-bugs] [Bug 75320][Maj] Changed - [GMCS] references to static
generic fields are compiled to unverifiable code
</A></li>
<LI>Next message: <A HREF="030737.html">[Mono-bugs] [Bug 74975][Nor] Changed - Bad CS0647 when
__SECURITY_BOOTSTRAP_DB env variable is present
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30736">[ date ]</a>
<a href="thread.html#30736">[ thread ]</a>
<a href="subject.html#30736">[ subject ]</a>
<a href="author.html#30736">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">norbert at spice.gia.rwth-aachen.de.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=74921">http://bugzilla.ximian.com/show_bug.cgi?id=74921</A>
--- shadow/74921 2005-06-21 03:13:31.000000000 -0400
+++ shadow/74921.tmp.29843 2005-06-21 07:07:42.000000000 -0400
@@ -177,6 +177,21 @@
So, what seems to happen is that the gc sees a thread multiple times
while trying to stop the world. It then waits too many times on the
semaphore. I've yet to figure out who's adding duplicate entries.
------- Additional Comments From <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">bmaurer at users.sf.net</A> 2005-06-21 03:13 -------
Should be fixed in head and 1.1.8.1. I can run monodoc and monodevelop...
+
+------- Additional Comments From <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">norbert at spice.gia.rwth-aachen.de</A> 2005-06-21 07:07 -------
+This bug is fixed in 1.1.8.1 since here 'libgc' gets compiled without
+'-fexceptions'.
+The reason for the misbehaviour is that with '-fexceptions' the combo
+'gcc/glibc(nptl)' uses exception based stack-unwinding and without
+'-fexceptions' it uses legacy setjmp/longjmp based stack unwinding.
+Since the mono runtime is compiled without '-fexceptions', stack
+unwinding (!and calling of any thread cleanup handlers!) initiated by
+a call of 'pthread_exit()' from the mono runtime will NOT call
+'GC_thread_exit_proc()' if 'libgc' is compiled with '-fexceptions'.
+So already terminated threads will remain in GC_threads[], making
+'pthread_stop_world()' waiting for eternity.
+For more info one may want to have a look at &lt;pthread.h&gt; as it comes
+with glibc-2.3.x/nptl-enabled.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="030735.html">[Mono-bugs] [Bug 75320][Maj] Changed - [GMCS] references to static
generic fields are compiled to unverifiable code
</A></li>
<LI>Next message: <A HREF="030737.html">[Mono-bugs] [Bug 74975][Nor] Changed - Bad CS0647 when
__SECURITY_BOOTSTRAP_DB env variable is present
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#30736">[ date ]</a>
<a href="thread.html#30736">[ thread ]</a>
<a href="subject.html#30736">[ subject ]</a>
<a href="author.html#30736">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>