Malloc problem
Petter Reinholdtsen
pere@hungry.com
Thu Mar 25 11:31:00 GMT 2004
[Paul]
> Kind persons:
>
> I recently upgraded from gcc.2.95.x to gcc-3.3.3 and its associated glibc.
> My program still compiles but at runtime I now get a segmentation violation
> from a malloc call. Did some major change go into malloc that is now more
> strict than previous versions? Does anyone know what might be causing this
> previously-running program to fail?
>
> Thanks for any input.
Try running your program with valgrind, as see if it reports any
errors. I find it unlikely that the problem is with malloc() in
glibc, as it is already fairly well tested, so an error should have
been discovered earlier.
Valgrind is available from <URL:http://valgrind.kde.org/>.
More information about the Libc-alpha
mailing list