Bug#992871: darkplaces: Segfault when using custom texturepack

Sébastien Noel sebastien at twolife.be
Tue Aug 24 15:18:50 BST 2021


Package: darkplaces
Severity: normal

Dear Maintainer,

The current darkplaces debian packages segfault when using
"Rygel's ultra pack".

   PNG_LoadImage: warning: iCCP: known incorrect sRGB profile
   PNG_LoadImage: warning: Interlace handling should be turned on when 
using png_read_image
   [...]
   PNG_LoadImage: warning: Interlace handling should be turned on when 
using png_read_image
   PNG_fReadData: overrun by 8 bytes
   PNG_LoadImage: error: [00][00][00][00]: invalid chunk type
   libpng error: [00][00][00][00]: invalid chunk type
   Segmentation fault

Since this pack is linked from the original upstream project,
at https://icculus.org/twilight/darkplaces/download.html
under "Quake art enhancement projects", I suspected this was
a tested/validated configuration.

When using a recent upstream snapshot compiled by myself,
everything worked fine. So I started digging...
The problem disapers once I rebuild the debian package & replace
"DP_LINK_PNG=shared" by "DP_LINK_PNG=dlopen" in d/rules.
I wish I could more precisely spot the problem but my knowledge
about dlopen and all its mysteries ends pretty quickly...

Best Regards,
Sébastien



More information about the Pkg-games-devel mailing list