Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Aug 2002 12:13:50 -0500
From:      "David W. Chapman Jr." <dwcjr@inethouston.net>
To:        Alexander Kabaev <ak03@gte.com>
Cc:        "David W. Chapman Jr." <dwcjr@inethouston.net>, current@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Re: pkg_version and no origin found == SEGFAULT
Message-ID:  <20020825171350.GA89121@leviathan.inethouston.net>
In-Reply-To: <20020825130007.35cdd0b9.ak03@gte.com>
References:  <20020825164731.GA88696@leviathan.inethouston.net> <20020825130007.35cdd0b9.ak03@gte.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Have you checked your /var/db/pkg/<port_name>/+CONTENTS files? For some
> reason some ports on my relatively stale -CURRENT box had these files
> truncated to zero length, and this caused some package tools (namely
> pkg_version) to crash. The procedure to read plist simply returns with
> all plist struct members set to zero without indicating any errors when
> CONTENTS file is empty, and the pkg_version crashes trying to
> defererence null 'origin' pointer.

This is exactly the problem I'm seeing and would explain why 
portupgrade -f fixes the problem for the port that causes the segfault.
Shouldn't pkg_version handle this a little more gracefully?

-- 
David W. Chapman Jr.
dwcjr@inethouston.net	Raintree Network Services, Inc. <www.inethouston.net>
dwcjr@freebsd.org	FreeBSD Committer <www.FreeBSD.org>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020825171350.GA89121>