[IPython-user] Segfault when using TAB

Willi Richert w.richert@gmx....
Thu Aug 16 02:51:31 CDT 2007


Hi,

when using TAB for code completion in ipython it crashes somewhere in Tk (why that?). I have included the whole traceback:

 wr@[kagu]:~> gdb python
[...]
(gdb) run /usr/bin/ipython
Starting program: /usr/bin/python /usr/bin/ipython
[Thread debugging using libthread_db enabled]
[New Thread -1210259248 (LWP 10584)]
Python 2.5.1 (r251:54863, May  2 2007, 16:56:35)
Type "copyright", "credits" or "license" for more information.

IPython 0.7.3 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
%magic  -> Information about IPython's 'magic' % functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: import scipy

In [2]: import scipy.inte<TAB>

[Standby while scanning modules, this can take a while]


[New Thread -1266627696 (LWP 10587)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210259248 (LWP 10584)]
0xb55c478e in Togl_Init () from /usr/lib/python2.5/site-packages/OpenGL/Tk/linux2-tk8.4/Togl.so
(gdb) bt
#0  0xb55c478e in Togl_Init () from /usr/lib/python2.5/site-packages/OpenGL/Tk/linux2-tk8.4/Togl.so
#1  0xb4894e06 in Tcl_LoadObjCmd () from /usr/lib/libtcl8.4.so.0
#2  0xb484730b in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#3  0xb484789f in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#4  0xb48a1e8c in Tcl_PkgRequireEx () from /usr/lib/libtcl8.4.so.0
#5  0xb48a242a in Tcl_PkgRequire () from /usr/lib/libtcl8.4.so.0
#6  0xb48a2c2a in Tcl_PackageObjCmd () from /usr/lib/libtcl8.4.so.0
#7  0xb484730b in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#8  0xb48482ab in Tcl_EvalObjv () from /usr/lib/libtcl8.4.so.0
#9  0xb55d1876 in ?? () from /usr/lib/python2.5/lib-dynload/_tkinter.so
#10 0x09414630 in ?? ()
#11 0x00000003 in ?? ()
#12 0xbf912d78 in ?? ()
#13 0x00040000 in ?? ()
#14 0xbf912d78 in ?? ()
#15 0xb55d3bfc in ?? () from /usr/lib/python2.5/lib-dynload/_tkinter.so
#16 0x0816a1b8 in ?? ()
#17 0x00006008 in ?? ()
#18 0x00000150 in ?? ()
#19 0x081a12a0 in ?? ()
#20 0x094186b0 in ?? ()
#21 0x09417ba0 in ?? ()
#22 0x09417d80 in ?? ()
#23 0xb7f0d120 in ?? () from /lib/tls/i686/cmov/libc.so.6
#24 0x0818a4e8 in ?? ()
#25 0x00000008 in ?? ()
#26 0xb7d93cf0 in ?? ()
#27 0x093938e0 in ?? ()
#28 0xbf912dc8 in ?? ()
#29 0x0940ab1c in ?? ()
#30 0x0816c5d4 in ?? ()
#31 0xb7d9013c in ?? ()
#32 0xbf912dd8 in ?? ()
#33 0x0808628f in lookdict_string (mp=0x93f1598, key=0xb55cc6ee, hash=-108100439
#34 0x080c8a7c in PyEval_EvalFrameEx (f=0x93ab3b4, throwflag=0) at ../Python/cev
#35 0x080c9ca5 in PyEval_EvalCodeEx (co=0x9394650, globals=0x926335c, locals=0x9
    kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2831
#36 0x080c9d17 in PyEval_EvalCode (co=0x9394650, globals=0x926335c, locals=0x926
#37 0x080de46c in PyImport_ExecCodeModuleEx (name=0xbf916247 "OpenGL.Tk", co=0x9
    pathname=0xbf913157 "/usr/lib/python2.5/site-packages/OpenGL/Tk/__init__.pyc
#38 0x080dedc6 in load_source_module (name=0xbf916247 "OpenGL.Tk",
    pathname=0xbf913157 "/usr/lib/python2.5/site-packages/OpenGL/Tk/__init__.pyc
    at ../Python/import.c:953
#39 0x080e048e in load_package (name=0xbf916247 "OpenGL.Tk", pathname=<value opt
#40 0x080df44b in import_submodule (mod=0x9130854, subname=0xbf91624e "Tk", full
    at ../Python/import.c:2394
