gnunet-developers
[Top][All Lists]
Advanced

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

Re: [GNUnet-developers] segfault creating hostkey


From: Christian Grothoff
Subject: Re: [GNUnet-developers] segfault creating hostkey
Date: Mon, 12 Apr 2004 08:52:31 -0500
User-agent: KMail/1.6.1

If Igor is right, the problem should go away if you change the STAT_MALLOC 
macro in src/util/xmalloc.c to 0:

#define STAT_MALLOC 0

Of course, this should still be investigated, but this should be sufficient to 
get the package working (assuming the malloc/FREE or MALLOC/free confusion is 
the problem).

Christian

On Monday 12 April 2004 08:34, Igor Wronsky wrote:
> On Mon, 12 Apr 2004, Glenn McGrath wrote:
> > # gnunetd -d
> > Apr 12 22:51:40 MESSAGE: gnunetd starting
> > Apr 12 22:51:40 WARNING: scanDirectory /var/lib/GNUnet/data/hosts/
> > returned no known hosts!
> > Apr 12 22:51:40 DEBUG: connection goal is 256 peers (3000000 BPS
> > bandwidth downstream)
> > Apr 12 22:51:40 Creating new hostkey (this may take a while)...
> > free(): invalid pointer 0x8061be0!
> > free(): invalid pointer 0x805f560!
> > Segmentation fault
>
> I've seen this a couple of times before, here and there. The
> problem started to happen on debian unstable gcc & co some
> time ago. On the surface its caused by some part of the code
> trying to free() a pointer allocated with MALLOC(). If the
> pointer is freed with FREE(), the problem disappeared in
> the cases I encountered -- or was it the other way around
> (malloc followed by FREE). Matching the cases may be worth
> trying anyway if it turns out to be that. ;)
>
>
> Igor
>
>
> _______________________________________________
> GNUnet-developers mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnunet-developers




reply via email to

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