Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


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

Maxime Lemonnier

here is a simple file to run

from cgkit.cgtypes import *

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

>> python
Segmentation fault

in the python console it would work though


  • Matthias Baas
    Matthias Baas

    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

    • status: open --> open-works-for-me
  • 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())

  • 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
    please check:
    ldd <wherevever your python installs are>/site-packages/cgkit/
    Do you have ATI libs? such as:
    When I change over to Nvidia libs on exactly the same machine
    The problem goes away.
    We had the advantage of using the same machine which with both ATI and NVIDIA libs installed.

  • a little more specific:
    using ATI
    ldd /usr/lib64/python2.6/site-packages/cgkit/ |sort
    /lib64/ (0x00007fd968533000) => /usr/lib/ (0x00007fd965f5b000) => /usr/lib/ (0x00007fd967b8b000) => /lib/ (0x00007fd96667f000) => /lib/ (0x00007fd966277000) => /lib/ (0x00007fd966bf8000) => /usr/lib64/opengl/ati/lib/ (0x00007fd9679b1000) => /usr/lib/ (0x00007fd967740000) => /lib/ (0x00007fd966e0f000) => /lib/ (0x00007fd9669db000) => /usr/lib/ (0x00007fd96739e000) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/ (0x00007fd967092000) => /lib/ (0x00007fd96647c000) => /usr/lib/ (0x00007fd965c20000) => /usr/lib/ (0x00007fd9657fd000) => /usr/lib/ (0x00007fd965a02000) => /usr/lib/ (0x00007fd9655f7000) => /usr/lib/ (0x00007fd966064000) => (0x00007fff705fd000)
    using Nvidia
    ldd /usr/lib64/python2.6/site-packages/cgkit/ |sort
    /lib64/ (0x00007f6a47dbf000) => /usr/lib/ (0x00007f6a47417000) => /lib/ (0x00007f6a45ddf000) => /lib/ (0x00007f6a459d7000) => /lib/ (0x00007f6a46358000) => /usr/lib64/opengl/nvidia/lib/ (0x00007f6a47111000) => /usr/lib/ (0x00007f6a46ea0000) => /lib/ (0x00007f6a4656f000) => /usr/lib/ (0x00007f6a43be9000) => /usr/lib64/opengl/nvidia/lib/ (0x00007f6a457d5000) => /lib/ (0x00007f6a4613b000) => /usr/lib/ (0x00007f6a46afe000) => /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/ (0x00007f6a467f2000) => /lib/ (0x00007f6a45bdc000) => /usr/lib/ (0x00007f6a438ae000) => /usr/lib/ (0x00007f6a43278000) => /usr/lib/ (0x00007f6a4347c000) => /usr/lib/ (0x00007f6a43072000) => /usr/lib/ (0x00007f6a4369b000) => (0x00007fff4fdfe000)