Package: xli Version: 1.17.0-20 Severity: normal Steps to reproduce: 1) echo -n "P5 800 5" > xli-reduced-testcase.pnm 2) xli xli-reduced-testcase.pnm
Expected results: 2) xli shows the image or print an error message. Actual results: 2) xli segfaults with the following output: xli-reduced-testcase.pnm is a 800x5 Raw PGM image with 0 levels An internal error (SEGV) has occurred. Last function was newRGBMapData. If you would like to file a bug report, please send email to [EMAIL PROTECTED] with a description of how you triggered the bug, the output of xli before the failure, and the following information: ******************************************************************************** xli Version 1.17 Server: AT&T Laboratories Cambridge Version 3332 Depths and visuals supported: 24: TrueColor ******************************************************************************** If you run xli again with the -dumpcore flag, then it will core dump so you can investigate the problem yourself. I recompiled xli with debugging symbols and I can now see the following with gdb. $ gdb xli GNU gdb 6.3.90_20051119-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run xli-reduced-testcase.pnm Starting program: /usr/X11R6/bin/xli xli-reduced-testcase.pnm xli-reduced-testcase.pnm is a 800x5 Raw PGM image with 0 levels Program received signal SIGSEGV, Segmentation fault. 0x0805993f in pbmLoad (fullname=0xbfffd27c "xli-reduced-testcase.pnm", image_ops=0x4029a008, verbose=1) at pbm.c:408 408 *(destptr++) = PM_SCALE(src, fmaxval, 0xff); (gdb) print destptr $1 = (byte *) 0x0 (gdb) info locals zf = (ZFILE *) 0x80a6120 name = 0xbffff60f "xli-reduced-testcase.pnm" image = (Image *) 0x80f31a8 pbm_type = 6 x = 808466464 y = 0 width = 800 height = 5 maxval = 255 fmaxval = 4294967295 depth = 8 fdepth = 0 linelen = 1134833199 srcmask = 255 'ÿ' destmask = 255 'ÿ' destptr = (byte *) 0x0 destline = (byte *) 0x0 src = 0 size = 4000 numbytes = 3221222925 numread = 1076432884 (gdb) bt #0 0x0805993f in pbmLoad (fullname=0xbfffd27c "xli-reduced-testcase.pnm", image_ops=0x4029a008, verbose=1) at pbm.c:408 #1 0x08052470 in loadImage (image_ops=0x4029a008, verbose=1) at imagetypes.c:79 #2 0x0806e106 in main (argc=2, argv=0xbffff4f4) at xli.c:296 -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.29sauna Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1) Versions of packages xli depends on: ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an ii libjpeg62 6b-10 The Independent JPEG Group's JPEG ii libpng12-0 1.2.8rel-5 PNG library - runtime ii libx11-6 6.8.2.dfsg.1-11 X Window System protocol client li ii libxext6 6.8.2.dfsg.1-11 X Window System miscellaneous exte ii zlib1g 1:1.2.3-8 compression library - runtime xli recommends no packages. -- no debconf information

