From owner-freebsd-ports@FreeBSD.ORG Sat Dec 7 16:29:30 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BE411B8 for ; Sat, 7 Dec 2013 16:29:30 +0000 (UTC) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 5D7811749 for ; Sat, 7 Dec 2013 16:29:28 +0000 (UTC) Received: (qmail 52279 invoked by uid 89); 7 Dec 2013 16:22:46 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@88.217.181.85) by mail.grem.de with ESMTPA; 7 Dec 2013 16:22:46 -0000 Date: Sat, 7 Dec 2013 17:22:46 +0100 From: Michael Gmelin To: Sergio de Almeida Lenzi Subject: Re: "pkg repo" dumps core Message-ID: <20131207172246.1cd4e53a@bsd64.grem.de> In-Reply-To: <1386429686.2287.9.camel@lenovo.toontown> References: <20131206183759.GA66308@spectrum.skysmurf.nl> <20131206200452.6ff3fba7@bsd64.grem.de> <1386429686.2287.9.camel@lenovo.toontown> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "A.J. 'Fonz' van Werven" , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2013 16:29:30 -0000 On Sat, 07 Dec 2013 13:21:26 -0200 Sergio de Almeida Lenzi wrote: > > > > Have you tried removing digests.txz, repo.txz and packagesite.txz? > > > > This happens to me too in 9.2 stable and 10.0 BETA4 > > the strange thing is that if I build the pkg (ports-mgmt/pkg) with > option WITH_DEBUG=yes, in the makefile, > it works and does not dumps core any more... > > 9.2 uses gcc > 10.0 uses clang... > > > Hope it helps... > > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org" Hi Sergio, Still waiting for AvW's packages to download so I can reproduce the problem, in the meantime could you try the following patch to pkg (you could e.g. place it in /usr/ports/ports-mgmt/pkg/files/patch-libpkg-pkg_repo.c) and see if this fixes the problem for you? It's just a wild guess. --- libpkg/pkg_repo.c~ 2013-12-05 18:04:38.000000000 +0000 +++ libpkg/pkg_repo.c 2013-12-07 16:18:01.000000000 +0000 @@ -520,7 +520,7 @@ struct packing *pack; unsigned char *sigret = NULL; unsigned int siglen = 0; - char fname[MAXPATHLEN]; + char fname[MAXPATHLEN + 1]; struct sbuf *sig, *pub; -- Michael Gmelin