You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Brian Geffon (JIRA)" <ji...@apache.org> on 2016/04/20 09:28:25 UTC
[jira] [Commented] (TS-4365) clang-analyzer: benign "leaks" in CPP
API plugin examples
[ https://issues.apache.org/jira/browse/TS-4365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15249414#comment-15249414 ]
Brian Geffon commented on TS-4365:
----------------------------------
[~zwoop] not sure what i'm doing wrong but on the jenkins master i'm attempting to repro:
{code}
[root@jenkins trafficserver]# scan-build -enable-checker alpha.unix.cstring.BufferOverlap -enable-checker alpha.unix.PthreadLock -enable-checker alpha.core.BoolAssignment -enable-checker alpha.core.CastSize -enable-checker alpha.core.SizeofPtr --status-bugs --keep-empty -o /tmp/clang-analyzer '--html-title=ATS master branch' make -j -C lib/atscppapi/examples/
scan-build: Using '/usr/bin/clang' for static analysis
make: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples'
Making all in helloworld
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/helloworld'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/helloworld'
Making all in globalhook
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/globalhook'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/globalhook'
Making all in transactionhook
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/transactionhook'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/transactionhook'
Making all in multiple_transaction_hooks
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/multiple_transaction_hooks'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/multiple_transaction_hooks'
Making all in clientrequest
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/clientrequest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/clientrequest'
Making all in serverresponse
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/serverresponse'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/serverresponse'
Making all in clientredirect
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/clientredirect'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/clientredirect'
Making all in customresponse
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/customresponse'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/customresponse'
Making all in null_transformation_plugin
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/null_transformation_plugin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/null_transformation_plugin'
Making all in post_buffer
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/post_buffer'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/post_buffer'
Making all in logger_example
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/logger_example'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/logger_example'
Making all in boom
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/boom'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/boom'
Making all in stat_example
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/stat_example'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/stat_example'
Making all in remap_plugin
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/remap_plugin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/remap_plugin'
Making all in custom_error_remap_plugin
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/custom_error_remap_plugin'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/custom_error_remap_plugin'
Making all in async_http_fetch
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/async_http_fetch'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/async_http_fetch'
Making all in gzip_transformation
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/gzip_transformation'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/gzip_transformation'
Making all in timeout_example
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/timeout_example'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/timeout_example'
Making all in internal_transaction_handling
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/internal_transaction_handling'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/internal_transaction_handling'
Making all in async_timer
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/async_timer'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/async_timer'
Making all in intercept
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/intercept'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/intercept'
Making all in async_http_fetch_streaming
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples/async_http_fetch_streaming'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples/async_http_fetch_streaming'
make[1]: Entering directory `/tmp/briang/trafficserver/lib/atscppapi/examples'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples'
make: Leaving directory `/tmp/briang/trafficserver/lib/atscppapi/examples'
scan-build: No bugs found.
{code}
> clang-analyzer: benign "leaks" in CPP API plugin examples
> ---------------------------------------------------------
>
> Key: TS-4365
> URL: https://issues.apache.org/jira/browse/TS-4365
> Project: Traffic Server
> Issue Type: Bug
> Components: CPP API
> Reporter: Leif Hedstrom
> Assignee: Brian Geffon
> Fix For: 7.0.0
>
>
> {code}
> Memory Error Memory leak lib/atscppapi/examples/helloworld/HelloWorldPlugin.cc TSPluginInit 34 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/globalhook/GlobalHookPlugin.cc TSPluginInit 45 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/transactionhook/TransactionHookPlugin.cc TSPluginInit 69 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/multiple_transaction_hooks/MultipleTransactionHookPlugins.cc TSPluginInit 106 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/clientrequest/ClientRequest.cc TSPluginInit 138 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/serverresponse/ServerResponse.cc TSPluginInit 119 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/clientredirect/ClientRedirect.cc TSPluginInit 79 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/customresponse/CustomResponse.cc TSPluginInit 87 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/null_transformation_plugin/NullTransformationPlugin.cc TSPluginInit 104 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/post_buffer/PostBuffer.cc TSPluginInit 82 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/logger_example/LoggerExample.cc TSPluginInit 138 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/stat_example/StatExample.cc TSPluginInit 77 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/remap_plugin/RemapPlugin.cc TSRemapNewInstance 90 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/custom_error_remap_plugin/CustomErrorRemapPlugin.cc TSRemapNewInstance 55 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc handleSendRequestHeaders 100 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc TSPluginInit 219 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/gzip_transformation/GzipTransformationPlugin.cc TSPluginInit 197 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/timeout_example/TimeoutExamplePlugin.cc TSPluginInit 62 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/internal_transaction_handling/InternalTransactionHandling.cc TSPluginInit 76 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/internal_transaction_handling/InternalTransactionHandling.cc TSPluginInit 77 2 View Report
> Memory Error Memory leak lib/atscppapi/examples/intercept/intercept.cc TSPluginInit 60 2 View Report
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)