You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When i binarize wiki-news-300d-1M.vec file, program output
*** Error in `./binarize': free(): invalid pointer: 0x00007f64c490e010 ***
From the backtrace, i know there is something wrong free memory, but i don't find the exact position.
I am surprised at program works normally when i compress GloVe.6B.300d.txt file.
The text was updated successfully, but these errors were encountered:
The problem comes from the file wiki-news-300d-1M.vec. After reading the last line, the EOF flag was not set automatically so my program was still reading some float values, and writing them outside the array containing all the values, overwriting what was in memory with the value 0. So when I called free() to free the memory of what was placed after the array of values, it was trying to dereference a NULL pointer, causing the program to crash.
I have fixed the problem. You can now train on wiki-news-300d-1M.vec. Here are the results I get.
Hi,
When i binarize wiki-news-300d-1M.vec file, program output
*** Error in `./binarize': free(): invalid pointer: 0x00007f64c490e010 ***
From the backtrace, i know there is something wrong free memory, but i don't find the exact position.
I am surprised at program works normally when i compress GloVe.6B.300d.txt file.
The text was updated successfully, but these errors were encountered: