Complete.Org: Mailing Lists: Archives: linux-help: June 2003:
[linux-help] Re: core dump
Home

[linux-help] Re: core dump

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] Re: core dump
From: Jeff Vian <jvian10@xxxxxxxxxxx>
Date: Wed, 04 Jun 2003 15:36:01 -0500
Reply-to: linux-help@xxxxxxxxx

you are writing beyond the array bounds.. VERY BAD programming practice.
It overwrites something else.

Sudharsha Wijesinghe wrote:

>I wrote the following code 
>int void main()
>{
>int buff[4096],i;
>for(i=0;i<8000;i++)
>buff[i]=i;
>return 0;
>}
>and compliled it with gcc 
>executable file created.
>when I run it
>#./a.out
>I would get a segment fault
>it does not create a core dump.
>Does any one know why it is?
>Thanks in advance
>Sudharsha.
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
>http://calendar.yahoo.com
>-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
>visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
>
>  
>


-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]