MengRao/fmtlog

double free or corruption (!prev) Aborted (core dumped)

odygrd opened this issue · 1 comments

Hello,

I would like to say thanks for the library, it is nice seeing someone else with interest in those things.
I am maintaining a repo of logger benchmarks. I have tried to add your logger there.

Your logger is performing very well, if you would like to see how it does compared to other loggers you can have a look at the results here

It runs fine when 1 thread is logging but at the end it terminates and a exception in thrown.

I was unable to benchmark 4 threads pushing logs at the same time as the logger crashed for the same reason

double free or corruption (!prev)
double free or corruption (out)

I am compiling on ubuntu with gcc 11.2 in release mode.

To reproduce you can try to run the benchmark here

sorry please ignore this, I was calling poll on 2 different threads by mistake, forgot to remove my previous line of code starting the pooling thread. Seems to be running okay now!