[vtkusers] core dump with vtk4.0/python on Linux

Mathieu Malaterre mmalat at irus.rri.ca
Thu Apr 4 22:37:34 EST 2002


Hi jon,
   I had already done a 'make clean' and rebuild with g++ instead of c++
and
now I don't have anymore this problem (it's obviously not related, but I
really don't know what was wrong).
But I have now a problem with vtkTkRenderWidget.py

I went on vtk website download the nightly source, rebuilt from scratch.
Then I went into VTK/Wrapping/Python
and try:
python vtkRenderWidget.py

..But I get a core dump.

Here is what I have with gdb :


[mmalat at shalom Python]$ gdb python
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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"...
(gdb) run vtkTkRenderWidget.py
Starting program: /usr/local/bin/python vtkTkRenderWidget.py
[New Thread 1024 (LWP 32400)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 32400)]
__pthread_mutex_lock (mutex=0xff18c19d) at mutex.c:99
99      mutex.c: No such file or directory.
        in mutex.c
(gdb) bt
#0  __pthread_mutex_lock (mutex=0xff18c19d) at mutex.c:99
#1  0x400e8d4d in __libc_free (mem=0x402d9114) at malloc.c:3052
#2  0x420b766b in TclpFree () from /usr/lib/libtcl.so
#3  0x420bc91b in Tcl_Free () from /usr/lib/libtcl.so
#4  0x420fcbba in ResetObjResult () from /usr/lib/libtcl.so
#5  0x4215d7fc in Tk_MainWindow () from /usr/lib/libtk.so
#6  0x41ba8d76 in Vtkrenderingpythontkwidgets_Init (interp=0x8158410)
    at /shalom/data/mmalat/VTK/Rendering/vtkTkWidgetsInit.cxx:42
#7  0x402a3c0d in Tcl_LoadObjCmd () from
/irus/rri/steinman/tkDDC/lib/libtcl8.3.so
#8  0x4028bf19 in TclExecuteByteCode () from
/irus/rri/steinman/tkDDC/lib/libtcl8.3.so
#9  0x40270455 in Tcl_EvalObjEx () from
/irus/rri/steinman/tkDDC/lib/libtcl8.3.so
#10 0x40274310 in Tcl_CatchObjCmd () from
/irus/rri/steinman/tkDDC/lib/libtcl8.3.so
#11 0x402aa0ad in EvalObjv () from
/irus/rri/steinman/tkDDC/lib/libtcl8.3.so
#12 0x402aa7ab in Tcl_EvalEx () from
/irus/rri/steinman/tkDDC/lib/libtcl8.3.so
#13 0x402aaa25 in Tcl_Eval () from
/irus/rri/steinman/tkDDC/lib/libtcl8.3.so
#14 0x4001c964 in Tkapp_Eval () at eval.c:41
#15 0x080c6550 in PyCFunction_Call (func=0x8158130, arg=0x8158154,
kw=0x0) at Objects/methodobject.c:101
#16 0x080770b0 in eval_frame (f=0x812c0dc) at Python/ceval.c:1993
#17 0x0807816b in PyEval_EvalCodeEx (co=0x825e9b0, globals=0x81751ec,
locals=0x0, args=0x8158078, argcount=1,
    kws=0x815807c, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
Python/ceval.c:2574
#18 0x0807a293 in fast_function (func=0x8156894, pp_stack=0xbfffed74,
n=1, na=1, nk=0) at Python/ceval.c:3153
#19 0x0807714d in eval_frame (f=0x8157f14) at Python/ceval.c:2013
#20 0x0807816b in PyEval_EvalCodeEx (co=0x81b2870, globals=0x810e2d4,
locals=0x0, args=0x82cab88, argcount=2,
    kws=0x82d2170, kwcount=2, defs=0x8175188, defcount=1, closure=0x0)
