Now I have a flask application deployed using gunicorn, and I've noticed that my application is generating a coredump after running for a while. when I look at it with gdb it looks like it's because of a multi-threaded run of matplotlib to draw the image. To add to this, I use a thread lock when calling matplotlib related logic. Continue reading...