ecap sample adapter_modifying enable debug cause squid crash

Asked by qianguozheng

I want to do http response modifications, so with http encoded response I need to decompress the response, but some error happend, so I need to debug where is wrong. I just open Debug in adapter_modifying but when I restart squid it just failed, the error looks like below.

2016/03/30 11:45:01 kid1| Loading Squid module from '/usr/local/lib/'
2016/03/30 11:45:01 kid1| FATAL: dying from an unhandled exception: file not found

I search the error like below, find that below question like mine, but its solution not fix my problem.

Question information

English Edit question
eCAP Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
qianguozheng (guozhengqian0825) said :

By the way, without Debug(), it can work just fine.

Revision history for this message
Alex Rousskov (rousskov) said :

I am guessing that you forgot to include when building your adapter library. If you look at src/ in the adapter sample, you may notice that the async adapter (the only sample adapter that uses the Debug class) is built using both and

Revision history for this message
qianguozheng (guozhengqian0825) said :

Thanks Alex, that solved my question, I will add more debug message to see the adapter work flow.