[Issue 6215] ICE(el.c) DMD segfaults when built on system with XCode 4.2
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 26 11:38:39 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6215
--- Comment #2 from Robert Clipsham <robert at octarineparrot.com> 2011-06-26 19:33:46 BST ---
The following patch is a workaround, it seems something's going wrong with the
elem recycling system:
----
diff --git a/src/backend/el.c b/src/backend/el.c
index f5fa66d..9cc34fc 100644
--- a/src/backend/el.c
+++ b/src/backend/el.c
@@ -195,6 +195,7 @@ elem *el_calloc()
static elem ezero;
elcount++;
+#if 0
if (nextfree)
{ e = nextfree;
nextfree = e->E1;
@@ -209,6 +210,9 @@ elem *el_calloc()
eprm_cnt++;
#endif
*e = ezero; /* clear it */
+#else
+ e = (elem *)mem_fmalloc(sizeof(elem));
+#endif
#ifdef DEBUG
e->id = IDelem;
----
If you print e and *e, *e is NULL, hence the segfault when assigned to.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list