struct kinfo_proc->ki_tsize is inaccurate

From: Chris Bond <bondc_at_shaw.ca>
Date: Wed, 22 Oct 2003 13:45:11 -0700
Greetings,

    When I use kvm_getprocs() together with KERN_PROC_PID to get process
information, the structure it returns contains an inaccurate ki_tsize (text
segment size) variable.  On my machine, it seems to alternate--seemingly at
random--between 1 and 168, neither of which is correct.  The process in
question is suspended when I make the call (ptrace(PT_TRACE_ME...)).

    Just wondering what the deal is.


Chris
Received on Wed Oct 22 2003 - 11:47:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:26 UTC