* mmalloc problems
@ 2004-09-20 20:56 Antonio SJ Musumeci
2004-10-06 2:18 ` Andrew Cagney
0 siblings, 1 reply; 2+ messages in thread
From: Antonio SJ Musumeci @ 2004-09-20 20:56 UTC (permalink / raw)
To: gdb
Linux 2.6.6 vanilla, gdb 6.2.1, gcc 3.3.4 --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --enable-shared --disable-nls
mapped_data does not exist prior
{
fd = open("mapped_data", O_CREAT|O_RDWR, S_IRWXU);
md = mmalloc_attach(fd, NULL);
data = mmalloc(md, 0x5000);
mmalloc_detach(md);
}
results in
./a.out: relocation error: ./a.out: symbol getpagesize, version GLIBC_2.0 not
defined in file libc.so.6 with link time reference
if i replace data=mmalloc(md, 0x5000) with:
i =0;
while(++i)
{
data = mmalloc(md, 1);
fprintf(stderr, "%d\n", i);
}
gets upto 29696 (every time) then
#0 0x40053b61 in vfprintf () from /lib/libc.so.6
#1 0x401167c0 in _IO_2_1_stdout_ () from /lib/libc.so.6
#2 0x0804b024 in _IO_stdin_used ()
#3 0xbffffc78 in ?? ()
#4 0xbffffc98 in ?? ()
#5 0x08048836 in main (argc=1074882496, argv=0x804b024) at test.c:22
any ideas? am I using it wrong?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mmalloc problems
2004-09-20 20:56 mmalloc problems Antonio SJ Musumeci
@ 2004-10-06 2:18 ` Andrew Cagney
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2004-10-06 2:18 UTC (permalink / raw)
To: Antonio SJ Musumeci; +Cc: gdb
Just FYI, GDB's no longer using MMALLOC. I'm not sure where to take
this question.
Andrew
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-06 2:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-20 20:56 mmalloc problems Antonio SJ Musumeci
2004-10-06 2:18 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).