#41 0x080df8fe in load_next (mod=0x9130854, altmod=0x9130854, p_name=<value optimized out>, buf=0xbf916247 "OpenGL.Tk",
    p_buflen=0xbf916240) at ../Python/import.c:2214
#42 0x080dfb70 in import_module_level (name=0x0, globals=<value optimized out>, locals=<value optimized out>, fromlist=0x0,
    level=-1) at ../Python/import.c:2002
#43 0x080dffb7 in PyImport_ImportModuleLevel (name=0x9388b74 "OpenGL.Tk", globals=0x0, locals=0x0, fromlist=0x0, level=-1)
    at ../Python/import.c:2066
#44 0x080c1944 in builtin___import__ (self=0x0, args=0x8f91f0c, kwds=0x0) at ../Python/bltinmodule.c:47
#45 0x080c8a7c in PyEval_EvalFrameEx (f=0x8fc8174, throwflag=0) at ../Python/ceval.c:3564
#46 0x0810fcbd in gen_send_ex (gen=0x93701cc, arg=0x0, exc=0) at ../Objects/genobject.c:82
#47 0x080c37cd in PyEval_EvalFrameEx (f=0x82163ec, throwflag=0) at ../Python/ceval.c:2164
#48 0x0810fcbd in gen_send_ex (gen=0x858ea6c, arg=0x0, exc=0) at ../Objects/genobject.c:82
#49 0x0807c776 in listextend (self=0x858eaec, b=0x858ea6c) at ../Objects/listobject.c:808
#50 0x0807ccc0 in list_init (self=0x858eaec, args=0x84ceaac, kw=0x0) at ../Objects/listobject.c:2372
#51 0x0809f393 in type_call (type=0x8144360, args=0x84ceaac, kwds=0x0) at ../Objects/typeobject.c:436
#52 0x0805c787 in PyObject_Call (func=0xb49b6a40, arg=0x84ceaac, kw=0x0) at ../Objects/abstract.c:1860
#53 0x080c4da1 in PyEval_EvalFrameEx (f=0x8216244, throwflag=0) at ../Python/ceval.c:3775
#54 0x0810fcbd in gen_send_ex (gen=0x858eacc, arg=0x0, exc=0) at ../Objects/genobject.c:82
#55 0x080c37cd in PyEval_EvalFrameEx (f=0x8552964, throwflag=0) at ../Python/ceval.c:2164
#56 0x080c8ea5 in PyEval_EvalFrameEx (f=0x859b884, throwflag=0) at ../Python/ceval.c:3650
#57 0x080c9ca5 in PyEval_EvalCodeEx (co=0x8329f08, globals=0x832f13c, locals=0x0, args=0x84ed100, argcount=3, kws=0x0,
    kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2831
#58 0x08111f21 in function_call (func=0x832ddbc, arg=0x84ed0f4, kw=0x0) at ../Objects/funcobject.c:517
#59 0x0805c787 in PyObject_Call (func=0xb49b6a40, arg=0x84ed0f4, kw=0x0) at ../Objects/abstract.c:1860
#60 0x080628e4 in instancemethod_call (func=0x833157c, arg=0x84ed0f4, kw=0x0) at ../Objects/classobject.c:2497
#61 0x0805daed in call_function_tail (callable=0x833157c, args=0x858e8ec) at ../Objects/abstract.c:1860
#62 0x0805e63f in PyObject_CallFunction (callable=0x833157c, format=0xb7cb9e1f "si") at ../Objects/abstract.c:1915
#63 0xb7cb97d0 in on_completion (text=0x83cd988 "scipy.inte", state=0)
    at /build/buildd/python2.5-2.5.1/Modules/readline.c:644
#64 0xb7ad455c in rl_completion_matches () from /lib/libreadline.so.5
#65 0xb7cb9733 in flex_complete (text=0x83cd988 "scipy.inte", start=7, end=17)
    at /build/buildd/python2.5-2.5.1/Modules/readline.c:681
#66 0xb7ad461d in ?? () from /lib/libreadline.so.5
#67 0x083cd988 in ?? ()
#68 0x00000007 in ?? ()
#69 0x00000011 in ?? ()
#70 0xb7aecbc0 in ?? () from /lib/libreadline.so.5
#71 0x00000011 in ?? ()
#72 0x083cd988 in ?? ()
#73 0xbf917fe8 in ?? ()
#74 0xb7ad589e in rl_complete_internal () from /lib/libreadline.so.5
Backtrace stopped: frame did not save the PC
(gdb)                                                               


More information about the IPython-user mailing list