Re: newbie - scigraphica segmentation fault at startup
Anand <[email protected]> Wed, 21 Jan 2004 09:47:39 +0530
| Newsgroups | gmane.comp.scigraphica.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Adrian, I have attached the gdb trace as a text file. I hope this is useful. BTW, I looked up the scigraphica-devel list message archives and found that others have had similar problems. Apparently this is because RedHat 9 has gtk-1.2 AND gtk-2.0. The pygtk module on RH 9 is compiled against gtk-2, whereas sg expects pygtk compiled against gtk-1.2. Hmm - so, let me ask, is there a version of sg written against gtk-2 ? Thanks again. Anand Adrian E. Feiguin wrote: > Hi Anand, can you run sg under gdb to trace the problem? > type > > $ gdb scigraphica > gdb> run > .... crash > gdb> bt > > And send the output > Saludos, > <ADRIAN> > > > Anand wrote: > >> Experts - please help - I am not sure if this is a bug - anyways, >> here is the problem. >> >> I managed to compile scigraphica 0.8.0 on Redhat Linux 9.0 after >> first installing gtk+extra and Numeric Python. >> However, when I run scigraphica, I see the welcome screen and then the >> main screen which flashes "loading python modules" at the bottom - but >> immediately after this I get segmentation fault !!! >> >> I compiled with the configure flag --prefix=/usr >> >> Here is what I get when I say scigraphica --version : >> >> enif >> scigraphica --version >> Gnome scigraphica sg-0.8.0 >> Linux 2.4.20-8 i686 i686 >> gtk-1.2.10 gtkextra-0.99.17 gnome-libs-1.4.1.2 >> xml-1.8.17 python-2.2.2 /usr/include/python2.2/Numeric/ >> Jan 20 2004 22:06:27 >> Compiler flags: gcc -g -O2 -I -DREADLINE_4 -I/usr/include/gtk-1.2 >> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include >> -DWITH_GDK_IMLIB -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H >> -I/usr/lib/gnome-libs/include -DWITH_GNOME -DWITH_GNOME_PRINT >> -DWITH_LIBART -I../zvt -I../../zvt -I/usr/include/gnome-xml >> -I/usr/local/include -I/usr/include/python2.2 >> -I/usr/include/python2.2/Numeric/ -DWITH_NUMERIC_PYTHON -L -lreadline >> -ltermcap -lncurses -L/usr/lib -lgdk_imlib >> -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi >> -lXext -lX11 -lm -L/usr/local/lib -lgtkextra -lgnomeui -lart_lgpl >> -lSM -lICE -lgnome -lgnomesupport -lesd -laudiofile -L../zvt -lsgvt >> -lxml -lz >> (C) 2000 Adrian E. Feiguin >> >> enif >> >> >> >> >> ------------------------------------------------------- >> The SF.Net email is sponsored by EclipseCon 2004 >> Premiere Conference on Open Tools Development and Integration >> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >> http://www.eclipsecon.org/osdn >> _______________________________________________ >> Scigraphica-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/scigraphica-devel >> >> . >> >> >> -- ____________________________________________________________ Anand Sengupta | IUCAA | Phone : +91 20 569 1399 [ext 307] [Work] PO Bag 4, | +91 9822 664418 [Cell] Ganeshkhind, | Fax : +91 20 569 0760 Pune 411 007 | URL : http://www.iucaa.ernet.in/~anandss ________________|___________________________________________ A man gazing at the stars is proverbially at the mercy of the puddles in the road. -- Alexander Smithroad. -- ____________________________________________________________ Anand Sengupta | IUCAA | Phone : +91 20 569 1399 [ext 307] [Work] PO Bag 4, | +91 9822 664418 [Cell] Ganeshkhind, | Fax : +91 20 569 0760 Pune 411 007 | URL : http://www.iucaa.ernet.in/~anandss ________________|___________________________________________ A man gazing at the stars is proverbially at the mercy of the puddles in the road. -- Alexander Smithroad.
scigraphica_gdbDump.txt
(text/plain, 3 KB)
enif >> gdb scigraphica GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (gdb) run Starting program: /usr/local/bin/scigraphica [New Thread 1085001824 (LWP 14416)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1085001824 (LWP 14416)] 0x40e1b1d2 in g_type_is_a () from /usr/lib/libgobject-2.0.so.0 (gdb) bt #0 0x40e1b1d2 in g_type_is_a () from /usr/lib/libgobject-2.0.so.0 #1 0x40e17827 in g_type_interface_add_prerequisite () from /usr/lib/libgobject-2.0.so.0 #2 0x40fa67d1 in gtk_cell_editable_get_type () from /usr/lib/libgtk-x11-2.0.so.0 #3 0x40f16b4b in pygtk_register_classes () from /usr/lib/python2.2/site-packages/gtk-2.0/gtk/_gtkmodule.so #4 0x40ece583 in init_gtk () from /usr/lib/python2.2/site-packages/gtk-2.0/gtk/_gtkmodule.so #5 0x0812574f in _PyImport_LoadDynamicModule () #6 0x08123563 in load_module () #7 0x081243b3 in import_submodule () #8 0x08123f37 in load_next () #9 0x08123ae3 in import_module_ex () #10 0x08123c6e in PyImport_ImportModuleEx () #11 0x08106250 in builtin___import__ () #12 0x080e4b44 in PyCFunction_Call () #13 0x080cc6f7 in PyObject_Call () #14 0x0810f8c0 in PyEval_CallObjectWithKeywords () #15 0x0810d5e9 in eval_frame () #16 0x0810e6be in PyEval_EvalCodeEx () #17 0x0810b5b5 in PyEval_EvalCode () #18 0x081223f5 in PyImport_ExecCodeModuleEx () #19 0x08122acd in load_source_module () #20 0x08123526 in load_module () #21 0x08122d15 in load_package () #22 0x0812359c in load_module () ---Type <return> to continue, or q <return> to quit--- #23 0x081243b3 in import_submodule () #24 0x08123f37 in load_next () #25 0x08123ae3 in import_module_ex () #26 0x08123c6e in PyImport_ImportModuleEx () #27 0x080c4f00 in commit_modules (config=0x83f5908) at python_int.c:222 #28 0x08072f48 in sg_config_exec_commit (config=0x83d56a0) at sg_config.c:257 #29 0x40a94fd6 in g_hash_table_foreach () from /usr/lib/libglib-1.2.so.0 #30 0x40a94fd6 in g_hash_table_foreach () from /usr/lib/libglib-1.2.so.0 #31 0x08072fbc in sg_config_exec_commit_all () at sg_config.c:282 #32 0x0806ce13 in python_init_callback (data=0xbffff520) at sg.c:528 #33 0x40a99b1f in g_timeout_add () from /usr/lib/libglib-1.2.so.0 #34 0x40a989ae in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #35 0x40a98e89 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 #36 0x40a99124 in g_main_run () from /usr/lib/libglib-1.2.so.0 #37 0x409a427f in gtk_main () from /usr/lib/libgtk-1.2.so.0 #38 0x0806cf48 in main (argc=1, argv=0xbfffe354, envp=0xbfffe35c) at sg.c:672 #39 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6 (gdb) (gdb) quit The program is running. Exit anyway? (y or n) y