Segfault happens here:
|
pruned_requests->push_back(it->first); |
, if prune_requests_older_than() is called with default argument, while there's matching request to prune:
client->prune_requests_older_than(someTimeAgo /*, nullptr by default */);
The documentation says
[inout] pruned_requests Removed requests id will be pushed to the vector if a pointer is provided.
So I assume no pointer is a valid input.