NetBSD-Bugs archive

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

Re: kern/43611: kernel-trace (via ktruss) reports wrong parameter/result values



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

From: matthew sporleder <msporleder%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost
Cc: 
Subject: Re: kern/43611: kernel-trace (via ktruss) reports wrong
 parameter/result values
Date: Wed, 3 Aug 2011 20:49:40 -0400

 See how ktruss claims to open /usr/local/lib/libm but kdump
 (correctly) reports "No such file or directory".
 
 NetBSD vc136-15.vc.panix.com 5.1 NetBSD 5.1 (PANIX-VC) #0: Thu Mar 10
 01:49:14 EST 2011
 
root%juggler.panix.com@localhost:/misc/obj/misc/devel/netbsd/5.1/src/sys/arch/amd64/compile/PANIX-VC
 amd64
 
 ktrace/kdump - correct:
 
  22799      1 perl     NAMI  "/etc/ld.so.conf"
  22799      1 perl     RET   open -1 errno 2 No such file or directory
  22799      1 perl     CALL  open(0x7f7fffffcfb0,0,0xfeff2f2d6e722d6c)
  22799      1 perl     NAMI  "/usr/pkg/lib/libm.so.0"
  22799      1 perl     RET   open -1 errno 2 No such file or directory
  22799      1 perl     CALL  open(0x7f7fffffcfb0,0,0xfefefefefefefeff)
  22799      1 perl     NAMI  "/usr/local/lib/libm.so.0"
  22799      1 perl     RET   open -1 errno 2 No such file or directory
  22799      1 perl     CALL  open(0x7f7fffffcfb0,0,0x2f2d6e722cff2f2d)
  22799      1 perl     NAMI  "/usr/lib/libm.so.0"
  22799      1 perl     RET   open 3
 
 
 ktruss - incorrect:
 
  11347      1 perl     open("/usr/libexec/ld.elf_so", 0, 0) Err#2 ENOENT
  11347      1 perl     open("/etc/ld.so.conf", 0, 0xfeff2f2d6e722d6c)
 Err#2 ENOENT
  11347      1 perl     open("/usr/pkg/lib/libm.so.0", 0,
 0xfefefefefefefeff) Err#2 ENOENT
  11347      1 perl     open("/usr/local/lib/libm.so.0", 0,
 0x2f2d6e722cff2f2d) = 3
  11347      1 perl     __fstat30(0x3, 0x7f7fffffcee0) = 0
  11347      1 perl     mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 0x7f7ffdff7000
  11347      1 perl     munmap(0x7f7ffdff7000, 0x1000) = 0
  11347      1 perl     mmap(0, 0x11c000, 0x5, 0x14000002, 0x3, 0, 0) =
 0x7f7ffdc00000
  11347      1 perl     mmap(0x7f7ffdd1b000, 0x1000, 0x3, 0x12, 0x3, 0,
 0x1b000) = 0x7f7ffdd1b000
  11347      1 perl     mmap(0x7f7ffdd1c000, 0, 0x3, 0x1012,
 0xffffffff, 0, 0) = 0x7f7ffdd1c000
  11347      1 perl     mprotect(0x7f7ffdc1b000, 0x100000, 0) = 0
  11347      1 perl     close(0x3)                  = 0
  11347      1 perl     open("/usr/lib/libm.so.0", 0,
 0xfefefefefeff2f2d) Err#2 ENOENT
 


Home | Main Index | Thread Index | Old Index