Re: ps -axl during textdumps occasionally segfaults with a HUGE ps.core

From: Bruce Cran <bruce_at_cran.org.uk>
Date: Mon, 17 Aug 2009 23:33:31 +0100
On Sat, 15 Aug 2009 14:20:43 +0100
Bruce Cran <bruce_at_cran.org.uk> wrote:

> I managed to get a full backtrace and can at least see what's causing
> the crash: it seems it's stepping past the nlist array and calls
> vsnprintf with a bad argument. kvm_nlist returns -1 to report that the
> symbol table couldn't be read, but the code assumes it has returned a
> positive number to indicate that there's an invalid entry, so it
> starts searching for that entry where n_type is 0.

I've submitted a bug report for this - it's
http://www.freebsd.org/cgi/query-pr.cgi?pr=137890

-- 
Bruce Cran
Received on Mon Aug 17 2009 - 20:33:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:54 UTC