Re: Problem



> 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]