at Python/ceval.c:2574
#21 0x080b9bb7 in function_call (func=0x81573fc, arg=0x82cab7c,
kw=0x82cb254) at Objects/funcobject.c:374
#22 0x080a7808 in PyObject_Call (func=0x81573fc, arg=0x82cab7c,
kw=0x82cb254) at Objects/abstract.c:1665
#23 0x080ae8fb in instancemethod_call (func=0x81573fc, arg=0x8157ef4,
kw=0x82cb254) at Objects/classobject.c:2276
#24 0x080a7808 in PyObject_Call (func=0x825e6a4, arg=0x8157ef4,
kw=0x82cb254) at Objects/abstract.c:1665
#25 0x08079bab in PyEval_CallObjectWithKeywords (func=0x825e6a4,
arg=0x8157ef4, kw=0x82cb254) at Python/ceval.c:3038
#26 0x080ab0eb in PyInstance_New (klass=0x8157c7c, arg=0x8157ef4,
kw=0x82cb254) at Objects/classobject.c:557
#27 0x080a7808 in PyObject_Call (func=0x8157c7c, arg=0x8157ef4,
kw=0x82cb254) at Objects/abstract.c:1665
#28 0x0807a31c in do_call (func=0x8157c7c, pp_stack=0xbffff014, na=1,
nk=2) at Python/ceval.c:3251
#29 0x08077168 in eval_frame (f=0x8157cac) at Python/ceval.c:2016
#30 0x0807816b in PyEval_EvalCodeEx (co=0x81bded0, globals=0x810e2d4,
locals=0x0, args=0x81153ac, argcount=0,
    kws=0x81153ac, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
Python/ceval.c:2574
#31 0x0807a293 in fast_function (func=0x8267c4c, pp_stack=0xbffff174,
n=0, na=0, nk=0) at Python/ceval.c:3153
#32 0x0807714d in eval_frame (f=0x811525c) at Python/ceval.c:2013
#33 0x0807816b in PyEval_EvalCodeEx (co=0x81b3cc8, globals=0x810e2d4,
locals=0x810e2d4, args=0x0, argcount=0, kws=0x0,
    kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574
#34 0x0807a232 in PyEval_EvalCode (co=0x81b3cc8, globals=0x810e2d4,
locals=0x810e2d4) at Python/ceval.c:488
#35 0x08093f69 in run_node (n=0x811c160, filename=0xbffff531
"vtkTkRenderWidget.py", globals=0x810e2d4, locals=0x810e2d4,
---Type <return> to continue, or q <return> to quit---




And here is a part of my .cshrc file:
setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH":/shalom/data/mmalat/VTK/bin/"
setenv PYTHONPATH
/shalom/data/mmalat/VTK/Wrapping/Python:/shalom/data/mmalat/VTK/bin

I really don't know what I did wrong. Any idea would be really helpfull
Mathieu
Ps: It is related only to Python because tcl work fine.









jon n wrote:

> run 'ldd libVTKIOPython.so' to see if the JPEG shared library libvtkjpeg.so
> is being linked in correctly.
>
> >From: Mathieu Malaterre <mmalat at irus.rri.ca>
> >To: vtkusers at public.kitware.com
> >Subject: [vtkusers] newbie problems with vtk4.0/python on Linux
> >Date: Wed, 03 Apr 2002 19:26:08 -0500
> >
> >Hi,
> >
> >  I am having trouble started with VTK 4.0 & PYTHON (vtk 3.2 was working
> >fine).
> >
> >After compiling vtk4, I tried to use python (via vtkpython), but I get
> >this
> >
> >[mmalat at shalom VTK]$ python
> >Python 2.2 (#1, Feb  7 2002, 17:18:50)
> >[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2
> >Type "help", "copyright", "credits" or "license" for more information.
> > >>> import vtkpython
> >Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> >   File "/shalom/data/mmalat/VTK/Wrapping/Python/vtkpython.py", line 29,
> >in ?
> >     exec "from "+kit_name+" import *"
> >   File "<string>", line 1, in ?
> >ImportError: /shalom/data/mmalat/VTK/bin/libvtkIOPython.so: undefined
> >symbol: jpeg_std_error
> > >>>
> >
> >
> >Does anyone have any idea what I am doing wrong?
> >
> >many thanks,
> >
> >Mathieu
> ><< mmalat.vcf >>
>
> _________________________________________________________________
> Join the world?s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmalat.vcf
Type: text/x-vcard
Size: 392 bytes
Desc: Card for Mathieu Malaterre
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020404/648041e0/attachment.vcf>


More information about the vtkusers mailing list