In gdb, virtual memory exhausted
In gdb, virtual memory exhausted
- Subject: In gdb, virtual memory exhausted
- From: rick proebstl <email@hidden>
- Date: Sun, 16 Mar 2008 10:45:45 -0700 (PDT)
I'm using Xcode 3.0 on an Intel macbook pro. I'm
running a program with large data structs and arrays,
and when I try to take a look at some of these, either
in the variable list window or by using data tips, my
program dies and I get the following message.
gdb-i386-apple-darwin(3200,0xa05e8fa0) malloc: ***
mmap(size=1855488) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
gdb stack crawl at point of internal error:
[ 0 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(align_down+0x0) [0x11d2ff]
[ 1 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(xstrvprintf+0x0) [0x11e393]
[ 2 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(xcalloc+0x45) [0x11e528]
[ 3 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(xzalloc+0x19) [0x11e549]
[ 4 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(allocate_value+0x27) [0x338f3]
[ 5 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(value_at_lazy+0x5b) [0x39c18]
[ 6 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(value_ind+0xd3) [0x3c138]
[ 7 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(value_struct_elt+0x2a) [0x3c2e1]
[ 8 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(evaluate_subexp_standard+0x258d) [0x37566]
[ 9 ] /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(evaluate_subexp_with_coercion+0x5d) [0x349c7]
[ 10 ]
/Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(evaluate_subexp_standard+0x2ceb) [0x37cc4]
[ 11 ]
/Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(evaluate_subexp_standard+0x23a9) [0x37382]
[ 12 ]
/Developer/usr/libexec/gdb/gdb-i386-apple-darwin
(evaluate_subexp_with_coercion+0x5d) [0x349c7]
/SourceCache/gdb/gdb-768/src/gdb/utils.c:1144:
internal-error: virtual memory exhausted: can't
allocate 1854676 bytes.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Do I have to set a higher virtual memory limit for
gdb, and if so how I do that? Any ideas? When running,
my program only takes up about 13 Mb real and 800 Mb
virtual. gdb runs with 45Mb real and 63 Mb virtual.
Thanks,
Rick Proebstl
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
_______________________________________________
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