Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-j.one.com (mx-j.one.com [91.198.169.57])
	by mail6.b-one.net (Postfix) with ESMTP id 7F1EF80103FA2
	for <filtered@awaresystems.be>; Thu,  5 Jul 2012 21:31:35 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-j: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.161.176 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-gg0-f176.google.com (mail-gg0-f176.google.com [209.85.161.176])
	by mx-j.one.com (Postfix) with ESMTP id 1B0D668EFA5
	for <filtered@awaresystems.be>; Thu,  5 Jul 2012 19:31:34 +0000 (UTC)
Received: by ggnk4 with SMTP id k4so9968960ggn.21
        for <filtered@awaresystems.be>; Thu, 05 Jul 2012 12:31:34 -0700 (PDT)
Received: by 10.66.74.3 with SMTP id p3mr39406522pav.49.1341516693611;
        Thu, 05 Jul 2012 12:31:33 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.143.92.14 with SMTP id u14csp36784wfl;
        Thu, 5 Jul 2012 12:31:32 -0700 (PDT)
Received: by 10.66.89.170 with SMTP id bp10mr39489099pab.12.1341516692283;
        Thu, 05 Jul 2012 12:31:32 -0700 (PDT)
Received-SPF: softfail (google.com: best guess record for domain of transitioning tiff-bounces@lists.maptools.org does not designate 91.198.169.248 as permitted sender) client-ip=91.198.169.248;
Received: by 10.68.235.225 with POP3 id up1mf12424412pbc.14;
        Thu, 05 Jul 2012 12:31:32 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-q.one.com (mx-q.one.com [91.198.169.248])
	by mail6.b-one.net (Postfix) with ESMTP id 23BDC80104427
	for <info@awaresystems.be>; Thu,  5 Jul 2012 21:22:18 +0200 (CEST)
X-Greylist: accepted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-q.one.com (Postfix) with ESMTP id 8738D414A6D
	for <info@awaresystems.be>; Thu,  5 Jul 2012 19:22:17 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 95BDF3AD9AA;
	Thu,  5 Jul 2012 14:20:48 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id 811053AD9A8
	for <tiff@lists.maptools.org>; Thu,  5 Jul 2012 13:56:43 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q65Iugod022351; Thu, 5 Jul 2012 13:56:42 -0500 (CDT)
Date: Thu, 5 Jul 2012 13:56:42 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Tom Lane <tgl@sss.pgh.pa.us>
In-Reply-To: <alpine.GSO.2.01.1207041445420.27589@freddy.simplesystems.org>
Message-ID: <alpine.GSO.2.01.1207051350590.27589@freddy.simplesystems.org>
References: <CADqALGTJGUTwSqzmN4EGZ-zAcAw_fDMKtGjuG1n6MsgDNt6jqg@mail.gmail.com>
	<10865.1341338005@sss.pgh.pa.us>
	<CA+YzLBfk52n3Y5ZWHsEnu4uDAip3AUSOiYXq0n=Qe1MAxm3d1A@mail.gmail.com>
	<alpine.GSO.2.01.1207041125410.27589@freddy.simplesystems.org>
	<24669.1341422872@sss.pgh.pa.us>
	<alpine.GSO.2.01.1207041445420.27589@freddy.simplesystems.org>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Thu, 05 Jul 2012 13:56:42 -0500 (CDT)
Cc: Tiff List <tiff@lists.maptools.org>
Subject: Re: [Tiff] tiff 4.0.2 raw_decode test failing on ppc64
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

I noticed that my build was not using the expected IJG JPEG version. 
This is what I get with IJG JPEG 8d:

% libtool --mode execute gdb test/raw_decode ./test/core
GNU gdb (GDB) 7.2
Copyright (C) 2010 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 "i386-pc-solaris2.10".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /scratch/bfriesen/build/tiff-head-32bit/test/.libs/raw_decode...done.
[New LWP 1]
Reading symbols from /home/bfriesen/build/tiff-head-32bit/libtiff/.libs/libtiff.so.5...done.
Loaded symbols for /home/bfriesen/build/tiff-head-32bit/libtiff/.libs/libtiff.so.5
Reading symbols from /usr/local/lib/liblzma.so.5...done.
Loaded symbols for /usr/local/lib/liblzma.so.5
Reading symbols from /lib/libpthread.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.1
Reading symbols from /usr/local/lib/libjbig.so.1...done.
Loaded symbols for /usr/local/lib/libjbig.so.1
Reading symbols from /usr/local/lib/libjpeg.so.8...done.
Loaded symbols for /usr/local/lib/libjpeg.so.8
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libm.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libc.so.1...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 1 (LWP 1)]
Loaded symbols for /lib/libc.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/ld.so.1
Core was generated by `/home/bfriesen/build/tiff-head-32bit/test/.libs/raw_decode'.
Program terminated with signal 11, Segmentation fault.
#0  0xfee57f66 in jpeg_idct_16x16 (cinfo=0x8062db0, compptr=0x806a954, coef_block=0x806eac4, output_buf=0x806cc2c, output_col=0)
     at /home/bfriesen/src/graphics/jpeg-8d/jidctint.c:2760
2760        outptr[0]  = range_limit[(int) RIGHT_SHIFT(tmp20 + tmp0,
(gdb) bt
#0  0xfee57f66 in jpeg_idct_16x16 (cinfo=0x8062db0, compptr=0x806a954, coef_block=0x806eac4, output_buf=0x806cc2c, output_col=0)
     at /home/bfriesen/src/graphics/jpeg-8d/jidctint.c:2760
#1  0xfee42329 in decompress_onepass (cinfo=0x8062db0, output_buf=0x8063084) at /home/bfriesen/src/graphics/jpeg-8d/jdcoefct.c:199
#2  0xfee3fd6c in jpeg_read_raw_data (cinfo=0x8062db0, data=0x8063084, max_lines=16) at /home/bfriesen/src/graphics/jpeg-8d/jdapistd.c:210
#3  0xfef27de2 in TIFFjpeg_read_raw_data (sp=0x8062db0, data=0x8063084, max_lines=16) at /home/bfriesen/src/graphics/libtiff/libtiff/tif_jpeg.c:349
#4  0xfef2805e in JPEGDecodeRaw (tif=0x8061fc8, buf=0x8064188 "", cc=24576, s=0) at /home/bfriesen/src/graphics/libtiff/libtiff/tif_jpeg.c:1337
#5  0xfef3d9da in TIFFReadEncodedTile (tif=0x8061fc8, tile=9, buf=0x8064188, size=24576) at /home/bfriesen/src/graphics/libtiff/libtiff/tif_read.c:668
#6  0x0805146b in main (argc=1, argv=0x8046a98) at /home/bfriesen/src/graphics/libtiff/test/raw_decode.c:155
(gdb)

What version of libjpeg are you testing with?

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
