Hi All,

in the same prog, if i free the dst pointer using free(dst),
now system crashes:

*** glibc detected *** free(): invalid next size (fast): 0x096d1008 ***
Aborted
 ???

On 3/8/07, Paul Herring <[EMAIL PROTECTED]> wrote:
>
>   On 08 Mar 2007 05:43:15 -0800, Chetan Nanda <[EMAIL 
> PROTECTED]<chetannanda%40gmail.com>>
> wrote:
> > On 08 Mar 2007 05:09:29 -0800, Sumit Chawla <[EMAIL 
> > PROTECTED]<enetra%40gmail.com>>
> wrote:
> [...]
> > > You are crossing the memory bounds and corrupting the memory block
> which
> > > might have been allocated to other parts of your program or some other
> > > program. It might crash the other programs or applications. So
> behavior is
> > > undefined.
> >
> > How this program can crash into other applications, as one application
> can't
> > play with other application address space.
>
> You assume that the operating system keeps applications apart and that
> one application cannot see another. Not all OSs do this.
>
> --
> PJH
> Aio, quantitas magna frumentorum est
>  
>



-- 
Thanks & Regards

Chetan Nanda
Software Engineer
Conexant System,Noida


[Non-text portions of this message have been removed]

Reply via email to