Mail Archives: djgpp/2000/01/12/02:12:55
On Wed, 12 Jan 2000, jazir wrote:
> cuz now i have no idea which change caused my problems. i have a textfile
> {de}/compression program that i wrote, and it used to work fantastically with
> all kinds of files, even very large ones.
>
> when compiled with my new installation, i get SIGSEGV in the function free()
What was the previous version of DJGPP you had installed? If it was
v2.01 (not v2.02), then what you see is a bug in your program that
simply went unnoticed before v2.02. Version 2.02 introduced a new,
more space-efficient version of malloc/free, which is now much less
tolerant to programs that write beyond the end of an allocated buffer,
or free a buffer more than once.
Try using some malloc debugger, like YAMD, to hunt down that bug.
- Raw text -