Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#9 -max 32768 causes SIGSEGV on Win2K

open
devel (22)
5
2012-08-22
2002-04-25
TPS
No

I tried this on versions 1.5.7 & 1.5.8 (both MMX) on a
Win2K GateWay (P4-1.6GHz, .5GB RAM).

I don't know why, but with -max 32768 (& whatever
other switches, it always dies with SIGSEGV. 2
outputs (out of a dozen or so) follow (& USFlag.PNG
attached):

C:\DOCUME~1\Ted\Desktop>pngcrush -e 1.PNG -m 0 -brute -
fix -max 32768 -reduce -r
em alla USFlag.PNG

C:\Documents and Settings\Ted\Desktop>pngcrush -m 0 -
brute -fix -max 32768 -reduce -double_gamma -rem alla -
e .!.PNG US*.PNG

| pngcrush 1.5.8, Copyright (C) 1998-2001 Glenn
Randers-Pehrson
| This is a free, open-source program. Permission is
irrevocably
| granted to everyone to use this version of pngcrush
without
| payment of any fee.
| Executable name is pngcrush
| It was built with libpng version 1.2.1, and is
| running with libpng version 1.2.1 - December 12,
2001 (header)
| Copyright (C) 1998-2001 Glenn Randers-Pehrson,
| Copyright (C) 1996, 1997 Andreas Dilger,
| Copyright (C) 1995, Guy Eric Schalnat, Group 42
Inc.,
| and zlib version 1.1.3pc, Copyright (C) 1998,
| Jean-loup Gailly and Mark Adler.
| It was compiled with gcc version 2.95.2 19991024
(release)
| and as version 2.9.5
| under DJGPP 2.3, Copyright (C) 1995, D. J. Delorie
| and loaded with PMODE/DJ, by Thomas Pytel and
Matthias Grimrath
| Copyright (C) 1996, Matthias Grimrath.

Recompressing US Flag.PNG
Total length of data found in IDAT chunks =
5093
color counting (-cc option) is disabled.
Removed the pHYs chunk.
Exiting due to signal SIGSEGV
General Protection Fault at eip=0003d9cf
eax=ff7e0000 ebx=ff7e0000 ecx=000001ec edx=ff810000
esi=000008f8 edi=00020010
ebp=00098148 esp=00098134 program=C:\DOCUME~1
\TED\DESKTOP\PNGCRUSH.EXE
cs: sel=01b7 base=01ec0000 limit=7e12ffff
ds: sel=01bf base=01ec0000 limit=7e12ffff
es: sel=01bf base=01ec0000 limit=7e12ffff
fs: sel=01af base=00005e40 limit=0000ffff
gs: sel=01c7 base=00000000 limit=0010ffff
ss: sel=01bf base=01ec0000 limit=7e12ffff
App stack: [000992f8..000592f8] Exceptn stack:
[0005924c..0005730c]

Call frame traceback EIPs:
0x0003d9cf
0x00022305

=======================================================

C:\Documents and Settings\Ted\Desktop>pngcrush -m 0 -
brute -fix -max 32768 -reduce -double_gamma -rem alla -
e .!.PNG US*.PNG

| pngcrush 1.5.7, Copyright (C) 1998-2001 Glenn
Randers-Pehrson
| This is a free, open-source program. Permission is
irrevocably
| granted to everyone to use this version of pngcrush
without
| payment of any fee.
| Executable name is pngcrush
| It was built with libpng version 1.2.0, and is
| running with libpng version 1.2.0 - September 1,
2001 (header)
| Copyright (C) 1998-2001 Glenn Randers-Pehrson,
| Copyright (C) 1996, 1997 Andreas Dilger,
| Copyright (C) 1995, Guy Eric Schalnat, Group 42
Inc.,
| and zlib version 1.1.3pc, Copyright (C) 1998,
| Jean-loup Gailly and Mark Adler.
| It was compiled with gcc version 2.95.2 19991024
(release)
| and as version 2.9.5
| under DJGPP 2.3, Copyright (C) 1995, D. J. Delorie
| and loaded with PMODE/DJ, by Thomas Pytel and
Matthias Grimrath
| Copyright (C) 1996, Matthias Grimrath.

USFlag.PNG IDAT length in input file = 5093
color counting (-cc option) is disabled.
Removed the pHYs chunk.
Exiting due to signal SIGSEGV
General Protection Fault at eip=0003d4cf
eax=ff7e0000 ebx=ff7e0000 ecx=000001ec edx=ff810000
esi=000008f8 edi=00020010
ebp=00097c40 esp=00097c2c program=C:\DOCUME~1
\TED\DESKTOP\PNGCRUSH.EXE
cs: sel=01b7 base=01ec0000 limit=7e12ffff
ds: sel=01bf base=01ec0000 limit=7e12ffff
es: sel=01bf base=01ec0000 limit=7e12ffff
fs: sel=01af base=00005e40 limit=0000ffff
gs: sel=01c7 base=00000000 limit=0010ffff
ss: sel=01bf base=01ec0000 limit=7e12ffff
App stack: [00098df0..00058df0] Exceptn stack:
[00058d44..00056e04]

Call frame traceback EIPs:
0x0003d4cf
0x00021e55

Thanks for a great program,
TSamuel

