[MacPorts] #35070: gcc47: _GLIBCXX_DEBUG and empty ostringstream
MacPorts
noreply at macports.org
Thu Mar 27 11:30:26 PDT 2014
#35070: gcc47: _GLIBCXX_DEBUG and empty ostringstream
------------------------------+-------------------
Reporter: akim.demaille@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.1
Resolution: | Keywords:
Port: gcc47 |
------------------------------+-------------------
Comment (by barto@…):
Adding that g++-mp-4.8 also has this problem.[[BR]]
And it affects std::string as well.[[BR]]
ui3(2112) malloc: *** error for object 0x100084f00: pointer being freed
was not allocated *** set a breakpoint in malloc_error_break to debug
Breakpoint 2, 0x00007fff97855588 in malloc_error_break ()[[BR]]
{{{
(gdb) where
#1 0x00007fff97856942 in free ()
#2 0x00000001063c1f3c in std::string::reserve ()
#3 0x0000010701620000 in ?? ()
}}}
Turning off the _GLIBCXX_DEBUG 'fixes' the issue. This is happening in my
global constructors. So something in the MacPort version of the libstdc++
library is not working when turning on the debug flag for array bounds
checking.
--
Ticket URL: <https://trac.macports.org/ticket/35070#comment:9>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list