abierbaum
July 10th, 2007, 04:10 PM
I recently switched over to Ubuntu from Fedora and everything has been going very well except for a few small development related issues where I haven't quite found the Ubuntu way yet. The current issue that is causing me problems is that I can't seem to get a core dump from a python extension model that I am currently debugging.
When I run python, it loads the extension module successfully, and then somewhere internal to the code there is a seg fault. I am 99% sure the seg fault is caused by some of my code in the extension module so now I would like to debug the problem. The application exits with "Segmentation fault (core dumped)". My core size limit is set to "unlimited" so I would expect a "core" file in the local directory where I executed the command. Unfortunately no core file is showing up.
To verify that I can create core files, I created a simple C++ application that seg faults and that works as expected. It seems that there is something about python that is keeping this from working. I know it works with Fedora because I have used core dumps to debug this module many times in the past.
Is there something I am missing about how either python or Ubuntu is working that may be preventing the system from writing the core file?
Additional details:
- python 2.5.1 (r251:54863)
- Ubuntu 7.04
- kernel 2.6.20-16-generic SMP
- shell: tcsh
- limits: all limits set to unlimited
- g++ 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Thanks,
Allen
When I run python, it loads the extension module successfully, and then somewhere internal to the code there is a seg fault. I am 99% sure the seg fault is caused by some of my code in the extension module so now I would like to debug the problem. The application exits with "Segmentation fault (core dumped)". My core size limit is set to "unlimited" so I would expect a "core" file in the local directory where I executed the command. Unfortunately no core file is showing up.
To verify that I can create core files, I created a simple C++ application that seg faults and that works as expected. It seems that there is something about python that is keeping this from working. I know it works with Fedora because I have used core dumps to debug this module many times in the past.
Is there something I am missing about how either python or Ubuntu is working that may be preventing the system from writing the core file?
Additional details:
- python 2.5.1 (r251:54863)
- Ubuntu 7.04
- kernel 2.6.20-16-generic SMP
- shell: tcsh
- limits: all limits set to unlimited
- g++ 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Thanks,
Allen