Segfault in libc -- call to malloc from libpng
I have a program which uses libpng. Libpng makes several
calls to malloc. At some point libc segfaults.
Stack trace:
0 ... in free from libc
1 ... in malloc from libc
2 ... in malloc from libc
3 ... in pngmalloc at pngmem:405
Code at pngmalloc:pngmem:405
ret = malloc((size_t)size);
Contents of size: 1729
Part of program trace:
Compiled with libpng 1.0.5; using libpng 1.0.5.
Compiled with zlib 1.1.3; using zlib 1.1.3.
in png_create_write_struct
in png_set_filter_heuristics
in png_create_info_struct
in png_info_init
in png_init_io
in IHDR storage function
in pHYs storage function
in png_write_info
in png_write_IHDR
Writing IHDR chunk (13 bytes)
in png_write_pHYs
Writing pHYs chunk (9 bytes)
in png_set_packing
in png_set_interlace handling
in png_write_row (row 0, pass 0)
in png_write_start_row
Segmentation fault
Also:
bash-2.02$ cat /etc/motd
Linux Linux1 2.2.13 #1 Wed Nov 17 12:47:24 EST 1999 i586 unknown
Any suggestions?
----- End forwarded message -----
Reply to: