NetBSD Problem Report #14043
Received: (qmail 24340 invoked from network); 22 Sep 2001 15:36:03 -0000
Message-Id: <E15koqR-0000Kq-00@c1731831-a.crvlls1.or.home.com>
Date: Sat, 22 Sep 2001 08:37:31 -0700
From: ",,," <collver@linuxfreemail.com>
Reply-To: collver@linuxfreemail.com
To: gnats-bugs@gnats.netbsd.org
Subject: bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
X-Send-Pr-Version: 3.95
>Number: 14043
>Category: pkg
>Synopsis: bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 22 15:37:00 +0000 2001
>Closed-Date: Sat Sep 22 17:48:40 +0000 2001
>Last-Modified: Sat Sep 22 19:05:01 +0000 2001
>Originator:
>Release: NetBSD 1.5.1
>Organization:
>Environment:
System: NetBSD glen 1.5.1 NetBSD 1.5.1 (GLEN) #0: Tue Jul 24 15:07:21 PDT 2001 root@glen:/usr/src/sys/arch/i386/compile/GLEN i386
>Description:
The jpeg code sometimes coredumps on valid jpeg input.
>How-To-Repeat:
The fault occurs in jpeg.c:528 at aloc_sarray
Sample input triggering this bug can be found at
http://amaterasu.math.orst.edu:8080/~sharpej/mpeg_encode_bug.tar
>Fix:
I will report this bug to the package's author(s), but for the
moment please document this bug. Maybe like the following..
diff -u /dev/null patches/patch-ad
--- /dev/null Sat Sep 22 08:23:31 2001
+++ patches/patch-ad Sat Sep 22 08:23:31 2001
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- docs/mpeg_encode.1.orig Wed Mar 29 14:15:09 1995
++++ docs/mpeg_encode.1
+@@ -368,6 +368,8 @@
+ This is version 1.5 it contins new features and bug fixes from version 1.3.
+ .SH BUGS
+ No known bugs, but if you find any, report them to mpeg-bugs@plateau.cs.berkeley.edu.
++
++There is a bug in the jpeg code, it is advisable to use another input format.
+ .HP
+ .SH AUTHORS
+ .HP
diff -u -r1.1.1.1 Makefile
--- Makefile 2001/05/14 23:06:03 1.1.1.1
+++ Makefile 2001/09/22 15:32:01
@@ -22,6 +22,7 @@
.for i in eyuvtojpeg jmovie2jpeg mpeg_demux
${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${LOCALBASE}/bin
.endfor
+ ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${LOCALBASE}/man/man1
${INSTALL_DATA_DIR} ${LOCALBASE}/share/doc/mpeg_encode
.for i in EXTENSIONS INPUT.FORMAT mpeg_encode.1 parallel.param param-summary \
template.param users-guide.fm users-guide.mif users-guide.ps
diff -u -r1.1.1.1 distinfo
--- distinfo 2001/05/14 23:06:03 1.1.1.1
+++ distinfo 2001/09/22 15:32:01
@@ -5,3 +5,4 @@
SHA1 (patch-aa) = 1d233d6c578217d05f31f8a0264f9101b307f5ae
SHA1 (patch-ab) = f2cdf02d49b726b4fb7fb210074e7ba53b9b380b
SHA1 (patch-ac) = 8f89257bd93584cd028b659bb8c3379d713339da
+SHA1 (patch-ad) = 84f95d81c4d9904584d49893867f35bc9723b530
diff -u -r1.1.1.1 PLIST
--- PLIST 2001/05/14 23:06:03 1.1.1.1
+++ PLIST 2001/09/22 15:32:02
@@ -3,6 +3,7 @@
bin/jmovie2jpeg
bin/mpeg_demux
bin/mpeg_encode
+man/man1/mpeg_encode.1
share/doc/mpeg_encode/EXTENSIONS
share/doc/mpeg_encode/INPUT.FORMAT
share/doc/mpeg_encode/mpeg_encode.1
>Release-Note:
>Audit-Trail:
From: Frederick Bruckman <fredb@immanent.net>
To: ",,," <collver@linuxfreemail.com>
Cc: <gnats-bugs@gnats.netbsd.org>
Subject: Re: pkg/14043: bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
Date: Sat, 22 Sep 2001 11:06:32 -0500 (CDT)
On Sat, 22 Sep 2001, ,,, wrote:
> The fault occurs in jpeg.c:528 at aloc_sarray
>
> Sample input triggering this bug can be found at
> http://amaterasu.math.orst.edu:8080/~sharpej/mpeg_encode_bug.tar
> ++There is a bug in the jpeg code, it is advisable to use another input format.
This is silly. Why not take a stab at actually fixing the bug?
> --- Makefile 2001/05/14 23:06:03 1.1.1.1
> +++ Makefile 2001/09/22 15:32:01
> @@ -22,6 +22,7 @@
> .for i in eyuvtojpeg jmovie2jpeg mpeg_demux
> ${INSTALL_PROGRAM} ${WRKSRC}/convert/${i} ${LOCALBASE}/bin
> .endfor
> + ${INSTALL_MAN} ${WRKSRC}/docs/mpeg_encode.1 ${LOCALBASE}/man/man1
> ${INSTALL_DATA_DIR} ${LOCALBASE}/share/doc/mpeg_encode
Minor nit: the package files should properly install under ${PREFIX},
not ${LOCALBASE}.
Frederick
From: collver@linuxfreemail.com
To: Frederick Bruckman <fredb@immanent.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/14043: bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
Date: Sat, 22 Sep 2001 09:23:43 -0700
On Sat, Sep 22, 2001 at 11:06:32AM -0500, Frederick Bruckman wrote:
> On Sat, 22 Sep 2001, ,,, wrote:
>
> > The fault occurs in jpeg.c:528 at aloc_sarray
> >
> > Sample input triggering this bug can be found at
> > http://amaterasu.math.orst.edu:8080/~sharpej/mpeg_encode_bug.tar
>
> > ++There is a bug in the jpeg code, it is advisable to use another input format.
>
> This is silly. Why not take a stab at actually fixing the bug?
Because I don't understand the code.
Ben
From: collver@linuxfreemail.com
To: Frederick Bruckman <fredb@immanent.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/14043
Date: Sat, 22 Sep 2001 10:41:24 -0700
> > ++There is a bug in the jpeg code, it is advisable to use another input format.
>
> This is silly. Why not take a stab at actually fixing the bug?
Please close this ticket.
I will wait until I have a fix before I submit future bug reports.
Regards,
Ben
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: Re: pkg/14043: bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
Date: Sat, 22 Sep 2001 19:42:40 +0200 (MEST)
On Sat, 22 Sep 2001, ,,, wrote:
> >Synopsis: bug in pkgsrc/graphics/mpeg_encode/work/mpeg_encode/jpeg.c
I have forwarded the PR to the Berkeley folks,
mpeg-bugs@plateau.cs.berkeley.edu.
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/
State-Changed-From-To: open->closed
State-Changed-By: hubertf
State-Changed-When: Sat Sep 22 10:43:44 PDT 2001
State-Changed-Why:
I've committed the patches, and forwarded the PR to
the authors at Berkeley.
- Hubert
From: Frederick Bruckman <fredb@immanent.net>
To: <collver@linuxfreemail.com>
Cc: <gnats-bugs@gnats.netbsd.org>
Subject: Re: pkg/14043
Date: Sat, 22 Sep 2001 13:21:56 -0500 (CDT)
On Sat, 22 Sep 2001 collver@linuxfreemail.com wrote:
> > > ++There is a bug in the jpeg code, it is advisable to use another input format.
> >
> > This is silly. Why not take a stab at actually fixing the bug?
>
> Please close this ticket.
I'd rather leave it open. It's probably something simple, and it might
be a fun exercise (for somebody) to fix it. You've certainly given a
good report -- a way to reproduce it, and even the spot in the code
that appears to be at fault. If nothing else, it'll get fixed in the
distribution eventually, and this PR might then be used to justify an
upgrade to the package (during a freeze, say).
> I will wait until I have a fix before I submit future bug reports.
Please don't take my comment the wrong way. What I'm objecting to is
enshrining the bug in the man page. If you look at the volume of bug
reports in pkgsrc alone, you'd see why that could be a problem. The
BUGS section of the man page is generally reserved for intransigent
bugs, the solution to which presently escapes the author.
Frederick
From: collver@linuxfreemail.com
To: Frederick Bruckman <fredb@immanent.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/14043
Date: Sat, 22 Sep 2001 12:06:17 -0700
> > I will wait until I have a fix before I submit future bug reports.
>
> Please don't take my comment the wrong way. What I'm objecting to is
> enshrining the bug in the man page. If you look at the volume of bug
> reports in pkgsrc alone, you'd see why that could be a problem. The
> BUGS section of the man page is generally reserved for intransigent
> bugs, the solution to which presently escapes the author.
This makes sense. Sorry for the overhead..
Ben
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.