struct kinfo_proc->ki_tsize is inaccurate
    Chris Bond 
    bondc at shaw.ca
       
    Wed Oct 22 13:47:00 PDT 2003
    
    
  
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
    
    
More information about the freebsd-current
mailing list