Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in `python': free(): invalid pointer: 0x00007fc3c90dc98e

Got this error on an ubuntu server (100GB RAM) in anacondas py3.6 installation after it opened multiple files this way in a for loop (7 files * 4GB):

temp_df = pd.read_csv(datafolder + str(file), encoding="ISO-8859-1", delimiter=';',low_memory=False)

this is the error, it appeared after i set

low_memory=False

Doesnt happen when low_memory = True

* Error in `python': free(): invalid pointer: 0x00007fc3c90dc98e *

Anyone ideas? Thanks

like image 553
Mario L Avatar asked Oct 06 '17 14:10

Mario L


1 Answers

This issue is caused due to multiple threads performed parallelly when opening a file , this causes sometimes segmentation fault as well. As you said your file consist of 4 gb each so multiple threads which are executed parallelly to read up your file is causing the issue.

ScreenSHot

Invalid Pointer

like image 153
Shivam Pandey Avatar answered Sep 28 '22 12:09

Shivam Pandey