DragonFly BSD
DragonFly users List (threaded) for 2006-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: gaim segfault while blocking someone


From: Petr Janda <elekktretterr@xxxxxxxxxxxxxx>
Date: Tue, 29 Aug 2006 17:05:57 +1000

Ah thanks,

No I didnt play with the MALLOC_OPTIONS at all. I just want a somewhat usable GUI :) It seems to be getting worse. KDE/Gnome are nearly always broken in pkgsrc. How can this free() problem be fixed?

Petr

Trevor Kendall wrote:
On 28/08/06, Petr Janda <elekktretterr@xxxxxxxxxxxxxx> wrote:
When I try to block someone in gaim, i get this error:

*gaim in free(): error: modified (page-) pointerAbort*

The user is blocked, but everytime i would log in into msn it would
segfault with the same error.

Can anyone explain to me what this error means and whats the cause of it?

Petr


That looks like something this would cause:


char *test;
test = (char *)malloc(getpagesize());

test = test + 1;

free(test);

I thought the DragonFly malloc implementation was supposed to only
crash on things like that if A was set in MALLOC_OPTIONS. If this is
the case then the man page needs to be updated because I don't find
any mention of crashing being the default behaviour. I, however, don't
find any mention of not crashing being the default behaviour either.
(You haven't set MALLOC_OPTIONS have you?)

As for what the error means, this is copied straight from the man page:

    modified (chunk-/page-) pointer  The pointer passed to free() or
    realloc() has been modified.

Trevor






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