ben-strasser / fast-cpp-csv-parser

fast-cpp-csv-parser
BSD 3-Clause "New" or "Revised" License
2.09k stars 435 forks source link

Segmentation fault when running inside Boost Unit Test Framework #115

Open ianbtr opened 3 years ago

ianbtr commented 3 years ago

Stack trace from CLion:

image

And the unfortunate message:

image

From what I can tell, this happened when destroying LineReader::buffer, and the issue persists when I use #define CSV_IO_NO_THREAD. Shorter CSVs do not seem to cause this problem (the CSV that caused this issue was roughly 7k lines).

This does not happen when I run the same code outside of the Boost Unit Test Framework, so this could very well be an issue on their end.

Please let me know if there is any other data I can provide to help fix this.

ben-strasser commented 3 years ago

thank you for the bug report. Could you provide a minimum code example that illustrates the issue? Debugging this will not be possible without being able to reproduce the issue...

ianbtr commented 3 years ago

I actually can't reproduce it myself now that I've fixed another memory issue in the code. (I suggest closing this)