Re: a small doubt

Matthew Wilcox (Matthew.Wilcox@genedata.com)
Thu, 7 Oct 1999 14:43:38 +0200


On Thu, Oct 07, 1999 at 02:34:36PM +0200, Jes Sorensen wrote:
> >>>>> "Matthew" == Matthew Wilcox <Matthew.Wilcox@genedata.com> writes:
>
> Matthew> On Thu, Oct 07, 1999 at 02:47:45PM +0530, CHANDRIKA H V
> Matthew> wrote:
> >> *(int *)0 = 0 ;
> >>
> >> What is the meaning/significance of this ?
>
> Matthew> This is a normal way of causing an Oops. It gets you a stack
> Matthew> backtrace and register dump which may help you find the cause
> Matthew> of the problem.
>
> And a very bad one indeed since some architectures have page 0 mapped.

I didn't realise that. Do you have a better suggestion?

-- 
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/