bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-Threaded C++ program in wich two calls to malloc, return the s


From: Mike Castle
Subject: Re: Multi-Threaded C++ program in wich two calls to malloc, return the same pointer.
Date: Tue, 19 Jun 2001 17:21:42 -0700
User-agent: Mutt/1.3.18i

On Wed, Jun 20, 2001 at 12:51:37AM +0100, Jose Luis F. Feiteirinha wrote:
>       Is it possible that i'm making some kind of stupid bad coding,
> that generate that problem?

Most likely.

Are you sure you don't do a free() some where along the line?  (Hopefully
you don't use the value after you free it.)

You could try ElectricFence and have it protect freed pages so such
problems show up immediately.

mrc
-- 
     Mike Castle      address@hidden      www.netcom.com/~dalgoda/
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc



reply via email to

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