Subject: pkg_add Memory Fault
To: None <tech-pkg@NetBSD.org>
From: Christian Gall <cg@cgall.de>
List: tech-pkg
Date: 07/12/2006 12:11:02
--MfFXiAuoTsnnDAfZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

the following happens when I try to upgrade png-1.2.8 to png-1.2.12
(system is netbsd 3.99.21):

$ pkg_add -vuu /usr/pkgsrc/packages/netbsd-3.99.21-i386/All/png-1.2.12.tgz
parsing: .
path: /var/tmp/.
increasing RLIMIT_NOFILE to max. 3404 open files
Requested space: 1248332 bytes, free space: 307169804288 bytes in /var/tmp/=
instmp.19064a
running: /bin/tar --fast-read --use-compress-program gzip -xpf /usr/pkgsrc/=
packages/netbsd-3.99.21-i386/All/png-1.2.12.tgz +CONTENTS
running: /bin/tar --use-compress-program gzip -xpf /usr/pkgsrc/packages/net=
bsd-3.99.21-i386/All/png-1.2.12.tgz
Upgrading png-1.2.8 to png-1.2.12.
Memory fault (core dumped)=20

Backtrace:
  #0  add_plist (p=3D0xbfbfea2c, type=3DPLIST_NAME, arg=3D0xbfbfb44e "cairo=
-1.0.2nb3")
      at plist.c:96
  #1  0x08051fc9 in read_plist (pkg=3D0xbfbfea2c, fp=3D0xbbbddab8) at plist=
=2Ec:298
  #2  0x0804bd7b in pkg_do (
      pkg=3D0x8058e20 "/usr/pkgsrc/packages/netbsd-3.99.21-i386/All/png-1.2=
=2E12.tgz", pkgs=3D0x806d1f0) at perform.c:596
  #3  0x0804c5d2 in pkg_perform (pkgs=3D0xbfbfeab0) at perform.c:1084
  #4  0x08049f7b in main (argc=3D-1077941500, argv=3D0x8049c40) at main.c:2=
10
  #5  0x08049c40 in ___start ()

  (gdb) frame 0
  #0  add_plist (p=3D0xbfbfea2c, type=3DPLIST_NAME, arg=3D0xbfbfb44e "cairo=
-1.0.2nb3")
      at plist.c:96
  96      in plist.c
  (gdb) p *p
  $1 =3D {
    head =3D 0x806e000,=20
    tail =3D 0x0
  }

lib/plist.c, line 96 is
 p->tail->next =3D tmp;
which obviously is not supposed to work.


  (gdb) frame 1
  #1  0x08051fc9 in read_plist (pkg=3D0xbfbfea2c, fp=3D0xbbbddab8) at plist=
=2Ec:298
  298     in plist.c
  (gdb) p *pkg
  $2 =3D {
    head =3D 0x806e000,=20
    tail =3D 0x0
  }
 =20
  (gdb) frame 2
  #2  0x0804bd7b in pkg_do (
      pkg=3D0x8058e20 "/usr/pkgsrc/packages/netbsd-3.99.21-i386/All/png-1.2=
=2E12.tgz", pkgs=3D0x806d1f0) at perform.c:596
  596     perform.c: No such file or directory.
          in perform.c
  (gdb) p depPlist
  $3 =3D {
    head =3D 0x806e000,=20
    tail =3D 0x0
  }



Maybe someone can give me a hint where to search next. I can provide
more info, if desired.


Kind regards,

Christian



--MfFXiAuoTsnnDAfZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iQIVAwUBRLTKtjvEVoyxqYCCAQIPHBAAvGPNTJ1U7EeKDvygucbUU/lV9JFwHjn+
f/WzTMb2e2+PLtAxWtD35uokHXfCBei4NPWLAy2gcp1WLWjmq146wEl970GgKcUO
gI5SVHaKG00MsSxXqbexylbg+3ifomPmto6Jv/wzWuwUJ+B68fLWZieN9HJgjZbB
Oe3mvFIQ6+NWharNn9X2bMmhhsKOuSSTkqYfrRs24iMOA39X0NHvBdpRvXAsuVA7
YW+vdMnbhmw65mlxluxZWrGPOkz77aZ2Mwu9Jby7LrK+3vdf1CwsmMXRRsjfSNdC
7xuvskMLs+6CLAZM3Y32CkOs1RkiWYIAj0yMXbNXvOLJK8ntKau0WXl3wpWX2+gc
V0Iy9vDAfKFmts3fkrg07fsXiODWPD37rdPZgQPGOriGTJlKVI9B8d5PNpZTTXp1
TbBJMA0D1ALLv+yG/fjS6Ly7z3s0qKExKrVVbpvcbO77/6Ksq4DOrqILM0lcSCgi
KHrd+XLj72JD6I0Yb7e+W9n4sYZa1UkY70rmtoBNVTDPsNcakyGg+t1tvWUfEdZd
SjQ7Yf5WnsOtlx8HgWogX3ygFK4FTigLCHrXOlkM6mksZLlydOweGEbcYcqMV9F9
zBzFpedgocRDxapsAiI8eFIFVDmtqFtrwvNrSsiUrsjJ6dNYsR9vbZ77fdib/vDU
1deQee1k3XU=
=d0op
-----END PGP SIGNATURE-----

--MfFXiAuoTsnnDAfZ--