[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading from uninitialized memory in ltdl.c's version of realloc...
From: |
Tom Epperly |
Subject: |
Re: Reading from uninitialized memory in ltdl.c's version of realloc... |
Date: |
Mon, 19 Aug 2002 11:25:15 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020615 Debian/1.0.0-3 |
Somebody questioned the validity of my bug report because of the message
from gdb, "gdb: Symbol `emacs_ctlx_keymap' has different size in shared
object, consider re-linking". According to the Debian bug report on
this issue, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=153972,
this message doesn't indicate a serious problem, and the message is
unrelated to my example program.
The seg fault occurs without gdb too:
address@hidden/tmp/testcase]>make CFLAGS=-g ltdl.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c ltdl.c
address@hidden/tmp/testcase]>gcc -o a.out ltdl.o -ldl
address@hidden/tmp/testcase]>a.out
a.out: Command not found.
address@hidden/tmp/testcase]>./a.out
Segmentation fault
I added main at the bottom of ltdl.c:
int main(int argc, char **argv)
{
void *m1 = malloc(128);
rpl_realloc(m1, 1000000);
}
Tom