From owner-freebsd-current@FreeBSD.ORG Sat Nov 6 10:09:26 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4FEA106564A for ; Sat, 6 Nov 2010 10:09:25 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF3B8FC08 for ; Sat, 6 Nov 2010 10:09:25 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 3A77C2A28C30; Sat, 6 Nov 2010 11:09:24 +0100 (CET) Date: Sat, 6 Nov 2010 11:09:24 +0100 From: Ed Schouten To: Barbara Message-ID: <20101106100924.GT2054@hoeg.nl> References: <19821003.923081289037424002.JavaMail.defaultUser@defaultHost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2wYUONsACSj9OMJp" Content-Disposition: inline In-Reply-To: <19821003.923081289037424002.JavaMail.defaultUser@defaultHost> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org Subject: Re: libstc++ (?) problem on CURRENT? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Nov 2010 10:09:26 -0000 --2wYUONsACSj9OMJp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Barbara , 20101106 10:57: > Just to be clear, I'm not looking for a solution about the port here, > I'm just wondering why the same c++ code is working on 8_STABLE and > it's segfaulting on CURRENT, considering also that AFAIK the gcc > version in both the base systems is the same. I am a real STL newbie, so I could be wrong. Maybe it's not allowed to remove an element in the map you're currently iterating. Therefore you're accessing memory which has been deallocated. This may crash on HEAD and not on 8-STABLE for various reasons. For example, malloc() in HEAD has all sorts of debugging options enabled, while 8-STABLE does not. Greetings, --=20 Ed Schouten WWW: http://80386.nl/ --2wYUONsACSj9OMJp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzVKVQACgkQ52SDGA2eCwWPWgCdFR1JO6wyF6SE9sb5WOMoDrGd 4VkAnidl/i2veaA7waEqJ7a9IQRAuyeZ =0XsM -----END PGP SIGNATURE----- --2wYUONsACSj9OMJp--