Date: Sat, 7 Dec 2013 17:22:46 +0100 From: Michael Gmelin <freebsd@grem.de> To: Sergio de Almeida Lenzi <lenzi.sergio@gmail.com> Cc: "A.J. 'Fonz' van Werven" <freebsd@skysmurf.nl>, freebsd-ports@freebsd.org 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 07 Dec 2013 13:21:26 -0200 Sergio de Almeida Lenzi <lenzi.sergio@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131207172246.1cd4e53a>