From owner-freebsd-questions@FreeBSD.ORG Thu Sep 15 00:45:24 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D26F616A41F for ; Thu, 15 Sep 2005 00:45:24 +0000 (GMT) (envelope-from m@MHoerich.de) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id D72DF43D46 for ; Thu, 15 Sep 2005 00:45:23 +0000 (GMT) (envelope-from m@MHoerich.de) Received: (qmail invoked by alias); 15 Sep 2005 00:45:22 -0000 Received: from p548B6F21.dip.t-dialin.net (EHLO localhost) [84.139.111.33] by mail.gmx.net (mp026) with SMTP; 15 Sep 2005 02:45:22 +0200 X-Authenticated: #5114400 Date: Thu, 15 Sep 2005 02:45:20 +0200 From: Mario Hoerich To: Warren Block Message-ID: <20050915004519.GA95966@Pandora.MHoerich.de> Mail-Followup-To: ports@freebsd.org References: <20050914075631.V45447@wonkity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050914075631.V45447@wonkity.com> User-Agent: Mutt/1.4.2.1i X-Y-GMX-Trusted: 0 Cc: ports@freebsd.org, questions@freebsd.org Subject: Re: Fly Segfaults? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ports@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 00:45:25 -0000 # Warren Block: [ SIGSEGV with fly 2.0 ] > % cat flytest > new > size 26,20 > copy 0,0,-1,-1,-1,-1,/home/wblock/2.gif > copy 13,0,-1,-1,-1,-1,/home/wblock/6.gif > % fly -i flytest > test.gif > Creating new 26 by 20 image > Segmentation fault (core dumped) The problem here seems to be the image-type: the default type is set to PNG and the program seems to never check the type of the image loaded with copy. As a result, the gif file runs through 1271 img_file = gdImageCreateFromPng(img_to_copy); ^^^ That returns an unchecked NULL, which is dereferenced just a couple of lines down: 1298 arg[4] = img_file->sx; Program received signal SIGSEGV, Segmentation fault. 0x0804cf46 in copy_to_img (infile=0x281a22c0, img=0x8053000, resize=0) at fly.c:1298 I'm not really sure how to fix this (and I don't really use the program), so maybe contact the author about it. HTH, Mario PS: Followup-To/Reply-To -ports set.