Date: Sat, 11 Jul 1998 19:38:03 -0700 From: David Greenman <dg@root.com> To: Terry Lambert <tlambert@primenet.com> Cc: current@FreeBSD.ORG Subject: Re: Arrgh ! resubscribing again again again.... Message-ID: <199807120238.TAA29759@implode.root.com> In-Reply-To: Your message of "Sun, 12 Jul 1998 02:11:36 -0000." <199807120211.TAA29647@usr08.primenet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>I run something else, which grabs and sbrk's back memory, sleeping 20 ... >It's not logical, given the code, but it happens. ... >I first noticed this problem in 2.2.6-stable. I think it is likely that you are seeing the effects of a bug in the program - perhaps with the usage of sbrk (specifically, "giving back" memory), since non-careful use of brk/sbrk will interact badly with malloc which also does this (and malloc() can be called from libc, inside innocuous functions like printf()). If that isn't the cause, then it might be caused by a kernel bug in not properly sensing that a page has been modified, discarding the contents without writing to swap. When this occurs with stack or data/bss pages, pointers can end up being wrong - often 0 since the kernel will fabricate a demand zero page if there is no backing in swap, and lead to a NULL pointer dereference. I thought we had fixed all of these type bugs in the 2.2 branch (actually earlier in 2.1) long ago, but perhaps there is still one lurking somewhere. I certainly have never seen this on any of the machines that I have access to, and I have done extensive regression testing with the 2.2 branch. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807120238.TAA29759>
