> 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.
[EMAIL PROTECTED]   Raintree Network Services, Inc. <www.inethouston.net>
[EMAIL PROTECTED]       FreeBSD Committer <www.FreeBSD.org>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to