Re: Bug-report Segmentation Fault on startup

Philip Pinkerton <[email protected]> Fri, 30 Apr 2004 14:17:04 -0300
Newsgroups gmane.comp.scigraphica.devel
Message-ID <1083345424.23467.43.camel@localhost>
Seems I have everything but still I get the segmentation fault



gdb scigraphica

GNU gdb 6.1-debian
Copyright 2004 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-linux"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".


(gdb) run

Starting program: /usr/local/bin/scigraphica
[Thread debugging using libthread_db enabled]
[New Thread 1080664352 (LWP 21036)]
Detaching after fork from child process 21039.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1080664352 (LWP 21036)]
0x40869db0 in g_type_is_a () from /usr/lib/libgobject-2.0.so.0
(gdb) bt

#0 0x40869db0 in g_type_is_a () from /usr/lib/libgobject-2.0.so.0
#1 0x408657af in g_type_interface_add_prerequisite ()
from /usr/lib/libgobject-2.0.so.0
#2 0x40a8eecf in gtk_cell_editable_get_type ()
from /usr/lib/libgtk-x11-2.0.so.0
#3 0x409ca8ca in init_gtk ()
from /usr/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.so
#4 0x4097ced0 in init_gtk ()
from /usr/lib/python2.3/site-packages/gtk-2.0/gtk/_gtk.so
#5 0x4025eb10 in _PyImport_LoadDynamicModule ()
from /usr/lib/libpython2.3.so.1.0
#6 0x4025baa6 in PyImport_ExecCodeModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#7 0x4025c847 in PyImport_ImportModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#8 0x4025c383 in PyImport_ImportModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#9 0x4025dd81 in PyImport_AppendInittab ()
from /usr/lib/libpython2.3.so.1.0
#10 0x4025c02a in PyImport_ImportModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#11 0x4022dcf0 in _PyBuiltin_Init () from /usr/lib/libpython2.3.so.1.0
#12 0x402037ad in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0
#13 0x401dbe97 in PyObject_Call () from /usr/lib/libpython2.3.so.1.0
#14 0x40238b5a in PyEval_CallObjectWithKeywords ()
from /usr/lib/libpython2.3.so.1.0
#15 0x40236a1e in PyEval_EvalCode () from /usr/lib/libpython2.3.so.1.0
#16 0x4023786c in PyEval_EvalCodeEx () from /usr/lib/libpython2.3.so.1.0
#17 0x402348f7 in PyEval_EvalCode () from /usr/lib/libpython2.3.so.1.0
#18 0x4025adbf in PyImport_ExecCodeModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#19 0x4025d60e in PyImport_AppendInittab ()
from /usr/lib/libpython2.3.so.1.0
#20 0x4025b95f in PyImport_ExecCodeModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#21 0x4025dac9 in PyImport_AppendInittab ()
from /usr/lib/libpython2.3.so.1.0
#22 0x4025babd in PyImport_ExecCodeModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#23 0x4025c847 in PyImport_ImportModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#24 0x4025c383 in PyImport_ImportModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#25 0x4025dd81 in PyImport_AppendInittab ()
from /usr/lib/libpython2.3.so.1.0
#26 0x4025c02a in PyImport_ImportModuleEx ()
from /usr/lib/libpython2.3.so.1.0
#27 0x080c5582 in commit_modules (config=0x8268698) at python_int.c:222
#28 0x08064f9d in sg_config_exec_commit (config=0x82589e8) at
sg_config.c:257
#29 0x40549ffc in g_hash_table_foreach () from /usr/lib/libglib-1.2.so.0
#30 0x40549ffc in g_hash_table_foreach () from /usr/lib/libglib-1.2.so.0
#31 0x08065022 in sg_config_exec_commit_all () at sg_config.c:282
#32 0x0805dacc in python_init_callback (data=0xbffff99b) at sg.c:528
#33 0x4054dfa0 in g_timeout_add () from /usr/lib/libglib-1.2.so.0
#34 0x4054d03d in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#35 0x4054d4f4 in g_get_current_time () from /usr/lib/libglib-1.2.so.0
#36 0x4054d724 in g_main_run () from /usr/lib/libglib-1.2.so.0
#37 0x40474c3f in gtk_main () from /usr/lib/libgtk-1.2.so.0
#38 0x0805dc1c in main (argc=1, argv=0xbffff864, envp=0xbffff86c) at
sg.c:672



On Fri, 2004-04-30 at 16:21 +0200, Jan Kohnert wrote:
> Am Freitag, 30. April 2004 13:47 schrieb Philip Pinkerton:
> > Got IT! OH NO A BUG?
> >
> > SciGraphica Compiled no problems or errors
> >
> > Starts to run ie worksheet window then error pop-up =
> > Segmentation Fault?
> >
> > Only message says Segmentation fault send bug-report to
> > [email protected].
> >
> > OK
> >
> > What next ?
> >
> > System Info: Gateway GW1700
> > ..... CPU clock speed is 1695.0535 MHz.
> > ..... host bus clock speed is 99.0737 MHz.
> > ..... Memory 386452k
> > ..... Swap   500432k
> >
> > Debian Linux (sarge) 2.6.5-1-386 #1 Fri Apr 23 23:29:06 EST 2004 i686
> > GNU/Linux
> >
> > gcc version 3.3.3 (Debian 20040401)
> > GNU ld version 2.14.90.0.7 20031029 Debian GNU/Linux
> >
> > scigraphica-0.8.0
> > gtk+extra-0.99.17
> > readline-4.3
> 
> You will need the following python modules in order to run SciGraphica, which 
> are unfortunatly not searched by the configure-script:
> 1. numeric-python
> 2. pythonb-gtk
> 
> (WARNING: You need the package which is linked against gtk-1.2 NOT the one 
> linked to gtk-2!!!)
> 
> On woody you would need the packages: python2.1, python-gtk, python2.1-numeric 
> and if you like python2.1-numeric-ext to have a consisent python installation 
> for SciGraphica.
> 
> If you have these to modules, and SciGraphica still crashes, the problem could 
> get a bit more difficult.
> If you have installed both versions of python-gtk mentioned here, check if 
> SciGraphica uses the right one (main window -> Scripts -> Configure). There 
> you will find path to search for modules. Check that py-gtk-1 is found 
> previos to py-gtk-2 (if it is in sarge, I don't know)!! You can also try to 
> uninstall pygtk-2 and look if it works then. If it still does not work after 
> uninstalling the wrong version of pygtk, run the following:
> gdb scigraphica
> [console of gdb comes up]
> (gdb) run
> [...]
> crash
> (gdb) bt
> 
> and send the output to the list.
> 
> Good luck and best regards Jan
> 
> -- 
> OpenPGP public key available:
> http://home.arcor.de/jan.kohnert/gnupg_publickey.asc
> 
> Key-Fingerprint:
> BA8E 11D1 FE7C 9353 7276 5375 486E 9BED 2B03 DF29



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click