<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Sorry to trouble you with this. It was my own memory corruption problem. I accidentally allocated the LLVM Module in a memory segment type that is known to be buggy. Using the std::operator new makes the problem go away.  Oops.<BR>
<BR>
_SORRY_<BR>
<BR>
Reid (really glad I didn't file a bug report now) Spencer.<BR>
<BR>
On Mon, 2004-02-02 at 14:56, Chris Lattner wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#301fe4"><I>On Mon, 2 Feb 2004, Reid Spencer wrote:

> >  _Link_type __x = _M_root();  // Current node.
>
> The _M_root() call is de-referencing the _M_header field.
>
> This could, ostensibly, be a bug in std::_Rb_tree template but it could
> also be a usage problem.
>
> Note that the GVRefMap (in Module.cpp) has no constructor and just uses
> the default. Presumably the default constructor of the std::map (member
> Map) is also called but that constructor doesn't do much (i.e. provide a
> value for _M_header).
>
> One other note: this used to work a couple weeks ago. I just did a cvs
> update and rebuilt LLVM.  My code hasn't changed.

Nothing has really changed in this part of the compiler for a long time,
and I don't think we are abusing std::map's here.  Is it possible that
part of your tree is out of sync with the rest of it or something?  Maybe
make clean would help?

-Chris</I></FONT></PRE>
</BLOCKQUOTE>
</BODY>
</HTML>