[gs-bugs] [Bug 692579] allocation of profile default_gray.icc handle failed, core dump
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Mon Oct 10 19:34:34 UTC 2011
http://bugs.ghostscript.com/show_bug.cgi?id=692579
--- Comment #1 from Greg Wooledge <wooledg at eeg.ccf.org> 2011-10-10 19:34:33 UTC ---
Actually gdb is working, but gs was compiled without -g. I removed some
obj/*.o files and manually built them with -g, and tracked the problem down to
here:
cmsOpenProfileFromMem (MemPtr=0x40a44170, dwSize=416)
at lcms/src/cmsio1.c:2599
2599 NewIcc = _cmsCreateProfileFromMemPlaceholder(MemPtr, dwSize);
(gdb) n
2600 if (!NewIcc) return NULL;
(gdb) n
2602 if (!ReadHeader(NewIcc, TRUE)) return NULL;
(gdb) print NewIcc
$1 = (LPLCMSICCPROFILE) 0x40a44518
(gdb) n
2608 }
_cmsCreateProfileFromMemPlaceholder returns what I assume is a valid pointer,
but ReadHeader fails. Restarting with a breakpoint on ReadHeader, we get:
289 if (Header.magic != icMagicNumber) goto ErrorCleanup;
(gdb) n
356 Icc ->Close(Icc);
I won't even try to guess why the comparison failed.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list