[New-bugs-announce] [issue35594] Python script generating Segmentation Fault

Daugeras report at bugs.python.org
Thu Dec 27 10:28:33 EST 2018


New submission from Daugeras <emmanuel.daugeras at nextelyo.com>:

Python script generates segmentation fault I cannot find the source of the problem. How is it to debug a segfault simply in Python ? Are there recommended coding practices to avoid Segmentation Faults ?

I wrote a script (1600 lines) to systematically download CSV files from a source and format the collected data. The script works very well for 100-200 files, but it systematically crashes with a segmentation fault message after a while.
-Crash always happens at the same spot in the script, with no understandable cause -I run it on Mac OSX but the crash also happens on Ubuntu Linux and Debian 9 -If I run the Pandas Routines that crash during my script on single files, they work properly. The crash only happens when I loop the script 100-200 times. -I checked every variable content, constructors (init) and they seem to be fine.

Code is too long to be pasted, but available on demand

Expected result should be execution to the end. Instead, it crashes after 100-200 iterations

----------
messages: 332592
nosy: Daugeras
priority: normal
severity: normal
status: open
title: Python script generating Segmentation Fault
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35594>
_______________________________________


More information about the New-bugs-announce mailing list