Being the adventurous sort, I tried building and installing dpkg from
guillem/pu/multiarch/master. "dpkg" seems to work ok, but dpkg-query
is broken (it always segfaults).
Ok, back to dpkg/sid (thanks for the maintainer scripts that make
switching between very easy). Luckily the segfault is reproducible
without installing a new dpkg version:
Also reproducible with raphael/pu/multiarch/full. Bisects to 8c57a40d
(libdpkg: update package sorting logic to take into account the
architecture), which didn't take into account that some callers of
pkg_sorter_by_name leave pkg->installed and pkg->available blank (the
juicy stuff for them seems to be in pkg->set).
The diff below [1] works around it.
We get another segfault in the same spirit (same reproduction recipe)
in 26516da (dpkg-query: Update commands to accept package specifiers
as arguments). It is due to this code:
| for (i = 0; i < array.n_pkgs; i++) {
| pkg = array.pkgs[i];
| for (ip = 0; ip < argc; ip++) {
| - if (!fnmatch(argv[ip], pkg->set->name, 0)) {
| + if (pkg_spec_match_pkg(&ps[ip], pkg, &pkg->installed)) {
"dpkg-query -l dpkg:amd64" seems to work fine.
I guess that is because when the commandline parameter does not
include an architecture specifier, pkgs[i]->installed.arch is examined
to check if it's a native package, and since arch is NULL, segfault.
--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111126015617.GA3654@elie.hsd1.il.comcast.net">ht tp://lists.debian.org/20111126015617.GA3654@elie.hsd1.il.comcast.net
11-26-2011, 06:41 AM
Raphael Hertzog
multiarch: dpkg-query segfaults
Hi,
On Fri, 25 Nov 2011, Jonathan Nieder wrote:
> Being the adventurous sort, I tried building and installing dpkg from
> guillem/pu/multiarch/master. "dpkg" seems to work ok, but dpkg-query
> is broken (it always segfaults).
I verified and all thoses issues are fixed in my pu/multiarch/full
branch.
Feel free to run that version to help discover other potential problems.
I keep in pu/multiarch/full the latest version that passes the test-suite.
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/
--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111126074154.GC6602@rivendell.home.ouaza.com">ht tp://lists.debian.org/20111126074154.GC6602@rivendell.home.ouaza.com
11-27-2011, 09:02 AM
Jonathan Nieder
multiarch: dpkg-query segfaults
Raphael Hertzog wrote:
> I verified and all thoses issues are fixed in my pu/multiarch/full
> branch.
Yes, checked.
BTW, thanks for the new bisectable version of that tree. If I ran the
world, there would be a pu/multiarch/testing branch that is bisectable
and never gets rewinded (aka pu/multiarch/for-jrn ;-)).
> Feel free to run that version to help discover other potential problems.
Doing so. Thanks to both of you for making it.
--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111127100222.GA22865@elie.hsd1.il.comcast.net">h ttp://lists.debian.org/20111127100222.GA22865@elie.hsd1.il.comcast.net
11-27-2011, 10:28 PM
Guillem Jover
multiarch: dpkg-query segfaults
Hi!
On Fri, 2011-11-25 at 19:56:17 -0600, Jonathan Nieder wrote:
> Being the adventurous sort, I tried building and installing dpkg from
> guillem/pu/multiarch/master. "dpkg" seems to work ok, but dpkg-query
> is broken (it always segfaults).
Sorry! I should have mentioned on my reply to your mail about using
pu/multiarch/master, that I've been generally doing thorough testing on
the things I merge into master, and almost none at all from that branch,
except for some specific changes.
thanks,
guillem
--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20111127232851.GB16825@gaara.hadrons.org">http://lists.debian.org/20111127232851.GB16825@gaara.hadrons.org