user1480788

0

votes
0

answer
25

views

How to dump objects of a running Python program?

I have a Python program which basically keeps list of Counter objects and then writes them to disk. After four days counting has finished but the system is almost out of 63GB memory and it has already swapped out 50GB and no progress. Here is a simplified version of my code. import os import time fr...
user1480788
1

votes
2

answer
813

views

C++ std::vector<std::string> iterator segfaults

I encountered this segfault while iterating through a vector of filenames. The std::vector is populated by another function reading csv in a pretty messy code. So I narrowed it down to the below code causing the problem. The iterator for vector segfaults after yielding first (sometimes later) item...
user1480788