NetBSD-Bugs archive

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

Re: bin/58809: pkg_add gets confused with -P and library installs



The following reply was made to PR bin/58809; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/58809: pkg_add gets confused with -P and library installs
Date: Sun, 3 Nov 2024 19:02:46 +0100

 Looking closer and grepping the right patterns in the ktrace output
 shows this is a plain pkg_add bug (thanks bad@ !).
 
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x9000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff7513e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff751980)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x9000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc59bb060,0x7f7fff751b00)
   8742   8742 pkg_add  NAMI  "/usr/pkg/pkgdb"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  __stat50(0x782bc59bb060,0x7f7fff751b00)
   8742   8742 pkg_add  NAMI  "/usr/pkg/pkgdb"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  __stat50(0x782bc59bb060,0x7f7fff751b00)
   8742   8742 pkg_add  NAMI  "/usr/pkg/pkgdb"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x3000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff74f260)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff74f260)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(3,0x7f7fff74e1b0,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff74eb98)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff74dff0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff74dff0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,3,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(3,0x7f7fff751720)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x11000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff7514e0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(4,0x782bc59ae340,0x8000)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff7514d0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(4,0x782bc59ae340,0x8000)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74f250)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74f250)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(4,0x7f7fff74e1a0,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(4,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74eb88)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74dfe0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74dfe0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(4,0x7f7fff750d00,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(4,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(4,0x7f7fff750ce0,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(4,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(4,0x7f7fff750cb0,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(4,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74f0b0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74f0b0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(4,0x7f7fff74e000,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(4,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74e9e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74de40)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74de40)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(4,0x7f7fff750a90,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(4,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74f0b0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74f0b0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(4,0x7f7fff74e000,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(4,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74e9e8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74de40)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff74de40)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,4,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(4,0x7f7fff7516f0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(4,0x782bc5892a10,0x8000)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff751330)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x9000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff751320)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(5,0x782bc5878f00,0x8000)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74f0a0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74f0a0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(5,0x7f7fff74dff0,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(5,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74e9d8)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74de30)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74de30)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(5,0x7f7fff750b50,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(5,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(5,0x7f7fff750b30,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(5,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(5,0x7f7fff750b00,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(5,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74ef00)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74ef00)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(5,0x7f7fff74de50,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(5,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74e838)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74dc90)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74dc90)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(5,0x7f7fff7508e0,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(5,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74ef00)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74ef00)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(5,0x7f7fff74de50,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(5,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74e838)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74dc90)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff74dc90)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,5,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(5,0x7f7fff751540)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(5,0x782bc5828d10,0x8000)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff751180)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x9000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff751170)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(6,0x782bc580ea00,0x8000)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff74eef0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,6,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff74eef0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x4b,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,6,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(6,0x7f7fff74de40,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(6,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff74e828)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x1000,PROT_READ,0x1<SHARED,FILE,ALIGN=NONE>,6,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff74dc80)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x7300,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,6,0,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff74dc80)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x32c0,PROT_READ,0x2<PRIVATE,FILE,ALIGN=NONE>,6,0,0)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(6,0x7f7fff7509a0,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(6,0,0,1)
 --
   8742   8742 pkg_add  CALL  __fstatvfs190(6,0x7f7fff750980,2)
   8742   8742 pkg_add  RET   __fstatvfs190 0
   8742   8742 pkg_add  CALL  lseek(6,0,0,1)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc580d5a0,0x7f7fff751670)
   8742   8742 pkg_add  NAMI  "/usr/lib/libc.so.12"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  mkdir(0x782bc5837f80,0x1ff)
   8742   8742 pkg_add  NAMI  "root//usr/pkg/pkgdb/libcbor-0.11.0"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  unlink(0x782bc5837fe0)
 --
   8742   8742 pkg_add  CALL  mkdir(0x782bc58c32d0,0x1ff)
   8742   8742 pkg_add  NAMI  "root//usr/pkg"
   8742   8742 pkg_add  RET   mkdir -1 errno 17 File exists
   8742   8742 pkg_add  CALL  __stat50(0x782bc58c32d0,0x7f7fff7511c0)
   8742   8742 pkg_add  NAMI  "root//usr/pkg"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  open(0x782bc5837fe0,0x400202,0x1a4)
 --
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff751170)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  __fstat50(6,0x7f7fff751040)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x5000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  chdir(0x782bc58c32d0)
   8742   8742 pkg_add  NAMI  "root//usr/pkg"
   8742   8742 pkg_add  RET   chdir 0
   8742   8742 pkg_add  CALL  __gettimeofday50(0x7f7fff751250,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(1,0x7f7fff750740)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  ioctl(1,TIOCGETA,0x7f7fff7507b0)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc5835ea0,0x7f7fff751140)
   8742   8742 pkg_add  NAMI  "include"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  mkdir(0x782bc5835ea0,0x1ed)
   8742   8742 pkg_add  NAMI  "include"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  open(0x782bc5835ea0,0x400a01,0x1a4)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc5c78c9a,0x7f7fff750d50)
   8742   8742 pkg_add  NAMI  "/etc/nsswitch.conf"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  open(0x782bc5c78c9a,0x400000,0x1b6)
 --
   8742   8742 pkg_add  CALL  __fstat50(8,0x7f7fff750a80)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  mmap(0,0x9000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc5c783eb,0x7f7fff7501a0)
   8742   8742 pkg_add  NAMI  "/etc/spwd.db"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  open(0x782bc5c783eb,0x400000,0)
 --
   8742   8742 pkg_add  CALL  __fstat50(8,0x7f7fff7501a0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(8,0x782bc58dd300,0x104)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc5c78c9a,0x7f7fff750d80)
   8742   8742 pkg_add  NAMI  "/etc/nsswitch.conf"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  open(0x782bc5c785d0,0x400000,0x1b6)
 --
   8742   8742 pkg_add  CALL  __fstat50(8,0x7f7fff7506f0)
   8742   8742 pkg_add  RET   __fstat50 0
   8742   8742 pkg_add  CALL  read(8,0x782bc57e3780,0x8000)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc5835ea0,0x7f7fff751140)
   8742   8742 pkg_add  NAMI  "include/cbor"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  __stat50(0x782bc5835ea0,0x7f7fff751060)
   8742   8742 pkg_add  NAMI  "include"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  mkdir(0x782bc5835ea0,0x1ed)
   8742   8742 pkg_add  NAMI  "include/cbor"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  open(0x782bc5835ea0,0x400a01,0x1a4)
 --
 	IFIER\n\n#endif\n\nstatic const uint8_t cbor_major_version = CBOR_MAJO\
 	R_VERSION;\nstatic const uint8_t cbor_minor_version = CBOR_MINOR_VERSI\
 	ON;\nstatic const uint8_t cbor_patch_version = CBOR_PATCH_VERSION;\n\n\
 	#define CBOR_VERSION               \\\n  _CBOR_TO_STR(CBOR_MAJOR_VERSI\
 --
        "is function modifies the global state and should therefore be\n *  use\
 	d accordingly. Changing the memory handlers while allocated items exis\
 --
 	ming decoder result - status */\nenum cbor_decoder_status {\n  /** Dec\
 	oding finished successfully (a callback has been invoked)\n   *\n   * \
 --
 	ad`).\n   *\n   * Set to 0 if the #status is not #CBOR_DECODER_FINISHE\
 	D.\n   */\n  size_t read;\n\n  /** The decoding status */\n  enum cbor\
 	_decoder_status status;\n\n  /** Number of bytes in the input buffer n\
 	eeded to resume parsing\n   *\n   * Set to 0 unless the result status \
 	is #CBOR_DECODER_NEDATA. If it is, then:\n   *  - If at least one byte\
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc58347c0,0x7f7fff751140)
   8742   8742 pkg_add  NAMI  "include/cbor/internal"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  __stat50(0x782bc58347c0,0x7f7fff751060)
   8742   8742 pkg_add  NAMI  "include/cbor"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  mkdir(0x782bc58347c0,0x1ed)
   8742   8742 pkg_add  NAMI  "include/cbor/internal"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  open(0x782bc58347c0,0x400a01,0x1a4)
 --
 	m _cbor_unicode_status_error { _CBOR_UNICODE_OK, _CBOR_UNICODE_BADCP }\
 	;\n\n/** Signals unicode validation error and possibly its location */\
 	\nstruct _cbor_unicode_status {\n  enum _cbor_unicode_status_error sta\
 	tus;\n  size_t location;\n};\n\n_CBOR_NODISCARD\nsize_t _cbor_unicode_\
 --
 	                        struct _cbor_unicode_status* status);\n\n#ifde\
 	f __cplusplus\n}\n#endif\n\n#endif  // LIBCBOR_UNICODE_H\n"
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc58347c0,0x7f7fff751140)
   8742   8742 pkg_add  NAMI  "lib/cmake/libcbor"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  __stat50(0x782bc58347c0,0x7f7fff751060)
   8742   8742 pkg_add  NAMI  "lib/cmake"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  __stat50(0x782bc58347c0,0x7f7fff750f80)
   8742   8742 pkg_add  NAMI  "lib"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  mkdir(0x782bc58347c0,0x1ed)
   8742   8742 pkg_add  NAMI  "lib"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  mkdir(0x782bc58347c0,0x1ed)
   8742   8742 pkg_add  NAMI  "lib/cmake"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  mkdir(0x782bc58347c0,0x1ed)
   8742   8742 pkg_add  NAMI  "lib/cmake/libcbor"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  open(0x782bc58347c0,0x400a01,0x1a4)
 --
   8742   8742 pkg_add  CALL  __lstat50(0x782bc58347c0,0x7f7fff751140)
   8742   8742 pkg_add  NAMI  "lib/libcbor.so"
   8742   8742 pkg_add  RET   __lstat50 0
   8742   8742 pkg_add  CALL  write(1,0x782bc5982000,0xf)
 --
   8742   8742 pkg_add  CALL  __lstat50(0x782bc58347c0,0x7f7fff751140)
   8742   8742 pkg_add  NAMI  "lib/libcbor.so.0.11"
   8742   8742 pkg_add  RET   __lstat50 0
   8742   8742 pkg_add  CALL  write(1,0x782bc5982000,0x14)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc58347c0,0x7f7fff751140)
   8742   8742 pkg_add  NAMI  "lib/pkgconfig"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  __stat50(0x782bc58347c0,0x7f7fff751060)
   8742   8742 pkg_add  NAMI  "lib"
   8742   8742 pkg_add  RET   __stat50 0
   8742   8742 pkg_add  CALL  mkdir(0x782bc58347c0,0x1ed)
   8742   8742 pkg_add  NAMI  "lib/pkgconfig"
   8742   8742 pkg_add  RET   mkdir 0
   8742   8742 pkg_add  CALL  open(0x782bc58347c0,0x400a01,0x1a4)
 --
   8742   8742 pkg_add  CALL  __stat50(0x782bc5834500,0x7f7fff7510f0)
   8742   8742 pkg_add  NAMI  "root//usr/pkg/pkgdb/libcbor-0.11.0"
   8742   8742 pkg_add  RET   __stat50 -1 errno 2 No such file or directory
   8742   8742 pkg_add  CALL  write(2,0x7f7fff750f90,9)
 
 
 So it chdirs to root/usr/pkg to extract the libcbor stuff, never chdirs
 back and then fails to access pkgdb files.
 
 Jörg mentioned this could have been fixed upstream recently.
 
 Martin
 


Home | Main Index | Thread Index | Old Index