pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51391: pkgin silently aborts



>Number:         51391
>Category:       pkg
>Synopsis:       pkgin silently times out
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 06 12:20:00 +0000 2016
>Originator:     Michael van Elst
>Release:        NetBSD 7.99.35
>Organization:
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."
>Environment:
	
	
System: NetBSD hoppa 7.99.35 NetBSD 7.99.35 (HOPPA) #5: Sat Aug 6 09:51:41 CEST 2016 mlelstv@gossam:/home/netbsd-current/obj.evbarm/home/netbsd-current/src/sys/arch/evbarm/compile/HOPPA evbarm
Architecture: earmv6hf
Machine: evbarm
>Description:
The pkgin 'avail' command (and others) can silently fail due to a bug
in the progress meter.

hoppa% sudo pkgin avail
reading local summary...
processing local summary...

/!\ Warning /!\ earmhf doesn't match your current architecture (earmv6hf)
You probably want to modify /usr/pkg/etc/pkgin/repositories.conf.
Still want to proceed ? [y/N] y

A ktrace reveals that the main process is killed by an alarm signal.

The bug is that the parse_entry() function (in summary.c) assumes that
the progress meter is running. It stops an alarm timeout before prompting
the user about the architecture mismatch and restarts the alarm timeout
afterwards.

This also happens when the progress meter hasn't been started and there
is no signal handler for the timeout.

>How-To-Repeat:
Run pkgin avail for a repository that doesn't match your current architecture.
>Fix:
This had been fixed before.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index