On 11-Oct-06, at 3:52 PM, Frank Condello wrote:
After wrestling with my PNG plugin (and beta testers) I've
discovered and verified that libpng (version 1.2.12) itself is
causing the crash - or apparently, an incompatibility with libpng
and Apple's GCC Intel compiler.
I suspected libpng's x86 ASM/MMX code was to blame and switched
those off, which worked for some PNG files but not others, then I
discovered the libpng 1.2.13beta1 release <http://sourceforge.net/
project/shownotes.php?release_id=452282&group_id=5624> with the
release note "Avoid compiler bug on Intel Mac." but it seems all
that release does is turn off the ASM/MMX path, and according to
beta testers it crashes just as well :/
I know a few people on this list use libpng in their plugins, so
I'm wondering if anyone would care to share a solution. Are you
using an older version (1.2.8)? Is there a compiler setting that
fixes/prevents this bug? Please throw me a bone - without an Intel
Mac to properly debug I've got little hope of fixing this on my own.
Answering my own question for the record: pnggccrd.c despite it's
name, does not get along with Apple's GCC4, even when ASM and MMX are
disabled (i.e., the "optimized" C path crashes too). Use the vanilla
C decoder and yer groove'n...
Frank.
<http://developer.chaoticbox.com/>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>