Debian Bug report logs - #493964
libjasper-runtime: jiv abort on proper input image

version graph

Package: libjasper-runtime; Maintainer for libjasper-runtime is Roland Stigge <stigge@antcom.de>; Source for libjasper-runtime is src:jasper.

Reported by: Mathieu Malaterre <malat@debian.org>

Date: Wed, 6 Aug 2008 08:39:20 UTC

Severity: important

Found in version jasper/1.701.0-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Roland Stigge <stigge@antcom.de>:
Bug#493964; Package libjasper-runtime. Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
New Bug report received and forwarded. Copy sent to Roland Stigge <stigge@antcom.de>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libjasper-runtime: jiv abort on proper input image
Date: Wed, 06 Aug 2008 10:33:07 +0200
Package: libjasper-runtime
Version: 1.701.0-2
Severity: important


I cannot open the following jpc image:

http://jpeg.sourceforge.net/jpeg2000/D_CLUNIE_CT1_J2KI.j2k

Using jiv I get the following:

$ gdbrun /tmp/jasper/bin/jiv bla.j2k                                                                                                                                                          ~/Projects/gdcm/debug-gcc43
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...

Program received signal SIGABRT, Aborted.
0x00002ac711cf71d5 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00002ac711cf71d5 in raise () from /lib/libc.so.6
#1  0x00002ac711cf8680 in abort () from /lib/libc.so.6
#2  0x000000000040b190 in getint (in=0x88c430, sgnd=1, prec=16, val=0x7fff9a1b2178) at jas_image.c:1218
#3  0x000000000040a421 in jas_image_readcmpt2 (image=0x8882d0, cmptno=0, x=0, y=0, width=512, height=1, buf=0x8948f0) at jas_image.c:991
#4  0x000000000040bb03 in jas_image_chclrspc (image=0x0, outprof=0x885c00, intent=0) at jas_image.c:1416
#5  0x0000000000403cfe in loadimage () at jiv.c:746
#6  0x0000000000403a81 in nextimage () at jiv.c:664
#7  0x00000000004027c0 in main (argc=2, argv=0x7fff9a1b2478) at jiv.c:279
(gdb) up
#1  0x00002ac711cf8680 in abort () from /lib/libc.so.6
(gdb)
#2  0x000000000040b190 in getint (in=0x88c430, sgnd=1, prec=16, val=0x7fff9a1b2178) at jas_image.c:1218
1218                    abort();
(gdb) list
1213                    v = (v << 8) | c;
1214            }
1215            v &= ((1 << prec) - 1);
1216            if (sgnd) {
1217                    /* XXX - Do something here. */
1218                    abort();
1219            } else {
1220                    *val = v;
1221            }
1222            return 0;
(gdb) p sgnd
$1 = 1
(gdb) quit
The program is running.  Exit anyway? (y or n) y


It would be nice if the code would nicely handle the image instead of just aborting.

thanks

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'testing'), (40, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages libjasper-runtime depends on:
ii  freeglut3                     2.4.0-5    OpenGL Utility Toolkit
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libgl1-mesa-glx [libgl1]      6.5.1-0.6  A free implementation of the OpenG
ii  libglu1-mesa [libglu1]        6.5.1-0.6  The OpenGL utility library (GLU)
ii  libice6                       1:1.0.1-2  X11 Inter-Client Exchange library
ii  libjasper-1.701-1             1.701.0-2  The JasPer JPEG-2000 runtime libra
ii  libjpeg62                     6b-13      The Independent JPEG Group's JPEG 
ii  libsm6                        1:1.0.1-3  X11 Session Management library
ii  libx11-6                      2:1.0.3-7  X11 client-side library
ii  libxext6                      1:1.0.1-2  X11 miscellaneous extension librar
ii  libxi6                        1:1.0.1-4  X11 Input extension library
ii  libxmu6                       1:1.0.2-2  X11 miscellaneous utility library
ii  libxt6                        1:1.0.2-2  X11 toolkit intrinsics library

libjasper-runtime recommends no packages.

-- no debconf information




Changed Bug submitter to 'Mathieu Malaterre <malat@debian.org>' from 'Mathieu Malaterre <mathieu.malaterre@gmail.com>' Request was from Mathieu Malaterre <malat@debian.org> to control@bugs.debian.org. (Wed, 28 Mar 2012 13:55:26 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 13:35:53 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.