[ 
https://issues.apache.org/jira/browse/TS-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903844#action_12903844
 ] 

Igor Galić commented on TS-427:
-------------------------------

Regression tests:

r...@phoenix:~# time /opt/ats-vanilla-gcc/bin/traffic_server -R 1 2>&1| grep -w 
FAIL
[SDK_API_INKfopen] mkstemp : [std func] <<FAIL>> { can't create file for 
writing }
[SDK_API_INKPluginDirGet] INKPluginDirGet : [TestCase2] <<FAIL>> { plugin 
dir(/opt/ats-vanilla-gcc/libexec) is incorrect, expected 
(libexec/trafficserver) in path }
[SDK_API_INKCache] INKCacheRemove : [TestCase1] <<FAIL>> { can't remove cached 
item }
[SDK_API_INKHttpConnectServerIntercept] INKHttpConnect : [TestCase2] <<FAIL>> { 
Unexpected response }
[SDK_API_INKHttpConnectServerIntercept] INKHttpTxnServerIntercept : [TestCase2] 
<<FAIL>> { Unexpected response }
[SDK_API_INKHttpConnectIntercept] INKHttpConnect : [TestCase1] <<FAIL>> { 
Unexpected response }
[SDK_API_INKHttpConnectIntercept] INKHttpTxnIntercept : [TestCase1] <<FAIL>> { 
Unexpected response }
[SDK_API_HttpAltInfo] INKHttpAltInfo : [All] <<FAIL>> { Test not executed even 
once }
[SDK_API_HttpTxnTransform] INKHttpTxnUntransformedResponseCache : [TestCase1] 
<<FAIL>> { Value's Mismatch }
[SDK_API_HttpTxnTransform] INKHttpTxnTransformedResponseCache : [TestCase1] 
<<FAIL>> { Value's Mismatch }
[SDK_API_HttpTxnTransform] INKTransformCreate : [TestCase1] <<FAIL>> { did not 
pass transformed_resp_cache }
[SDK_API_HttpTxnTransform] INKTransformCreate : [TestCase1] <<FAIL>> { did not 
pass untransformed_resp_cache }
[SDK_API_HttpTxnTransform] INKTransformCreate : [TestCase1] <<FAIL>> { did not 
pass transform_create }
[SDK_API_HttpHookAdd] INKHttpHookAdd : [TestCase1] <<FAIL>> { Hooks not called 
or request failure. Hook mask = 1 }
[SDK_API_HttpHookAdd] INKHttpTxnReenable : [TestCase1] <<FAIL>> { Txn not 
reenabled properly }

real    1m52.899s
user    0m16.830s
sys     0m1.290s
r...@phoenix:~# 


r...@phoenix:~# time /opt/ats-clangpatch-gcc/bin/traffic_server -R 1  2>&1| 
grep -w FAIL
[SDK_API_INKfopen] mkstemp : [std func] <<FAIL>> { can't create file for 
writing }
[SDK_API_INKPluginDirGet] INKPluginDirGet : [TestCase2] <<FAIL>> { plugin 
dir(/opt/ats-clangpatch-gcc/libexec) is incorrect, expected 
(libexec/trafficserver) in path }
[SDK_API_INKHttpConnectServerIntercept] INKHttpConnect : [TestCase2] <<FAIL>> { 
Unexpected response }
[SDK_API_INKHttpConnectServerIntercept] INKHttpTxnServerIntercept : [TestCase2] 
<<FAIL>> { Unexpected response }
[SDK_API_INKHttpConnectIntercept] INKHttpConnect : [TestCase1] <<FAIL>> { 
Unexpected response }
[SDK_API_INKHttpConnectIntercept] INKHttpTxnIntercept : [TestCase1] <<FAIL>> { 
Unexpected response }
[SDK_API_HttpAltInfo] INKHttpAltInfo : [All] <<FAIL>> { Test not executed even 
once }
[SDK_API_HttpTxnTransform] INKHttpTxnUntransformedResponseCache : [TestCase1] 
<<FAIL>> { Value's Mismatch }
[SDK_API_HttpTxnTransform] INKHttpTxnTransformedResponseCache : [TestCase1] 
<<FAIL>> { Value's Mismatch }
[SDK_API_HttpTxnTransform] INKTransformCreate : [TestCase1] <<FAIL>> { did not 
pass transformed_resp_cache }
[SDK_API_HttpTxnTransform] INKTransformCreate : [TestCase1] <<FAIL>> { did not 
pass transform_create }
[SDK_API_HttpHookAdd] INKHttpHookAdd : [TestCase1] <<FAIL>> { Hooks not called 
or request failure. Hook mask = 1 }
[SDK_API_HttpHookAdd] INKHttpTxnReenable : [TestCase1] <<FAIL>> { Txn not 
reenabled properly }

real    1m46.821s
user    0m10.670s
sys     0m0.500s
r...@phoenix:~# 


Now, for whatsoever reason, we run into some kind of condition in the 
``Regression test(SDK_API_INKCache'', hence the Ctrl+C -- this is clang 
specific, just like the above abort() -- it doesn't happen with gcc, no matter 
the patching or the --enable-debug.

r...@phoenix:~# time /opt/trafficserver/bin/traffic_server -R 1 2>&1| grep -w 
FAIL
[SDK_API_INKfopen] mkstemp : [std func] <<FAIL>> { can't create file for 
writing }
[SDK_API_INKPluginDirGet] INKPluginDirGet : [TestCase2] <<FAIL>> { plugin 
dir(/opt/trafficserver/libexec) is incorrect, expected (libexec/trafficserver) 
in path }
[SDK_API_INKHttpConnectServerIntercept] INKHttpConnect : [TestCase2] <<FAIL>> { 
Unexpected response }
[SDK_API_INKHttpConnectServerIntercept] INKHttpTxnServerIntercept : [TestCase2] 
<<FAIL>> { Unexpected response }
[SDK_API_INKHttpConnectIntercept] INKHttpConnect : [TestCase1] <<FAIL>> { 
Unexpected response }
[SDK_API_INKHttpConnectIntercept] INKHttpTxnIntercept : [TestCase1] <<FAIL>> { 
Unexpected response }
[SDK_API_HttpAltInfo] INKHttpAltInfo : [All] <<FAIL>> { Test not executed even 
once }
[SDK_API_HttpTxnTransform] INKHttpTxnUntransformedResponseCache : [TestCase1] 
<<FAIL>> { Value's Mismatch }
[SDK_API_HttpTxnTransform] INKHttpTxnTransformedResponseCache : [TestCase1] 
<<FAIL>> { Value's Mismatch }
[SDK_API_HttpTxnTransform] INKTransformCreate : [TestCase1] <<FAIL>> { did not 
pass transformed_resp_cache }
[SDK_API_HttpTxnTransform] INKTransformCreate : [TestCase1] <<FAIL>> { did not 
pass transform_create }
[SDK_API_HttpHookAdd] INKHttpHookAdd : [TestCase1] <<FAIL>> { Hooks not called 
or request failure. Hook mask = 1 }
[SDK_API_HttpHookAdd] INKHttpTxnReenable : [TestCase1] <<FAIL>> { Txn not 
reenabled properly }
^C

real    4m44.578s
user    0m10.780s
sys     0m0.700s
r...@phoenix:~# 


The different run times of the first two are caused by the fact that one of 
them is compiled with --enable-debug:
-rwxr-xr-x 1 root root 108M 2010-08-28 16:12 
/opt/ats-vanilla-gcc/bin/traffic_server
-rwxr-xr-x 1 root root  26M 2010-08-28 16:14 
/opt/ats-clangpatch-gcc/bin/traffic_server



> Build ATS with clang
> --------------------
>
>                 Key: TS-427
>                 URL: https://issues.apache.org/jira/browse/TS-427
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: 2.1.3
>         Environment: OS: Any; Clang --version:
> clang version 1.1 (branches/release_27)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
>            Reporter: Igor Galić
>         Attachments: ats.clang.compile.patch, ats.clang.patch, ats.clang.patch
>
>
> I've started compiling, and cleaning up traffic-server from trunk with clang, 
> with this config:
> i.ga...@phoenix ~/Projects/asf/trafficserver (svn)-[trunk:989985] % cat 
> config.notnice
> #! /bin/sh
> #
> # Created by configure
> CC="clang"; export CC
> CXX="clang"; export CXX
> CFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CFLAGS
> CXXFLAGS="-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2"; export CXXFLAGS
> LDFLAGS="-Wl,--as-needed -Wl,--warn-common"; export LDFLAGS
> "./configure" \
> "--enable-layout=opt" \
> "--with-user=proxy" \
> "--with-group=proxy" \
> "CC=clang" \
> "CFLAGS=-fPIC -march=core2 -msse4.1 -D_FORTIFY_SOURCE=2" \
> "LDFLAGS=-Wl,--as-needed" \
> "CXX=clang" \
> "$@"
> i.ga...@phoenix ~/Projects/asf/trafficserver (svn)-[trunk:989985] %
> Until I hit errors that seemed to include templates.
> I'm uploading the current patch for you to sanity-check and review. If it 
> makes sense, I suppose it does a bit of a clean-up.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to