dasebe / webcachesim

A C++11 simulator for a variety of CDN caching policies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tracegenerator has segment fault when the number of unique object too large

sunnyszy opened this issue · comments

I got segment fault when using following cmd (seems not so big):
./basic_trace 3000000 50000 1.8 1 5000000000 test.tr
If I reduce the unique object size by a factor of 10, the program will be fine:
./basic_trace 300000 50000 1.8 1 5000000000 test.tr

change line 37 will be fine
auto * size = new long[no_objs];

You can directly fix that~ Not a big change.

fixed by commit 1cf0e00