From owner-freebsd-ports@FreeBSD.ORG Sun Dec 14 04:27:23 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8D0216A4CF; Sun, 14 Dec 2003 04:27:23 -0800 (PST) Received: from mallaury.noc.nerim.net (smtp-100-sunday.noc.nerim.net [62.4.17.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id A074C43D33; Sun, 14 Dec 2003 04:27:21 -0800 (PST) (envelope-from mycroft@virgaria.org) Received: from lotus.plug-it.com (lotus.plug-it.com [62.212.108.163]) by mallaury.noc.nerim.net (Postfix) with ESMTP id BAC7B62D3F; Sun, 14 Dec 2003 13:27:18 +0100 (CET) Received: by lotus.plug-it.com (Postfix, from userid 11) id 521CE401B; Sun, 14 Dec 2003 13:29:42 +0100 (CET) X-Scanned-By: Plug-It Antivirus System. Received: from mycroft.mine.nu (unknown [2001:7a8:30a3:42::84:254]) by lotus.plug-it.com (Postfix) with ESMTP id A5CA14010; Sun, 14 Dec 2003 13:29:38 +0100 (CET) Received: from newborn.in.virgaria.org (localhost [127.0.0.1]) by mycroft.mine.nu (Postfix) with ESMTP id 570F41CC7E; Sun, 14 Dec 2003 13:29:08 +0100 (CET) Received: (from mycroft@localhost) by newborn.in.virgaria.org (8.12.10/8.12.10/Submit) id hBECT6o3001412; Sun, 14 Dec 2003 13:29:06 +0100 (CET) (envelope-from mycroft) Date: Sun, 14 Dec 2003 13:29:06 +0100 From: Patrick MARIE To: Christoph Sold Message-ID: <20031214122905.GA98340@newborn.in.virgaria.org> Mail-Followup-To: Christoph Sold , pav@freebsd.org, ports@freebsd.org References: <1070920361.69357.17.camel@hood.oook.cz> <200312082332.15024.cs@cheasy.de> <1070923111.69357.19.camel@hood.oook.cz> <200312092352.31265.cs@cheasy.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312092352.31265.cs@cheasy.de> X-GPG-Key: http://www.minithins.net/~mycroft/key.txt X-GPG-Key-Fingerprint: 9117 6710 D241 53CA 2FBB AB3D 656D E3B8 99613BFB User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-10.0 required=6.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: ports@freebsd.org cc: pav@freebsd.org Subject: Re: transcode / nasm X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 12:27:23 -0000 On Tue, Dec 09, 2003 at 11:52:31PM +0100, Christoph Sold wrote: > > Sorry for the delay -- had to get a nap, then to work. > > > Well I don't know. Is that failure reproducable? > > Yes, always. > > root@kiste:aclib# /usr/local/bin/nasm -felf -g -o swap.o swap.s > Segmentation fault (core dumped) > > Any hints? I've sent this patch to nasm-devel@ list (with justifications). It fixes a bug in nasm while creating the stabs table, and allows transcode to compile on -current. --- output/outelf.c.orig Sun Dec 14 09:50:09 2003 +++ output/outelf.c Sun Dec 14 10:01:05 2003 @@ -1411,7 +1411,7 @@ the source-file, the n_desc field should be set to the number of remaining stabs */ - WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0]+12)); + WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen); ptr=stabslines; numstabs = 0; Please test it and mail me back if there is any issues. Thanks ! - patrick -- Patrick MARIE pgp: http://www.minithins.net/~mycroft/key.txt