This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Daugeras
Recipients Daugeras
Date 2018-12-27.15:28:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545924513.31.0.604345478264.issue35594@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2018-12-27 15:28:35Daugerassetrecipients: + Daugeras
2018-12-27 15:28:33Daugerassetmessageid: <1545924513.31.0.604345478264.issue35594@roundup.psfhosted.org>
2018-12-27 15:28:33Daugeraslinkissue35594 messages
2018-12-27 15:28:33Daugerascreate