NetBSD Problem Report #29798
From www@netbsd.org Sun Mar 27 11:10:11 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 3870863B116; Sun, 27 Mar 2005 11:10:11 +0000 (UTC)
Message-Id: <20050327111011.3870863B116@narn.netbsd.org>
Date: Sun, 27 Mar 2005 11:10:11 +0000 (UTC)
From: arto@selonen.org
Reply-To: arto@selonen.org
To: gnats-bugs@netbsd.org
Subject: graphics/jhead producing segmentation fault on certain JPEG files
X-Send-Pr-Version: www-1.0
>Number: 29798
>Category: pkg
>Synopsis: graphics/jhead producing segmentation fault on certain JPEG files
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: veego
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 27 11:11:00 +0000 2005
>Closed-Date: Tue Jun 21 08:39:32 +0000 2005
>Last-Modified: Tue Jun 21 08:39:32 +0000 2005
>Originator: Arto Selonen
>Release: NetBSD-current 2.99.15 ~20050211
>Organization:
>Environment:
NetBSD blah 2.99.15 NetBSD 2.99.15 (BLAH) #19: Fri Feb 11 22:32:52 EET 2005 blah@blah:/fs/cvs/obj/i386/src/sys/arch/i386/compile/BLAH i386
>Description:
Running:
> jhead exif-test.jpg
Segmentation fault
This is jhead 2.3 from pkgsrc/graphics (from anoncvs a few days ago).
I've also run the same test on another 2.99.x i386 box with same
results. I've also testet latest jhead (2.37) with same results.
I've also tried this on a Mandrake 10.0 Linux + jhead 2.37 with
same results.
However, a friend reports that on his OS X jhead 2.3-2 is working
OK. I then chose to test jhead 2.37 on Tru64 5.1A with their
compiler and libraries. Works OK. Here is the output:
% ./jhead-2.37/jhead exif-test.jpg
Nonfatal Error : 'exif-test.jpg' Illegal subdirectory link
File name : exif-test.jpg
File size : 161659 bytes
File date : 2005:03:27 13:43:17
Camera make : Canon
Camera model : Canon EOS 20D
Date/Time : 2005:03:26 12:03:47
Resolution : 1024 x 681
Flash used : Yes (manual)
Focal length : 17.0mm (35mm equivalent: 20mm)
CCD width : 30.84mm
Exposure time: 0.020 s (1/50)
Aperture : f/5.6
ISO equiv. : 400
Whitebalance : Auto
Metering Mode: matrix
Exposure : shutter priority (semi-auto)
I have no idea whether this is a bug in jhead code, or whether a corner
case triggers a bug in the compiler or some libraries. I have to leave
debugging this to others. I will also forward a copy of this to jhead
author (once I get the GNATS mail, as I'm doing this over the web form).
I've made the exif-test.jpg (158k) available at:
http://www.selonen.org/arto/images/exif-test.jpg
The test image was produced by Capture One Pro 3.6 Win (in case this
is a problem with the original JPEG). See http://www.phaseone.com/
>How-To-Repeat:
Compile jhead on recent Linux or NetBSD and run 'jhead exif-test.jpg';
observe segmentation fault. Compile same jhead version the same way
on OS X or Tru64 and observe correct results.
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->veego
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Tue, 29 Mar 2005 02:34:48 +0000
Responsible-Changed-Why:
Assigned to maintainer of package.
From: Arto Selonen <arto@selonen.org>
To: gnats-bugs@netbsd.org, veego@netbsd.org
Cc:
Subject: Re: pkg/29798 (fixed in jhead 2.38)
Date: Thu, 31 Mar 2005 09:51:59 +0300 (EEST)
Hi!
jhead author Matthias Wandel responded to this with:
"Identified the prolem and fixed it.
the "head rev" download on my website contains a fix for this problem."
I've tested the code (which turned out to be jhead 2.38 at the time)
on both NetBSD-current and Linux (where it failed before), and this
time it worked properly.
So, until a new release is made, one could use jhead 2.38 or later as
a workaround (or try to make a diff from 2.37 to 2.38 and apply that
to pkgsrc version).
Artsi
--
#######======------ http://www.selonen.org/arto/ --------========########
Everstinkuja 5 B 35 Don't mind doing it.
FIN-02600 Espoo arto@selonen.org Don't mind not doing it.
Finland tel +358 50 560 4826 Don't know anything about it.
From: Bernd Ernesti <veego@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29798 CVS commit: pkgsrc/graphics/jhead
Date: Sun, 19 Jun 2005 11:35:25 +0000 (UTC)
Module Name: pkgsrc
Committed By: veego
Date: Sun Jun 19 11:35:25 UTC 2005
Modified Files:
pkgsrc/graphics/jhead: DESCR Makefile distinfo
Log Message:
Update to 2.4.
NetBSD changes:
- Use the 'makefile' from the program to build it.
- Updated DESCR
- Should fix PR pkg/29798 by updating to 2.4 (test image is no longer available)
Changes from previous version:
Jan 14 2005
Display GPS info if included in image
Feb 27 2004
Fix some time reference confusion bugs relating to -ta option
May 29 2005
Added -da option for easier adjusting of date/time by large amounts.
-------Released version 2.4 -- May 2005 ----------
Jun 06 2005
Fix -da option
-------Released version 2.4-1 -- Jun 09 2005 --------
Jun 10 2005
Removed some debug printf I accidentally left in!
To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 pkgsrc/graphics/jhead/DESCR
cvs rdiff -r1.17 -r1.18 pkgsrc/graphics/jhead/Makefile
cvs rdiff -r1.9 -r1.10 pkgsrc/graphics/jhead/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: veego@netbsd.org
State-Changed-When: Sun, 19 Jun 2005 12:09:35 +0000
State-Changed-Why:
jhead was updated to 2.4.
Does that fix your problem?
I couldn't test it because the test image was no longer available.
Sorry for taking so long to fix that problem, but I had no time and
there only a stable tarfile available, which can change over time.
From: Arto Selonen <arto@selonen.org>
To: veego@netbsd.org
Cc: pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/29798
Date: Mon, 20 Jun 2005 10:45:09 +0300 (EEST)
Hi!
On Sun, 19 Jun 2005 veego@netbsd.org wrote:
> Synopsis: graphics/jhead producing segmentation fault on certain JPEG files
>
> State-Changed-From-To: open->feedback
> State-Changed-By: veego@netbsd.org
> State-Changed-When: Sun, 19 Jun 2005 12:09:35 +0000
> State-Changed-Why:
> jhead was updated to 2.4.
> Does that fix your problem?
> I couldn't test it because the test image was no longer available.
Oops. I must have removed it some time after testing the beta, not
remembering this PR. Sorry.
> Sorry for taking so long to fix that problem, but I had no time and
> there only a stable tarfile available, which can change over time.
I'll try to test it within a day or two...
Artsi
--
#######======------ http://www.selonen.org/arto/ --------========########
Everstinkuja 5 B 35 Don't mind doing it.
FIN-02600 Espoo arto@selonen.org Don't mind not doing it.
Finland tel +358 50 560 4826 Don't know anything about it.
From: Arto Selonen <arto@selonen.org>
To: veego@netbsd.org
Cc: pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/29798
Date: Tue, 21 Jun 2005 11:05:04 +0300 (EEST)
Hi!
On Sun, 19 Jun 2005 veego@netbsd.org wrote:
> Synopsis: graphics/jhead producing segmentation fault on certain JPEG files
> jhead was updated to 2.4.
> Does that fix your problem?
It does. No problems with jhead 2.4. This PR can be closed. Thanks!
Artsi
--
#######======------ http://www.selonen.org/arto/ --------========########
Everstinkuja 5 B 35 Don't mind doing it.
FIN-02600 Espoo arto@selonen.org Don't mind not doing it.
Finland tel +358 50 560 4826 Don't know anything about it.
State-Changed-From-To: feedback->closed
State-Changed-By: grant@netbsd.org
State-Changed-When: Tue, 21 Jun 2005 08:39:32 +0000
State-Changed-Why:
submitter reported PR can be closed.
thanks!
>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.