Discussion

  • TPS
    TPS
    2002-04-25

    File used in compression mentioned in report

     
    Attachments
  • TPS
    TPS
    2002-04-25

    PNGCrushed & 2-bit colorified by PNGReWrite

     
  • TPS
    TPS
    2002-04-25

    Logged In: YES
    user_id=526453

    Same file, different settings (changed to -max 1073741824
    [Quake players rule: overkill is the best kill =] & then
    default), same problem... But this time I had used
    PNGReWrite ( http://entropymine.com/jason/pngrewrite/ ) on
    the PNGCrushed (using the above setting) file & then tried
    running it through. PNGReWrite had converted it to 2-bit
    color (the image has only 3 different colors). Output
    follows, & PNGWrite-converted file attached:

    C:\DOCUME~1\Ted\Desktop>PNGReWrite USFlag.PNG USFlag!.PNG
    original palette size: 256, 8 bpp
    new palette size: 3, 2 bpp

    C:\DOCUME~1\Ted\Desktop>PNGCrush -e !.PNG -brute -m 0 -cc -
    max 1073741824 -fix -
    force -rem alla USFlag!.PNG

    | pngcrush 1.5.8, Copyright (C) 1998-2001 Glenn Randers-
    Pehrson
    | This is a free, open-source program. Permission is
    irrevocably
    | granted to everyone to use this version of pngcrush
    without
    | payment of any fee.
    | Executable name is pngcrush
    | It was built with libpng version 1.2.1, and is
    | running with libpng version 1.2.1 - December 12, 2001
    (header)
    | Copyright (C) 1998-2001 Glenn Randers-Pehrson,
    | Copyright (C) 1996, 1997 Andreas Dilger,
    | Copyright (C) 1995, Guy Eric Schalnat, Group 42 Inc.,
    | and zlib version 1.1.3pc, Copyright (C) 1998,
    | Jean-loup Gailly and Mark Adler.
    | It was compiled with gcc version 2.95.2 19991024
    (release)
    | and as version 2.9.5
    | under DJGPP 2.3, Copyright (C) 1995, D. J. Delorie
    | and loaded with PMODE/DJ, by Thomas Pytel and Matthias
    Grimrath
    | Copyright (C) 1996, Matthias Grimrath.

    Recompressing USFlag!.PNG
    Total length of data found in IDAT chunks = 3251
    color counting (-cc option) is disabled.
    Exiting due to signal SIGSEGV
    General Protection Fault at eip=0003d9cf
    eax=ff7e0000 ebx=ff7e0000 ecx=000001ec edx=ff810000
    esi=00000910 edi=00020010
    ebp=00098158 esp=00098144 program=C:\DOCUME~1
    \TED\DESKTOP\PNGCRUSH.EXE
    cs: sel=01b7 base=01ec0000 limit=7e12ffff
    ds: sel=01bf base=01ec0000 limit=7e12ffff
    es: sel=01bf base=01ec0000 limit=7e12ffff
    fs: sel=01af base=00005e40 limit=0000ffff
    gs: sel=01c7 base=00000000 limit=0010ffff
    ss: sel=01bf base=01ec0000 limit=7e12ffff
    App stack: [000992f8..000592f8] Exceptn stack:
    [0005924c..0005730c]

    Call frame traceback EIPs:
    0x0003d9cf
    0x00022305

    C:\DOCUME~1\Ted\Desktop>PNGCrush -e !.PNG -brute -m 0 -cc -
    fix -force -rem alla
    USFlag!.PNG

    | pngcrush 1.5.8, Copyright (C) 1998-2001 Glenn Randers-
    Pehrson
    | This is a free, open-source program. Permission is
    irrevocably
    | granted to everyone to use this version of pngcrush
    without
    | payment of any fee.
    | Executable name is pngcrush
    | It was built with libpng version 1.2.1, and is
    | running with libpng version 1.2.1 - December 12, 2001
    (header)
    | Copyright (C) 1998-2001 Glenn Randers-Pehrson,
    | Copyright (C) 1996, 1997 Andreas Dilger,
    | Copyright (C) 1995, Guy Eric Schalnat, Group 42 Inc.,
    | and zlib version 1.1.3pc, Copyright (C) 1998,
    | Jean-loup Gailly and Mark Adler.
    | It was compiled with gcc version 2.95.2 19991024
    (release)
    | and as version 2.9.5
    | under DJGPP 2.3, Copyright (C) 1995, D. J. Delorie
    | and loaded with PMODE/DJ, by Thomas Pytel and Matthias
    Grimrath
    | Copyright (C) 1996, Matthias Grimrath.

    Recompressing USFlag!.PNG
    Total length of data found in IDAT chunks = 3251
    color counting (-cc option) is disabled.
    Exiting due to signal SIGSEGV
    General Protection Fault at eip=0003d9cf
    eax=ff7e0000 ebx=ff7e0000 ecx=000001ec edx=ff810000
    esi=00000910 edi=00020010
    ebp=00098158 esp=00098144 program=C:\DOCUME~1
    \TED\DESKTOP\PNGCRUSH.EXE
    cs: sel=01b7 base=01ec0000 limit=7e12ffff
    ds: sel=01bf base=01ec0000 limit=7e12ffff
    es: sel=01bf base=01ec0000 limit=7e12ffff
    fs: sel=01af base=00005e40 limit=0000ffff
    gs: sel=01c7 base=00000000 limit=0010ffff
    ss: sel=01bf base=01ec0000 limit=7e12ffff
    App stack: [000992f8..000592f8] Exceptn stack:
    [0005924c..0005730c]

    Call frame traceback EIPs:
    0x0003d9cf
    0x00022305

     
  • Logged In: YES
    user_id=7859

    Thanks for the report and followup.
    Have you tried the non-MMX version and if so does
    it exhibit the same problem?

    Glenn

     
  • TPS
    TPS
    2002-04-30

    Logged In: YES
    user_id=526453

    Identical results in both cases with non-MMX version 1.5.7
    & 1.5.8, & same output, so I won't replicate that here.

    & thanx for your promptness. =)