bilboed@pitivi ~/work/python-tests $ gdb python
GNU gdb 6.5
Copyright (C) 2006 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r stupider.py
Starting program: /usr/bin/python stupider.py
[Thread debugging using libthread_db enabled]
[New Thread -1210763600 (LWP 1725)]
ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/gstreamer-0.10/libgstpython.so
Please either:
- remove it and restart.
- run with --gst-disable-segtrap and debug.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210763600 (LWP 1725)]
PyParser_AddToken (ps=0x827a258, type=1, str=0xb7d4d458 "import", lineno=1, expected_ret=0xbfcd83b8) at Parser/parser.c:225
225 Parser/parser.c: No such file or directory.
in Parser/parser.c
(gdb) bt
#0 PyParser_AddToken (ps=0x827a258, type=1, str=0xb7d4d458 "import", lineno=1, expected_ret=0xbfcd83b8) at Parser/parser.c:225
#1 0xb7ecd7e9 in parsetok (tok=0x8279ec0, g=0x0, start=0, err_ret=0xbfcd83a0, flags=0) at Parser/parsetok.c:166
#2 0xb7ecdcdf in PyParser_ParseStringFlags (s=0x0, g=0x0, start=0, err_ret=0x0, flags=0) at Parser/parsetok.c:31
#3 0xb7f4f4c4 in PyParser_SimpleParseStringFlags (str=0x0, start=0, flags=0) at Python/pythonrun.c:1365
#4 0xb7f4f5cd in PyRun_StringFlags (str=0x0, start=0, globals=0x0, locals=0x0, flags=0x0) at Python/pythonrun.c:1222
#5 0xb6509c2a in plugin_init (plugin=0x8250d60) at gstpythonplugin.c:238
#6 0xb7be9263 in gst_plugin_register_func (plugin=0x8250d60, module=0x0, desc=0xb650bc40) at gstplugin.c:259
#7 0xb7be98a7 in gst_plugin_load_file (filename=0x82743c8 "/usr/lib/gstreamer-0.10/libgstpython.so", error=0x0) at gstplugin.c:450
#8 0xb7bee7f4 in gst_registry_scan_path_level (registry=0x80bc420, path=0xb7c196cd "/usr/lib/gstreamer-0.10", level=10) at gstregistry.c:834
#9 0xb7beeba6 in gst_registry_scan_path (registry=0x80bc420, path=0xb7c196cd "/usr/lib/gstreamer-0.10") at gstregistry.c:872
#10 0xb7bb4aac in scan_and_update_registry (default_registry=0x80bc420, registry_file=0x80be170 "/home/bilboed/.gstreamer-0.10/registry.i686.xml", write_changes=0) at gst.c:624
#11 0xb7bb511b in init_post () at gst.c:728
#12 0xb79d9a5e in IA__g_option_context_parse (context=0x805df48, argc=0xbfcd88e0, argv=0xbfcd88e4, error=0xbfcd88e8) at goption.c:1627
#13 0xb7bb3e77 in gst_init_check (argc=0x0, argv=0x0, err=0x0) at gst.c:371
#14 0xb7c6b239 in init_gst () at gstmodule.c:134
#15 0xb7f49fa3 in _PyImport_LoadDynamicModule (name=0xbfcd8e40 "gst._gst", pathname=0xbfcd89a0 "/usr/lib/python2.4/site-packages/gst-0.10/gst/_gst.so", fp=0x0) at ./Python/importdl.c:53
#16 0xb7f47b52 in load_module (name=0xbfcd8e40 "gst._gst", fp=0x0, buf=0xbfcd89a0 "/usr/lib/python2.4/site-packages/gst-0.10/gst/_gst.so", type=3, loader=0x0) at Python/import.c:1685
#17 0xb7f47f8c in import_submodule (mod=0xb7d132cc, subname=0xbfcd8e44 "_gst", fullname=0xbfcd8e40 "gst._gst") at Python/import.c:2270
#18 0xb7f481b5 in load_next (mod=0xb7d132cc, altmod=0xb7f86788, p_name=0xbfcd8e44, buf=0xbfcd8e40 "gst._gst", p_buflen=0xbfcd8e3c) at Python/import.c:2090
#19 0xb7f48630 in PyImport_ImportModuleEx (name=0x0, globals=0x0, locals=0xb7cbe3e4, fromlist=0xb7cbf5ec) at Python/import.c:1925
#20 0xb7f2647e in builtin___import__ (self=0x0, args=0x0) at Python/bltinmodule.c:45
#21 0xb7efa919 in PyCFunction_Call (func=0xb7d1bd6c, arg=0xb7cbd84c, kw=0x0) at Objects/methodobject.c:108
#22 0xb7ed5597 in PyObject_Call (func=0x0, arg=0x0, kw=0x0) at Objects/abstract.c:1795
#23 0xb7f2e088 in PyEval_CallObjectWithKeywords (func=0x0, arg=0xb7cbd84c, kw=0x0) at Python/ceval.c:3430
#24 0xb7f2ffff in PyEval_EvalFrame (f=0x8086a64) at Python/ceval.c:2020
#25 0xb7f3415e in PyEval_EvalCodeEx (co=0xb7cc10e0, globals=0x0, locals=0x0, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2736
#26 0xb7f343c5 in PyEval_EvalCode (co=0x0, globals=0x0, locals=0x0) at Python/ceval.c:484
#27 0xb7f4631f in PyImport_ExecCodeModuleEx (name=0xbfcda420 "gst", co=0xb7cc10e0, pathname=0xbfcd9640 "/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.pyc") at Python/import.c:631
#28 0xb7f46707 in load_source_module (name=0xbfcda420 "gst", pathname=0xbfcd9640 "/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.pyc", fp=0x804b8b0) at Python/import.c:913
#29 0xb7f47b2e in load_module (name=0xbfcda420 "gst", fp=0x0, buf=0xbfcd9ae0 "/usr/lib/python2.4/site-packages/gst-0.10/gst/__init__.py", type=1, loader=0x0) at Python/import.c:1676
#30 0xb7f47e1f in load_package (name=0xbfcda420 "gst", pathname=0xb7cb5380 "\003") at Python/import.c:969
#31 0xb7f47b5e in load_module (name=0xbfcda420 "gst", fp=0x0, buf=0xbfcd9f80 "/usr/lib/python2.4/site-packages/gst-0.10/gst", type=5, loader=0x0) at Python/import.c:1690
#32 0xb7f47f8c in import_submodule (mod=0xb7f86788, subname=0xbfcda420 "gst", fullname=0xbfcda420 "gst") at Python/import.c:2270
#33 0xb7f481b5 in load_next (mod=0xb7f86788, altmod=0xb7f86788, p_name=0xbfcda420, buf=0xbfcda420 "gst", p_buflen=0xbfcda41c) at Python/import.c:2090
#34 0xb7f48630 in PyImport_ImportModuleEx (name=0x0, globals=0x0, locals=0xb7d2c824, fromlist=0xb7f86788) at Python/import.c:1925
#35 0xb7f2647e in builtin___import__ (self=0x0, args=0x0) at Python/bltinmodule.c:45
#36 0xb7efa919 in PyCFunction_Call (func=0xb7d1bd6c, arg=0xb7d32b94, kw=0x0) at Objects/methodobject.c:108
#37 0xb7ed5597 in PyObject_Call (func=0x0, arg=0x0, kw=0x0) at Objects/abstract.c:1795
#38 0xb7f2e088 in PyEval_CallObjectWithKeywords (func=0x0, arg=0xb7d32b94, kw=0x0) at Python/ceval.c:3430
#39 0xb7f2ffff in PyEval_EvalFrame (f=0x807be24) at Python/ceval.c:2020
#40 0xb7f3415e in PyEval_EvalCodeEx (co=0xb7d4cda0, globals=0x0, locals=0x0, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2736
#41 0xb7f343c5 in PyEval_EvalCode (co=0x0, globals=0x0, locals=0x0) at Python/ceval.c:484
#42 0xb7f4ef15 in run_node (n=0xb7d132c0, filename=0x0, globals=0x0, locals=0x0, flags=0x0) at Python/pythonrun.c:1265
#43 0xb7f501f5 in PyRun_SimpleFileExFlags (fp=0x804a008, filename=0xbfcdb2c9 "stupider.py", closeit=1, flags=0xbfcdacc8) at Python/pythonrun.c:860
#44 0xb7f50d60 in PyRun_AnyFileExFlags (fp=0x804a008, filename=0xbfcdb2c9 "stupider.py", closeit=1, flags=0xbfcdacc8) at Python/pythonrun.c:664
#45 0xb7f57017 in Py_Main (argc=1, argv=0xbfcdae04) at Modules/main.c:493
#46 0x080485ba in main (argc=0, argv=0x0) at Modules/python.c:23