[Aptitude-devel] "examine view" crashing in curse aptitude 0.5.3.1
Daniel Burrows
dburrows at debian.org
Wed Jul 29 15:20:45 UTC 2009
On Tue, Jul 28, 2009 at 02:28:34PM +0200, Alban Browaeys <prahal at yahoo.com> was heard to say:
> To reproduce I do an "U" then "e" in aptitude --no-gui -t experimental
>
>
> update_dep_display seems broken to me . It calls d.get_dep() on a d that
> could be set to have cache int 0 and start int 4 (because of the
> unhighlights that cause this d to be an invalid d as told in the empty
> args constructor for aptitude_resolver_dep )
get_dep().end() is the proper way to test for whether a dependency is
valid. For dependencies constructed with the default constructor, it
should return an end iterator. Unfortunately, this got broken when the
universe layer was rewritten to conserve memory. Easy to fix, though:
just have end() check or a NULL cache.
Daniel
More information about the Aptitude-devel
mailing list