Re: libgmalloc bug
Re: libgmalloc bug
- Subject: Re: libgmalloc bug
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 5 Mar 2007 13:23:52 -0800
On 3/5/07, Salvatore Domenick Desiano <email@hidden> wrote:
I'm not sure if this is a libgmalloc bug, a gcc bug, or a iostream bug,
but I just spent 20 hours boiling a crash in opencv down to ten lines of
code. Can somebody else on a MacBook Pro run the following and see if
they get a seg fault? Input from a PPC based processor also welcome.
So frustrating!
Is this the right Apple mailing list? If this is a bug, where would I
report it?
Thanks!
-- Sal
smile.
cat > bug.cpp
#include <iostream>
void test ()
{
for(unsigned i = 1; i < 3; ++i )
{
std::cout << "HELLO";
}
}
int main (int argn, char * argv)
{
test();
return 0;
}
^D
g++ -Wall -fomit-frame-pointer -O1 -o bug bug.cpp
setenv DYLD_INSERT_LIBRARIES /usr/lib/libgmalloc.dylib
./bug
On Mac Pro...
[0:505] > ./bug
Allocations will be placed on word (4 byte) boundaries.
- Small buffer overruns may not be noticed.
- Applications using AltiVec instructions may fail.
GuardMalloc-11
Segmentation fault
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x4c4c4548
Thread 0 Crashed:
0 libgmalloc.dylib 0x9abe28f9 GMmalloc + 1483
1 libSystem.B.dylib 0x900109a0 __smakebuf + 195
2 libSystem.B.dylib 0x900108a5 __swsetup + 133
3 libSystem.B.dylib 0x9000a7d9 __sfvwrite + 57
4 libSystem.B.dylib 0x9002137d fwrite + 109
5 libstdc++.6.dylib 0x90b4abbc _gnu_cxx::stdio_sync_filebuf<char,
std::char_traits<char> >::xsputn(char const*, int) + 42
6 libstdc++.6.dylib 0x90b24172 std::basic_ostream<char,
std::char_traits<char> >::_M_write(char const*, int) + 42
7 libstdc++.6.dylib 0x90b25ef3 std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
(std::basic_ostream<char, std::char_traits<char> >&, char const*) +
233
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x4c4c4548 ebx: 0x9abe233f ecx: 0x00002ec4 edx: 0xbffffa98
edi: 0x4c4c4548 esi: 0xbffffc08 ebp: 0xbffff9f8 esp: 0xbffff8f0
ss: 0x0000001f efl: 0x00010206 eip: 0x9abe28f9 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >libgmalloc bug (From: Salvatore Domenick Desiano <email@hidden>) |