Resolution: Not A Problem
Affects Version/s: None
Fix Version/s: None
Component/s: CPP API
I'm getting segmentation faults with ATS 5.3.1, possibly when I enabled plugins in atscppapi, in which are used other Plugins than GlobalPlugin (TransformationPlugin, InterceptionPlugin,...)
i'm building traffic server only with parameters:
./configure --prefix=/install --exec-prefix=/exec --with-user=trafficserver --enable-cppapi
I'm getting segfault:
I tried to find an Issue and found possible leak in dectructor ~Transaction() of Transaction.cc file.
The leak is, there is added plugin by addPlugin(TransactionPlugin *);
and according to documentation https://docs.trafficserver.apache.org/en/latest/api/classatscppapi_1_1Transaction.html#a9835e610553275d197cabfbd6d1cab7b, Transaction should be responsible for cleaning.
But nothing removes items of list state_.plugins_, where should be pointers to memory allocated with new, which won't be deleted by delete state_;
I tried to correct it with
But it didn't work. I'm getting similar segfault with another
I tried to find more deep and find the plugins should be freed by delete in another class in file utils_internal.cc.
But if this is true, I should see in debug mode message, which is printed before delete:
But I don't see such messages in log.
I can see in error.log lot of these messages. I'm getting them at least every second.
Can you help me find the issue? Thanks for help in advance.