#25 list() cause seg fault when out of console

open-works-for-me
nobody
None
5
2010-01-21
2010-01-20
No

here is a simple file to run

#list_bug.py

from cgkit.cgtypes import *

if __name__ == "__main__":
v = vec3()
list(v)

>> python list_bug.py
Segmentation fault

in the python console it would work though

Discussion

  • Matthias Baas

    Matthias Baas - 2010-01-21

    I can't reproduce this problem. When i run this here, the script runs just fine without producing a segfault.
    You should always provide more information about your system and environment. What OS is this? What version of cgkit? Did you compile it yourself? etc.

    Given that in bug 2935708 you also describe something I can't reproduce and it has also been the case in an earlier bug report, I'm tempted to say something is wrong with your build of cgkit... maybe you should rather post about this in the mailing list. There might be other people with the same system you are on which could then either confirm the bug or confirm that it's working for them.

    I'll keep the bug report open for a while, but if nothing new comes up and I still won't be able to reproduce it, I'll close it eventually.

     
  • Matthias Baas

    Matthias Baas - 2010-01-21
    • status: open --> open-works-for-me
     
  • Maxime Lemonnier

    OS : Ubuntu 9.10
    version : git master

    built with
    BOOST_LIB = "boost_python-mt"

    (also tried boost_python-py26)

    I also have the bug in console if I do list(vec3())

     
  • Bernard Edlington

    I've had exactly the same issue a while back. I don't use Ubuntu, as we have our own kernel and system here. The weird thing is it worked on some machines and not on others.
    I think I solved it.
    it seems to be a library problem with _core.so
    please check:
    ldd <wherevever your python installs are>/site-packages/cgkit/_core.so
    Do you have ATI libs? such as:
    /usr/lib/libatiuki.so.1
    /usr/lib64/opengl/ati/lib/libGL.so.1
    When I change over to Nvidia libs on exactly the same machine
    /usr/lib64/opengl/nvidia/lib/libGL.so.1
    /usr/lib/libnvidia-glcore.so.260.19.29
    /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.260.19.29
    The problem goes away.
    We had the advantage of using the same machine which with both ATI and NVIDIA libs installed.

     
  • Bernard Edlington

    a little more specific:
    using ATI
    ldd /usr/lib64/python2.6/site-packages/cgkit/_core.so |sort
    /lib64/ld-linux-x86-64.so.2 (0x00007fd968533000)
    libatiuki.so.1 => /usr/lib/libatiuki.so.1 (0x00007fd965f5b000)
    libboost_python-1_42.so.1.42.0 => /usr/lib/libboost_python-1_42.so.1.42.0 (0x00007fd967b8b000)
    libc.so.6 => /lib/libc.so.6 (0x00007fd96667f000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007fd966277000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fd966bf8000)
    libGL.so.1 => /usr/lib64/opengl/ati/lib/libGL.so.1 (0x00007fd9679b1000)
    libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007fd967740000)
    libm.so.6 => /lib/libm.so.6 (0x00007fd966e0f000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd9669db000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007fd96739e000)
    libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6 (0x00007fd967092000)
    libutil.so.1 => /lib/libutil.so.1 (0x00007fd96647c000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fd965c20000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fd9657fd000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fd965a02000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fd9655f7000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fd966064000)
    linux-vdso.so.1 => (0x00007fff705fd000)
    using Nvidia
    ldd /usr/lib64/python2.6/site-packages/cgkit/_core.so |sort
    /lib64/ld-linux-x86-64.so.2 (0x00007f6a47dbf000)
    libboost_python-1_42.so.1.42.0 => /usr/lib/libboost_python-1_42.so.1.42.0 (0x00007f6a47417000)
    libc.so.6 => /lib/libc.so.6 (0x00007f6a45ddf000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007f6a459d7000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f6a46358000)
    libGL.so.1 => /usr/lib64/opengl/nvidia/lib/libGL.so.1 (0x00007f6a47111000)
    libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007f6a46ea0000)
    libm.so.6 => /lib/libm.so.6 (0x00007f6a4656f000)
    libnvidia-glcore.so.260.19.29 => /usr/lib/libnvidia-glcore.so.260.19.29 (0x00007f6a43be9000)
    libnvidia-tls.so.260.19.29 => /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.260.19.29 (0x00007f6a457d5000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007f6a4613b000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007f6a46afe000)
    libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/libstdc++.so.6 (0x00007f6a467f2000)
    libutil.so.1 => /lib/libutil.so.1 (0x00007f6a45bdc000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f6a438ae000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f6a43278000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f6a4347c000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f6a43072000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f6a4369b000)
    linux-vdso.so.1 => (0x00007fff4fdfe000)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks