Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Nov 2010 11:09:24 +0100
From:      Ed Schouten <ed@80386.nl>
To:        Barbara <barbara.xxx1975@libero.it>
Cc:        freebsd-current@freebsd.org
Subject:   Re: libstc++ (?) problem on CURRENT?
Message-ID:  <20101106100924.GT2054@hoeg.nl>
In-Reply-To: <19821003.923081289037424002.JavaMail.defaultUser@defaultHost>
References:  <19821003.923081289037424002.JavaMail.defaultUser@defaultHost>

next in thread | previous in thread | raw e-mail | index | archive | help

--2wYUONsACSj9OMJp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Barbara <barbara.xxx1975@libero.it>, 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 <ed@80386.nl>
 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101106100924.GT2054>