Re: gtk_tree_store_set
- From: The Saltydog <thesaltydog gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk_tree_store_set
- Date: Thu, 28 Jul 2005 12:41:36 +0200
On 7/28/05, Brian J. Tarricone <bjt23 cornell edu> wrote:
If you post a section of source code showing what you're trying to do,
we might be able to help.
sorry.
This is my code:
**************************************
gtk_tree_store_append(model,&firstiter,NULL);
gtk_tree_store_set(model,&firstiter,
0, "/", 1, "/",
3, (gfloat)((g_fs.used*100)/g_fs.total),
4, calc(g_fs.used), 5, g_fs.used,
7, -100,
-1);
*********************************************************
It works fine on any i386/686 installation. On PowerPc and on amd, I
have a segfault reaching this instructions. This is the segfault on
amd64:
Program received signal SIGSEGV, Segmentation fault.
0x00002aaaaadd4c24 in IA__gtk_tree_store_set_valist
(tree_store=0x5c52d0, iter=0x50b9a0, var_args=0x7fffffc223f0) at
gtktreestore.c:982
982 gtktreestore.c: No such file or directory.
in gtktreestore.c
(gdb) thread apply all bt
(gdb) bt
#0 0x00002aaaaadd4c24 in IA__gtk_tree_store_set_valist
(tree_store=0x5c52d0, iter=0x50b9a0, var_args=0x7fffffc223f0) at
gtktreestore.c:982
#1 0x00002aaaaadd5008 in IA__gtk_tree_store_set (tree_store=0x5c52d0,
iter=0x50b9a0) at gtktreestore.c:1048
#2 0x0000000000405005 in ?? ()
#3 0x000000000040593c in ?? ()
#4 0x00002aaaaca3a47b in __libc_start_main () from /lib/libc.so.6
#5 0x0000000000404dda in ?? ()
#6 0x00007fffffc22618 in ?? ()
#7 0x000000000000001c in ?? ()
...
and this is part of the segfault on a PowerPc:
Gtk-WARNING **: gtktreestore.c:979: Invalid column number
268566528 added to iter (remember to end your list of columns with a -1)
Segmentation fault
Notice that it compiles straight on every platform, and on i386 the
program works fine without any warning.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]