|
From: Christoph B. <bar...@or...> - 2007-01-24 09:08:02
|
Am Mittwoch, 24. Januar 2007 09:35 schrieb Vikas: > Hi , > > I get an output like this. > > ==26775== Invalid write of size 2 > POINT 1 . > ==26775== at 0x1B9879DA: memcpy (in /lib/tls/i686/cmov/libc-2.3.6.so) > ==26775== by 0x1B970FEE: _IO_getline (in > /lib/tls/i686/cmov/libc-2.3.6.so ) > ==26775== by 0x1B96FF18: _IO_fgets (in /lib/tls/i686/cmov/libc-2.3.6.so) > ==26775== by 0x80484CD: main (gan.c:22) > ==26775== Address 0x1BA4E029 is 1 bytes inside a block of size 2 free'd > ==26775== at 0x1B9070B9: free (vg_replace_malloc.c:153) > ==26775== by 0x804848F: main (gan.c:13) > > > Is there any way to know what function was called before memcpy which is > below POINT1 ??? memcpy is the function where the error occurs. And I would not expect that memcpy calls another function. The problem seems to be limited to main() in gan.c. Could you show it? Christoph |