When I run a module written in C, core dumps at Python exit.

Edward C. Jones edcjones at erols.com
Wed Jun 2 17:20:29 CEST 1999


scott cotton wrote:

> On Tue, Jun 01, 1999 at 09:20:16PM -0400, Tim Peters wrote:
> | [Edward C. Jones]
> | > I wrote an extension module written in C. It seems to work OK.
> | > But core dumps when exiting Python. When I run the code from the
> | > interpreter, Python works fine until I try to exit with ^D. Then
> | > there is a core dump. What are the most common causes of such
> | > problems?
> |
> | Buggy extension modules written in C.
> |
> | suspecting-that's-obvious-ly y'rs  - tim
>
> More specifically <0.314 ;>, since python core dumps on exit,
> it is most likely a deallocation function that is freeing
> memory that it shouldn't.  Of course, that may be caused by
> almost anything in the extension module.
>
> scott

It turned out that the program was writing over the end of an array.
This usually dumps core well before Python exits but this time took
longer.

Thanks,
  Ed Jones






More information about the Python-list mailing list