Re: Problem
- From: Karl Nelson <kenelson ece ucdavis edu>
- To: Gergely Pongracz <Gergely Pongracz eth ericsson se>
- Cc: gtk-list gnome org, kenelson elm ece ucdavis edu
- Subject: Re: Problem
- Date: Fri, 30 Jun 2000 10:07:29 -0700
> Hi GTK and/or C++ gurus!
>
> Does anybody know, what is wrong, when the program is get killed
> with a segmentation fault signal, and gdb says the following:
>
> #0 0xef246178 in realfree ()
> #1 0xef24699c in cleanfree ()
> #2 0xef245bf8 in _malloc_unlocked ()
> #3 0xef245b00 in malloc ()
> #4 0x25600 in ___builtin_new (sz=32)
> #5 0x25634 in ___builtin_vec_new (sz=32)
[...]
> etc. etc.
>
> I just can't imagine, what is going on, because there is only an
> initialization at the prompted line:
>
> row[0] = new char[32]; (Where row is a char *[4] structure)
Quick guess: you freed something which should have been deleted
or vice versa and thus your malloc()/new() stacks are corrupt.
Suggest checking that you didn't call delete on something
which gtk returned which needed to be g_free.
Hope it helps.
--Karl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]