"pkg repo" dumps core
Michael Gmelin
freebsd at grem.de
Sat Dec 7 16:29:30 UTC 2013
On Sat, 07 Dec 2013 13:21:26 -0200
Sergio de Almeida Lenzi <lenzi.sergio at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to
> "freebsd-ports-unsubscribe at 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
More information about the freebsd-ports
mailing list