RLC schrieb:
Hello

I am new to python SWIG. Recently I wrote a small program trying to
import collada files(using colladadom) into python so I could use
python cgkit to render them. However, during the progressing, I got
some problems. Every time I quit from Python, I get a segmentation
fault, although the main program runs well. I suspect it is because I
wrapped std::vector objects in C struct and I did not release the
memory properly. Below is the code. I am working on FreeBSD 7.0, GCC
4.2.1. I will be very appreciated if you could help me. Thanks a lot.

the error I have got
Segmentation fault: 11 (core dumped)

Try starting the program in gdb. This works using


$ gdb python
(gdb) set args myscript.py
(gdb) run

Then when the segfault hits, get a backtrace to see where the actual problem occurs.

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to