Re: g_type_check_instance_cast segfault with entries



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


     `g_type_check_instance_cast()' is invoked in the macro
`GTK_EDITABLE()' So I'm pretty sure that `list[i]' is invalid. Is it
possible that list[i] is uninitialized on one of the passes ? (did you
forget to mark the last element in list; i.e. `list[n] = NULL;' ?).
In the first function (the one which takes entries) I've done it :
  entry[i] = NULL;

I also checked if entry[0] was valid and if entry[i] was null.And here I found 
a really strange thing:
(gdb) print i
$1 = 0
(gdb) print list[i]
$2 = (GtkWidget *) 0x80f970c
(gdb) print list[1]
$3 = (GtkWidget *) 0x0  --> THIS
(gdb) print list[2]
$4 = (GtkWidget *) 0xbfffc038
(gdb) print list[3]
$5 = (GtkWidget *) 0x40331955
(gdb) print list[4]
$6 = (GtkWidget *) 0x80f970c
(gdb) print list[5]
$7 = (GtkWidget *) 0x0
(gdb)

The entries in this case were 4 but I don't know why the list[i] is NULL . 
Howevere the segfault occurs before checking list[1]. So I really don't know 
what can I do


Cheers,
                                  -Tristan
Tnx , Cheers 
- -- 
You can download my public key from :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xAF03412D


Per me si va tra la perduta gente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQCVAwUBQUhWg8RZnwcjHpecAQKw2AP+MKR6Ll3ottB3EXyu/VWp9QqFik+pIYGF
69gQYG0nBkwrkLr6jpjaZf/eu8ML4TBt4d5UC1TaTvWJZdnsDqinQ+Fi7jhYOn8r
sfiuaxjP2EROA6STtx99m5D1EdVX8A5CLvr+vhJEnTZYPhYp2FG3f26o0VYb126Z
A2evgzNilY8=
=QJkZ
-----END PGP SIGNATURE-----



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