segfault with heap profiling.
David Roundy
droundy at abridgegame.org
Sat Sep 20 10:13:35 EDT 2003
Just one more data point. Running under valgrind I get the following
errors:
==8773== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==8773== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
==8773== Using valgrind-20030725, a program supervision framework for x86-linux.
==8773== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
==8773== Estimated CPU clock rate is 697 MHz
==8773== For more details, rerun with: -v
==8773==
==8773== Source and destination overlap in strcpy(0x8311830, 0x8311833)
==8773== at 0x400216BF: strcpy (mac_replace_strmem.c:87)
==8773== by 0x82A2B45: time_str (in /home/droundy/darcs/darcs)
==8773== by 0x40330E3D: __libc_start_main (in /lib/libc-2.3.2.so)
==8773== by 0x8049F50: (within /home/droundy/darcs/darcs)
==8773==
==8773== Invalid read of size 2
==8773== at 0x829E3E6: heapCensusChain (in /home/droundy/darcs/darcs)
==8773== Address 0xFFFFFFFC is not stack'd, malloc'd or free'd
Segmentation fault
I don't know if the overlapping source and destinations in strcpy are the
problem or not. The address 0xFFFFFFFC is also being accessed when I run
on MacOS X.
--
David Roundy
http://www.abridgegame.org
More information about the Glasgow-haskell-users
mailing list