Re: Problem



On Wed, 28 Jun 2000, Gergely Pongracz wrote:

> 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)
> #6  0x21cb4 in appendRow (nr=1) at gui.cc:504
> #7  0x24210 in fillConnTypeList () at gui.cc:248
> #8  0x1cbf8 in sourceOK (menuItem=0x2ac00, null=0x0) at
> conntypeconf.cc:293
> #9  0xef64cb78 in gtk_marshal_NONE__NONE (object=0x7c428,
>     func=0x1c798 <sourceOK(_GtkWidget *, void *)>, func_data=0x0,
> 
>     args=0xefffdff0) at gtkmarshal.c:312
> #10 0xef68f0f0 in gtk_handlers_run (handlers=0x65b58,
> signal=0xefffdf50,
>     object=0x7c428, params=0xefffdff0, after=0) at
> gtksignal.c:1909
> #11 0xef68df6c in gtk_signal_real_emit (object=0x7c428,
> signal_id=83,
>     params=0xefffdff0) at gtksignal.c:1469
> #12 0xef68afdc in gtk_signal_emit (object=0x7c428, signal_id=83)
>     at gtksignal.c:552
> 
> 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)

 Most probably memory heap was corrupted so that function that was called by
operator 'new' crashed - it could happen if you free same location more than 
once, for example. You should check all calls to memory routines (probably
using debugging malloc library). If you use glibc, try setting env var
MALLOC_CHECK_ to 1 - in that case malloc will print diagnostic messages for
errors it can detect (see man malloc).
 
> Thanks for any help in advance!
> Bye!
> 
> Gergely Pongracz
> (Technical University of Budapest - Hungary)
> 
> 
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 

 Best regards,
  -Vlad





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