Re: Build failed in Jenkins: tsqa-master #917

2015-10-06 Thread Susan Hinrichs

Hi Thomas and others,

I could use some guidance on fixing these problems.  I caught up on 
committing some stability fixes I've been making over the past month.  
And it looks like my changes broke two TSQA tests.


I tried running both tests on my FC21 VM, but they both succeed.  Do I 
need a specific OS?  Can I access the logs from the jenkins machine?


Thanks,
Susan

On 10/6/2015 2:49 PM, jenk...@ci.trafficserver.apache.org wrote:

See 

Changes:

[shinrich] TS-3701 - Crash in trampoline cleanup

--
[...truncated 492 lines...]
Verify that we get 504s from origins that return a partial_response ... ok
Verify that we get 502s from origins that reset_after_accept, once any bytes 
are sent to origin we assume we cannot re-dispatch ... ok
INFO 2015-10-06 19:40:25,549 - Environment prefix is /tmp/tsqa.env.Xy3nQJ
test_log_field (test_custom_log.TestCustomLogField) ... ok
INFO 2015-10-06 19:42:09,106 - Environment prefix is /tmp/tsqa.env.x8X_nR
test_default_404 (test_example.TestBootstrap) ... ok
Test that traffic_line works, and verify that the values for proxy.config ... ok
INFO 2015-10-06 19:42:39,572 - Starting build 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 19:43:31,143 - Build completed 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 19:43:31,211 - Environment prefix is /tmp/tsqa.env.HgtNma
test_spdy (test_example.TestConfigureFlags) ... ok
INFO 2015-10-06 19:43:34,622 - Environment prefix is /tmp/tsqa.env.hSBhiM
test_basic_proxy (test_example.TestDynamicHTTPEndpointCase) ... 127.0.0.1 - - 
[06/Oct/2015 19:43:37] "GET /test HTTP/1.1" 404 0
ok
INFO 2015-10-06 19:43:38,151 - Environment prefix is /tmp/tsqa.env.lO59dR
test_logs_exist (test_example.TestLogs) ... ok
SKIP: Skip the entire class
INFO 2015-10-06 19:43:51,744 - Environment prefix is /tmp/tsqa.env.5ybhyW
test_basic_intercept (test_example.TestServerIntercept) ... 127.0.0.1 - - [06/Oct/2015 
19:43:54] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:54] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
ok
INFO 2015-10-06 19:43:55,218 - Environment prefix is /tmp/tsqa.env.Icf9I1
INFO 2015-10-06 19:43:55,220 - map / http://127.0.0.1:39454/
test_head_request_without_timout 
(test_headrequest.TestHeadRequestWithoutTimeout) ... INFO 2015-10-06 
19:43:58,459 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:58 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:58,460 - head request with case(TE) costs 0.012634 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:43:58,461 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Content-Length: 123
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:58 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:58,461 - head request with case(CL) costs 0.001248 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:43:58,462 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:58 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:58,462 - head request with case() costs 0.000903 seconds 
while the timout is 5.00 seconds.
ok
INFO 2015-10-06 19:43:58,650 - Environment prefix is /tmp/tsqa.env.khUBnS
test_working (test_hostdb.TestHostDBBadResolvConf) ... ok
INFO 2015-10-06 19:44:02,214 - Environment prefix is /tmp/tsqa.env.5Drpn3
test_lookup_timeout (test_hostdb.TestHostDBFailedDNS) ... ok
INFO 2015-10-06 19:44:07,672 - Environment prefix is /tmp/tsqa.env.ZC6sC2
Test basic fnctionality of hosts files ... ok
Test that changes to hosts file get loaded within host_file.interval ... ok
INFO 2015-10-06 19:44:17,153 - Environment prefix is /tmp/tsqa.env.xxtBlv
SKIP:
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.xxtBlv
- >> end captured logging << -
Failure: SkipTest (Cannot import hyper, skipping tests for HTTP/2) ... SKIP: 
Cannot import hyper, skipping tests for HTTP/2
INFO 2015-10-06 19:44:17,244 - Environment prefix is /tmp/tsqa.env.585v8A
SKIP: Cannot find h2spec. skipping test.
--

[jira] [Commented] (TS-3958) HTTP/2 coredump with NULL FetchSM

2015-10-06 Thread Masaori Koshiba (JIRA)

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

Masaori Koshiba commented on TS-3958:
-

{quote}
It looks like the headers have been fully read from the client and it should 
have allocated a fetch_sm after calling Http2Stream::init_fetcher(). On the 
close side of things when it sets fetch_sm to NULL it should remove it from the 
list and delete the Http2Stream object.
{quote}
This is same to my understanding. I have no idea. I'll try to reproduce this 
situation.

> HTTP/2 coredump with NULL FetchSM
> -
>
> Key: TS-3958
> URL: https://issues.apache.org/jira/browse/TS-3958
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP/2
>Reporter: Bryan Call
>Assignee: Bryan Call
> Fix For: 6.0.1
>
>
> {code}
> (gdb) bt
> #0  0x005107b0 in FetchSM::ext_get_user_data (this=0x0) at 
> FetchSM.cc:689
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> #3  0x0064437a in rcv_window_update_frame (cs=..., cstate=..., 
> frame=...) at Http2ConnectionState.cc:539
> #4  0x00644de5 in Http2ConnectionState::main_event_handler 
> (this=0x2b940b27ac30, event=2253, edata=0x2b931ca087e0) at 
> Http2ConnectionState.cc:733
> #5  0x00510f78 in Continuation::handleEvent (this=0x2b940b27ac30, 
> event=2253, data=0x2b931ca087e0) at ../iocore/eventsystem/I_Continuation.h:150
> #6  0x0063f655 in send_connection_event (cont=0x2b940b27ac30, 
> event=2253, edata=0x2b931ca087e0) at Http2ClientSession.cc:59
> #7  0x006415e7 in Http2ClientSession::state_complete_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:398
> #8  0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #9  0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #10 0x0064132f in Http2ClientSession::state_start_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:371
> #11 0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #12 0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #13 0x00779f9e in read_signal_and_update (event=100, 
> vc=0x2b949c39b320) at UnixNetVConnection.cc:148
> #14 0x0077ce08 in UnixNetVConnection::readSignalAndUpdate 
> (this=0x2b949c39b320, event=100) at UnixNetVConnection.cc:1020
> #15 0x00761b45 in SSLNetVConnection::net_read_io 
> (this=0x2b949c39b320, nh=0x2b93165858f0, lthread=0x2b9316582010) at 
> SSLNetVConnection.cc:587
> #16 0x00773a72 in NetHandler::mainNetEvent (this=0x2b93165858f0, 
> event=5, e=0x3053270) at UnixNet.cc:547
> #17 0x00510f78 in Continuation::handleEvent (this=0x2b93165858f0, 
> event=5, data=0x3053270) at ../iocore/eventsystem/I_Continuation.h:150
> #18 0x0079ae6a in EThread::process_event (this=0x2b9316582010, 
> e=0x3053270, calling_code=5) at UnixEThread.cc:128
> #19 0x0079b374 in EThread::execute (this=0x2b9316582010) at 
> UnixEThread.cc:252
> #20 0x0079a415 in spawn_thread_internal (a=0x2f209e0) at Thread.cc:85
> #21 0x2b9313db39d1 in start_thread () from /lib64/libpthread.so.0
> #22 0x0034884e88fd in clone () from /lib64/libc.so.6
> (gdb) frame 1
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> 891   in Http2ConnectionState.cc
> (gdb) p fetch_sm
> $24 = (FetchSM *) 0x0
> (gdb) frame 2
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> 845   in Http2ConnectionState.cc
> (gdb) p *this
> $21 = { = { = {_vptr.force_VFPT_to_top = 
> 0x7ddbf0}, handler = (int (Continuation::*)(Continuation *, int,
> void *)) 0x644ac6 , 
> mutex = {m_ptr = 0x2b94042f0d50}, link = {> = {next = 
> 0x0},
>   prev = 0x0}, debug_override = false}, ua_session = 0x2b940b27a9d0, 
> local_dynamic_table = 0x2b940f50cda0, remote_dynamic_table = 0x2b940c780fc0,
>   server_settings = {settings = {4096, 0, 100, 1048576, 16384, 4294967295}}, 
> client_settings = {settings = {4096, 0, 100, 65535, 16384, 4294967295}},
>   client_rwnd = 11398558, server_rwnd = 1048576, stream_list = {hea

[jira] [Updated] (TS-3959) Dropped keep-alive connections not being re-established

2015-10-06 Thread Nick Muerdter (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nick Muerdter updated TS-3959:
--
Affects Version/s: 6.0.0

> Dropped keep-alive connections not being re-established
> ---
>
> Key: TS-3959
> URL: https://issues.apache.org/jira/browse/TS-3959
> Project: Traffic Server
>  Issue Type: Bug
>Affects Versions: 6.0.0
>Reporter: Nick Muerdter
>
> I've observed some differences in how TrafficServer 6.0.0 behaves with 
> connection retrying and outgoing keep-alive connections. I believe the 
> changes in behavior might be related to this issue: 
> https://issues.apache.org/jira/browse/TS-3440
> I originally wasn't sure if this was a bug, but James Peach indicated it 
> sounded more like a regression on the mailing list 
> (http://mail-archives.apache.org/mod_mbox/trafficserver-users/201510.mbox/%3cba85d5a2-8b29-44a9-acdc-e7fa8d21f...@apache.org%3e).
> What I'm seeing in 6.0.0 is that if TrafficServer has some backend keep-alive 
> connections already opened, but then one of the keep-alive connections is 
> closed, the next request to TrafficServer may generate a 502 Server Hangup 
> response when attempting to reuse that connection. Previously, I think 
> TrafficServer was retrying when it encountered a closed keep-alive 
> connection, but that is no longer the case. So if you have a backend that 
> might unexpectedly close its open keep-alive connections, the only way I've 
> found to completely prevent these 502 errors in 6.0.0 is to disable outgoing 
> keepalive (proxy.config.http.keep_alive_enabled_out and 
> proxy.config.http.keep_alive_post_out settings).
> For a slightly more concrete example of what can trigger this, this is fairly 
> easy to reproduce with the following setup:
> - TrafficServer is proxying to nginx with outgoing keep-alive connections 
> enabled (the default).
> - Throw a constant stream of requests at TrafficServer.
> - While that constant stream of requests is happening, also send a regular 
> stream of SIGHUP commands to nginx to reload nginx.
> - Eventually you'll get some 502 Server Hangup responses from TrafficServer 
> among your stream of requests.
> SIGHUPs in nginx should result in zero downtime for new requests, but I think 
> what's happening is that TrafficServer may fail when an old keep-alived 
> connection is reused (it's not common, so it depends on the timing of things 
> and if the connection is from an old nginx worker that has since been shut 
> down). In TrafficServer 5.3.1 these connection failures were retried, but in 
> 6.0.0, no retries occur in this case.
> Here's some debug logs that show the difference in behavior between 6.0.0 and 
> 5.3.1. Note that differences seem to stem from how each version eventually 
> handles the "VC_EVENT_EOS" event following 
> "&HttpSM::state_send_server_request_header, VC_EVENT_WRITE_COMPLETE".
> 5.3.1: 
> https://gist.github.com/GUI/0c53a6c4fdc2782b14aa#file-trafficserver_5-3-1-log-L316
> 6.0.0: 
> https://gist.github.com/GUI/0c53a6c4fdc2782b14aa#file-trafficserver_6-0-0-log-L314
> Interestingly, if I'm understand the log files correctly, it looks like 
> TraffficServer is reporting an odd empty response from these connections 
> ("HTTP/0.9 0" in 5.3.1 and "HTTP/1.0 0" in 6.0.0). However, as far as I can 
> tell from TCP dumps on the system, nginx is not actually sending any form of 
> response.
> In these example cases the backend server isn't sending back any data (at 
> least as far as I can tell), so from what I understand (and the logic 
> outlined in https://issues.apache.org/jira/browse/TS-3440), it should be safe 
> to retry.
> Let me know if I can provide any other details. Or if exact scripts to 
> reproduce the issues against the example nginx backend I described above 
> would be useful, I could get that together.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (TS-3959) Dropped keep-alive connections not being re-established

2015-10-06 Thread Nick Muerdter (JIRA)
Nick Muerdter created TS-3959:
-

 Summary: Dropped keep-alive connections not being re-established
 Key: TS-3959
 URL: https://issues.apache.org/jira/browse/TS-3959
 Project: Traffic Server
  Issue Type: Bug
Reporter: Nick Muerdter


I've observed some differences in how TrafficServer 6.0.0 behaves with 
connection retrying and outgoing keep-alive connections. I believe the changes 
in behavior might be related to this issue: 
https://issues.apache.org/jira/browse/TS-3440

I originally wasn't sure if this was a bug, but James Peach indicated it 
sounded more like a regression on the mailing list 
(http://mail-archives.apache.org/mod_mbox/trafficserver-users/201510.mbox/%3cba85d5a2-8b29-44a9-acdc-e7fa8d21f...@apache.org%3e).

What I'm seeing in 6.0.0 is that if TrafficServer has some backend keep-alive 
connections already opened, but then one of the keep-alive connections is 
closed, the next request to TrafficServer may generate a 502 Server Hangup 
response when attempting to reuse that connection. Previously, I think 
TrafficServer was retrying when it encountered a closed keep-alive connection, 
but that is no longer the case. So if you have a backend that might 
unexpectedly close its open keep-alive connections, the only way I've found to 
completely prevent these 502 errors in 6.0.0 is to disable outgoing keepalive 
(proxy.config.http.keep_alive_enabled_out and 
proxy.config.http.keep_alive_post_out settings).

For a slightly more concrete example of what can trigger this, this is fairly 
easy to reproduce with the following setup:

- TrafficServer is proxying to nginx with outgoing keep-alive connections 
enabled (the default).
- Throw a constant stream of requests at TrafficServer.
- While that constant stream of requests is happening, also send a regular 
stream of SIGHUP commands to nginx to reload nginx.
- Eventually you'll get some 502 Server Hangup responses from TrafficServer 
among your stream of requests.

SIGHUPs in nginx should result in zero downtime for new requests, but I think 
what's happening is that TrafficServer may fail when an old keep-alived 
connection is reused (it's not common, so it depends on the timing of things 
and if the connection is from an old nginx worker that has since been shut 
down). In TrafficServer 5.3.1 these connection failures were retried, but in 
6.0.0, no retries occur in this case.

Here's some debug logs that show the difference in behavior between 6.0.0 and 
5.3.1. Note that differences seem to stem from how each version eventually 
handles the "VC_EVENT_EOS" event following 
"&HttpSM::state_send_server_request_header, VC_EVENT_WRITE_COMPLETE".

5.3.1: 
https://gist.github.com/GUI/0c53a6c4fdc2782b14aa#file-trafficserver_5-3-1-log-L316
6.0.0: 
https://gist.github.com/GUI/0c53a6c4fdc2782b14aa#file-trafficserver_6-0-0-log-L314

Interestingly, if I'm understand the log files correctly, it looks like 
TraffficServer is reporting an odd empty response from these connections 
("HTTP/0.9 0" in 5.3.1 and "HTTP/1.0 0" in 6.0.0). However, as far as I can 
tell from TCP dumps on the system, nginx is not actually sending any form of 
response.

In these example cases the backend server isn't sending back any data (at least 
as far as I can tell), so from what I understand (and the logic outlined in 
https://issues.apache.org/jira/browse/TS-3440), it should be safe to retry.

Let me know if I can provide any other details. Or if exact scripts to 
reproduce the issues against the example nginx backend I described above would 
be useful, I could get that together.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (TS-3958) HTTP/2 coredump with NULL FetchSM

2015-10-06 Thread Bryan Call (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call updated TS-3958:
---
Fix Version/s: 6.0.1

> HTTP/2 coredump with NULL FetchSM
> -
>
> Key: TS-3958
> URL: https://issues.apache.org/jira/browse/TS-3958
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP/2
>Reporter: Bryan Call
>Assignee: Bryan Call
> Fix For: 6.0.1
>
>
> {code}
> (gdb) bt
> #0  0x005107b0 in FetchSM::ext_get_user_data (this=0x0) at 
> FetchSM.cc:689
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> #3  0x0064437a in rcv_window_update_frame (cs=..., cstate=..., 
> frame=...) at Http2ConnectionState.cc:539
> #4  0x00644de5 in Http2ConnectionState::main_event_handler 
> (this=0x2b940b27ac30, event=2253, edata=0x2b931ca087e0) at 
> Http2ConnectionState.cc:733
> #5  0x00510f78 in Continuation::handleEvent (this=0x2b940b27ac30, 
> event=2253, data=0x2b931ca087e0) at ../iocore/eventsystem/I_Continuation.h:150
> #6  0x0063f655 in send_connection_event (cont=0x2b940b27ac30, 
> event=2253, edata=0x2b931ca087e0) at Http2ClientSession.cc:59
> #7  0x006415e7 in Http2ClientSession::state_complete_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:398
> #8  0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #9  0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #10 0x0064132f in Http2ClientSession::state_start_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:371
> #11 0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #12 0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #13 0x00779f9e in read_signal_and_update (event=100, 
> vc=0x2b949c39b320) at UnixNetVConnection.cc:148
> #14 0x0077ce08 in UnixNetVConnection::readSignalAndUpdate 
> (this=0x2b949c39b320, event=100) at UnixNetVConnection.cc:1020
> #15 0x00761b45 in SSLNetVConnection::net_read_io 
> (this=0x2b949c39b320, nh=0x2b93165858f0, lthread=0x2b9316582010) at 
> SSLNetVConnection.cc:587
> #16 0x00773a72 in NetHandler::mainNetEvent (this=0x2b93165858f0, 
> event=5, e=0x3053270) at UnixNet.cc:547
> #17 0x00510f78 in Continuation::handleEvent (this=0x2b93165858f0, 
> event=5, data=0x3053270) at ../iocore/eventsystem/I_Continuation.h:150
> #18 0x0079ae6a in EThread::process_event (this=0x2b9316582010, 
> e=0x3053270, calling_code=5) at UnixEThread.cc:128
> #19 0x0079b374 in EThread::execute (this=0x2b9316582010) at 
> UnixEThread.cc:252
> #20 0x0079a415 in spawn_thread_internal (a=0x2f209e0) at Thread.cc:85
> #21 0x2b9313db39d1 in start_thread () from /lib64/libpthread.so.0
> #22 0x0034884e88fd in clone () from /lib64/libc.so.6
> (gdb) frame 1
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> 891   in Http2ConnectionState.cc
> (gdb) p fetch_sm
> $24 = (FetchSM *) 0x0
> (gdb) frame 2
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> 845   in Http2ConnectionState.cc
> (gdb) p *this
> $21 = { = { = {_vptr.force_VFPT_to_top = 
> 0x7ddbf0}, handler = (int (Continuation::*)(Continuation *, int,
> void *)) 0x644ac6 , 
> mutex = {m_ptr = 0x2b94042f0d50}, link = {> = {next = 
> 0x0},
>   prev = 0x0}, debug_override = false}, ua_session = 0x2b940b27a9d0, 
> local_dynamic_table = 0x2b940f50cda0, remote_dynamic_table = 0x2b940c780fc0,
>   server_settings = {settings = {4096, 0, 100, 1048576, 16384, 4294967295}}, 
> client_settings = {settings = {4096, 0, 100, 65535, 16384, 4294967295}},
>   client_rwnd = 11398558, server_rwnd = 1048576, stream_list = {head = 
> 0x2b940f473fd0}, latest_streamid = 77, client_streams_count = 28, 
> continued_stream_id = 0,
>   continued_buffer = {iov_base = 0x0, iov_len = 0}}
> (gdb) p s
> $22 = (Http2Stream *) 0x2b940cd46a20
> (gdb) p *s
> $23 = {client_rwnd = 65535, server_rwnd = 1048576, link = 
> {> = {next = 0x2b940e1bb2c0}, prev = 0x2b940c0157b0},
>   header_blocks = "XXX", header_blocks_length = 96,
>   request_header_length = 96, en

[jira] [Assigned] (TS-3958) HTTP/2 coredump with NULL FetchSM

2015-10-06 Thread Bryan Call (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call reassigned TS-3958:
--

Assignee: Bryan Call

> HTTP/2 coredump with NULL FetchSM
> -
>
> Key: TS-3958
> URL: https://issues.apache.org/jira/browse/TS-3958
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP/2
>Reporter: Bryan Call
>Assignee: Bryan Call
> Fix For: 6.0.1
>
>
> {code}
> (gdb) bt
> #0  0x005107b0 in FetchSM::ext_get_user_data (this=0x0) at 
> FetchSM.cc:689
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> #3  0x0064437a in rcv_window_update_frame (cs=..., cstate=..., 
> frame=...) at Http2ConnectionState.cc:539
> #4  0x00644de5 in Http2ConnectionState::main_event_handler 
> (this=0x2b940b27ac30, event=2253, edata=0x2b931ca087e0) at 
> Http2ConnectionState.cc:733
> #5  0x00510f78 in Continuation::handleEvent (this=0x2b940b27ac30, 
> event=2253, data=0x2b931ca087e0) at ../iocore/eventsystem/I_Continuation.h:150
> #6  0x0063f655 in send_connection_event (cont=0x2b940b27ac30, 
> event=2253, edata=0x2b931ca087e0) at Http2ClientSession.cc:59
> #7  0x006415e7 in Http2ClientSession::state_complete_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:398
> #8  0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #9  0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #10 0x0064132f in Http2ClientSession::state_start_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:371
> #11 0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #12 0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #13 0x00779f9e in read_signal_and_update (event=100, 
> vc=0x2b949c39b320) at UnixNetVConnection.cc:148
> #14 0x0077ce08 in UnixNetVConnection::readSignalAndUpdate 
> (this=0x2b949c39b320, event=100) at UnixNetVConnection.cc:1020
> #15 0x00761b45 in SSLNetVConnection::net_read_io 
> (this=0x2b949c39b320, nh=0x2b93165858f0, lthread=0x2b9316582010) at 
> SSLNetVConnection.cc:587
> #16 0x00773a72 in NetHandler::mainNetEvent (this=0x2b93165858f0, 
> event=5, e=0x3053270) at UnixNet.cc:547
> #17 0x00510f78 in Continuation::handleEvent (this=0x2b93165858f0, 
> event=5, data=0x3053270) at ../iocore/eventsystem/I_Continuation.h:150
> #18 0x0079ae6a in EThread::process_event (this=0x2b9316582010, 
> e=0x3053270, calling_code=5) at UnixEThread.cc:128
> #19 0x0079b374 in EThread::execute (this=0x2b9316582010) at 
> UnixEThread.cc:252
> #20 0x0079a415 in spawn_thread_internal (a=0x2f209e0) at Thread.cc:85
> #21 0x2b9313db39d1 in start_thread () from /lib64/libpthread.so.0
> #22 0x0034884e88fd in clone () from /lib64/libc.so.6
> (gdb) frame 1
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> 891   in Http2ConnectionState.cc
> (gdb) p fetch_sm
> $24 = (FetchSM *) 0x0
> (gdb) frame 2
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> 845   in Http2ConnectionState.cc
> (gdb) p *this
> $21 = { = { = {_vptr.force_VFPT_to_top = 
> 0x7ddbf0}, handler = (int (Continuation::*)(Continuation *, int,
> void *)) 0x644ac6 , 
> mutex = {m_ptr = 0x2b94042f0d50}, link = {> = {next = 
> 0x0},
>   prev = 0x0}, debug_override = false}, ua_session = 0x2b940b27a9d0, 
> local_dynamic_table = 0x2b940f50cda0, remote_dynamic_table = 0x2b940c780fc0,
>   server_settings = {settings = {4096, 0, 100, 1048576, 16384, 4294967295}}, 
> client_settings = {settings = {4096, 0, 100, 65535, 16384, 4294967295}},
>   client_rwnd = 11398558, server_rwnd = 1048576, stream_list = {head = 
> 0x2b940f473fd0}, latest_streamid = 77, client_streams_count = 28, 
> continued_stream_id = 0,
>   continued_buffer = {iov_base = 0x0, iov_len = 0}}
> (gdb) p s
> $22 = (Http2Stream *) 0x2b940cd46a20
> (gdb) p *s
> $23 = {client_rwnd = 65535, server_rwnd = 1048576, link = 
> {> = {next = 0x2b940e1bb2c0}, prev = 0x2b940c0157b0},
>   header_blocks = "XXX", header_blocks_length = 96,
>   request_header_length =

[jira] [Commented] (TS-3958) HTTP/2 coredump with NULL FetchSM

2015-10-06 Thread Bryan Call (JIRA)

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

Bryan Call commented on TS-3958:


[~maskit] [~rokubo] [~masaori]
I am seeing the core a couple times a day across all our installs of ATS.

Do you have an idea why Http2ConnectionState:: fetch_sm is NULL?  It looks like 
the headers have been fully read from the client and it should have allocated a 
fetch_sm after calling Http2Stream::init_fetcher().  On the close side of 
things when it sets fetch_sm to NULL it should remove it from the list and 
delete the Http2Stream object.  All the code looks correct unless I am missing 
something.

I was thinking about adding this change, but it will hide that this is 
occurring in the first place.
{code}
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -842,7 +842,7 @@ Http2ConnectionState::restart_streams()
   Http2Stream *s = stream_list.head;
   while (s) {
 Http2Stream *next = s->link.next;
-if (min(this->client_rwnd, s->client_rwnd) > 0) {
+if (s->get_fetcher() != NULL && min(this->client_rwnd, s->client_rwnd) > 
0) {
   this->send_data_frame(s->get_fetcher());
 }
 s = next;
{code}

> HTTP/2 coredump with NULL FetchSM
> -
>
> Key: TS-3958
> URL: https://issues.apache.org/jira/browse/TS-3958
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP/2
>Reporter: Bryan Call
>
> {code}
> (gdb) bt
> #0  0x005107b0 in FetchSM::ext_get_user_data (this=0x0) at 
> FetchSM.cc:689
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> #3  0x0064437a in rcv_window_update_frame (cs=..., cstate=..., 
> frame=...) at Http2ConnectionState.cc:539
> #4  0x00644de5 in Http2ConnectionState::main_event_handler 
> (this=0x2b940b27ac30, event=2253, edata=0x2b931ca087e0) at 
> Http2ConnectionState.cc:733
> #5  0x00510f78 in Continuation::handleEvent (this=0x2b940b27ac30, 
> event=2253, data=0x2b931ca087e0) at ../iocore/eventsystem/I_Continuation.h:150
> #6  0x0063f655 in send_connection_event (cont=0x2b940b27ac30, 
> event=2253, edata=0x2b931ca087e0) at Http2ClientSession.cc:59
> #7  0x006415e7 in Http2ClientSession::state_complete_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:398
> #8  0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #9  0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #10 0x0064132f in Http2ClientSession::state_start_frame_read 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:371
> #11 0x006403bd in Http2ClientSession::main_event_handler 
> (this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
> Http2ClientSession.cc:222
> #12 0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
> event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
> #13 0x00779f9e in read_signal_and_update (event=100, 
> vc=0x2b949c39b320) at UnixNetVConnection.cc:148
> #14 0x0077ce08 in UnixNetVConnection::readSignalAndUpdate 
> (this=0x2b949c39b320, event=100) at UnixNetVConnection.cc:1020
> #15 0x00761b45 in SSLNetVConnection::net_read_io 
> (this=0x2b949c39b320, nh=0x2b93165858f0, lthread=0x2b9316582010) at 
> SSLNetVConnection.cc:587
> #16 0x00773a72 in NetHandler::mainNetEvent (this=0x2b93165858f0, 
> event=5, e=0x3053270) at UnixNet.cc:547
> #17 0x00510f78 in Continuation::handleEvent (this=0x2b93165858f0, 
> event=5, data=0x3053270) at ../iocore/eventsystem/I_Continuation.h:150
> #18 0x0079ae6a in EThread::process_event (this=0x2b9316582010, 
> e=0x3053270, calling_code=5) at UnixEThread.cc:128
> #19 0x0079b374 in EThread::execute (this=0x2b9316582010) at 
> UnixEThread.cc:252
> #20 0x0079a415 in spawn_thread_internal (a=0x2f209e0) at Thread.cc:85
> #21 0x2b9313db39d1 in start_thread () from /lib64/libpthread.so.0
> #22 0x0034884e88fd in clone () from /lib64/libc.so.6
> (gdb) frame 1
> #1  0x0064552e in Http2ConnectionState::send_data_frame 
> (this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
> 891   in Http2ConnectionState.cc
> (gdb) p fetch_sm
> $24 = (FetchSM *) 0x0
> (gdb) frame 2
> #2  0x00645250 in Http2ConnectionState::restart_streams 
> (this=0x2b940b27ac30) at Http2ConnectionState.cc:845
> 845   in Http2C

[jira] [Updated] (TS-3958) HTTP/2 coredump with NULL FetchSM

2015-10-06 Thread Bryan Call (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call updated TS-3958:
---
Description: 
{code}
(gdb) bt
#0  0x005107b0 in FetchSM::ext_get_user_data (this=0x0) at 
FetchSM.cc:689
#1  0x0064552e in Http2ConnectionState::send_data_frame 
(this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
#2  0x00645250 in Http2ConnectionState::restart_streams 
(this=0x2b940b27ac30) at Http2ConnectionState.cc:845
#3  0x0064437a in rcv_window_update_frame (cs=..., cstate=..., 
frame=...) at Http2ConnectionState.cc:539
#4  0x00644de5 in Http2ConnectionState::main_event_handler 
(this=0x2b940b27ac30, event=2253, edata=0x2b931ca087e0) at 
Http2ConnectionState.cc:733
#5  0x00510f78 in Continuation::handleEvent (this=0x2b940b27ac30, 
event=2253, data=0x2b931ca087e0) at ../iocore/eventsystem/I_Continuation.h:150
#6  0x0063f655 in send_connection_event (cont=0x2b940b27ac30, 
event=2253, edata=0x2b931ca087e0) at Http2ClientSession.cc:59
#7  0x006415e7 in Http2ClientSession::state_complete_frame_read 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:398
#8  0x006403bd in Http2ClientSession::main_event_handler 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:222
#9  0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
#10 0x0064132f in Http2ClientSession::state_start_frame_read 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:371
#11 0x006403bd in Http2ClientSession::main_event_handler 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:222
#12 0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
#13 0x00779f9e in read_signal_and_update (event=100, vc=0x2b949c39b320) 
at UnixNetVConnection.cc:148
#14 0x0077ce08 in UnixNetVConnection::readSignalAndUpdate 
(this=0x2b949c39b320, event=100) at UnixNetVConnection.cc:1020
#15 0x00761b45 in SSLNetVConnection::net_read_io (this=0x2b949c39b320, 
nh=0x2b93165858f0, lthread=0x2b9316582010) at SSLNetVConnection.cc:587
#16 0x00773a72 in NetHandler::mainNetEvent (this=0x2b93165858f0, 
event=5, e=0x3053270) at UnixNet.cc:547
#17 0x00510f78 in Continuation::handleEvent (this=0x2b93165858f0, 
event=5, data=0x3053270) at ../iocore/eventsystem/I_Continuation.h:150
#18 0x0079ae6a in EThread::process_event (this=0x2b9316582010, 
e=0x3053270, calling_code=5) at UnixEThread.cc:128
#19 0x0079b374 in EThread::execute (this=0x2b9316582010) at 
UnixEThread.cc:252
#20 0x0079a415 in spawn_thread_internal (a=0x2f209e0) at Thread.cc:85
#21 0x2b9313db39d1 in start_thread () from /lib64/libpthread.so.0
#22 0x0034884e88fd in clone () from /lib64/libc.so.6

(gdb) frame 1
#1  0x0064552e in Http2ConnectionState::send_data_frame 
(this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
891 in Http2ConnectionState.cc
(gdb) p fetch_sm
$24 = (FetchSM *) 0x0

(gdb) frame 2
#2  0x00645250 in Http2ConnectionState::restart_streams 
(this=0x2b940b27ac30) at Http2ConnectionState.cc:845
845 in Http2ConnectionState.cc
(gdb) p *this
$21 = { = { = {_vptr.force_VFPT_to_top = 
0x7ddbf0}, handler = (int (Continuation::*)(Continuation *, int,
void *)) 0x644ac6 , 
mutex = {m_ptr = 0x2b94042f0d50}, link = {> = {next = 0x0},
  prev = 0x0}, debug_override = false}, ua_session = 0x2b940b27a9d0, 
local_dynamic_table = 0x2b940f50cda0, remote_dynamic_table = 0x2b940c780fc0,
  server_settings = {settings = {4096, 0, 100, 1048576, 16384, 4294967295}}, 
client_settings = {settings = {4096, 0, 100, 65535, 16384, 4294967295}},
  client_rwnd = 11398558, server_rwnd = 1048576, stream_list = {head = 
0x2b940f473fd0}, latest_streamid = 77, client_streams_count = 28, 
continued_stream_id = 0,
  continued_buffer = {iov_base = 0x0, iov_len = 0}}
(gdb) p s
$22 = (Http2Stream *) 0x2b940cd46a20
(gdb) p *s
$23 = {client_rwnd = 65535, server_rwnd = 1048576, link = {> 
= {next = 0x2b940e1bb2c0}, prev = 0x2b940c0157b0},
  header_blocks = "XXX", header_blocks_length = 96,
  request_header_length = 96, end_stream = true, _start_time = 0, _thread = 
0x2b9316582010, _id = 47, _state = HTTP2_STREAM_STATE_HALF_CLOSED_REMOTE,
  _req_header = { = { = {m_heap = 0x2b9414aa1ed0}, 
m_mime = 0x2b9414aa1f88}, m_http = 0x2b9414aa1f58,
m_url_cached = { = {m_heap = 0x0}, m_url_impl = 0x0}, 
m_host_mime = 0x4632256567616d69, m_host_length = 1734701162, m_port = 
1684629030,
m_target_cached = false, m_target_in_url = 83, m_port_in_header = 101, 
static USE_HDR_HEAP_MAGIC = 0x1}, _fetch_sm = 0x0, body_done = false, 
data_length = 0}
{code}



[jira] [Updated] (TS-3958) HTTP/2 coredump with NULL FetchSM

2015-10-06 Thread Bryan Call (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bryan Call updated TS-3958:
---
Description: 
{code}
(gdb) bt
#0  0x005107b0 in FetchSM::ext_get_user_data (this=0x0) at 
FetchSM.cc:689
#1  0x0064552e in Http2ConnectionState::send_data_frame 
(this=0x2b940b27ac30, fetch_sm=0x0) at Http2ConnectionState.cc:891
#2  0x00645250 in Http2ConnectionState::restart_streams 
(this=0x2b940b27ac30) at Http2ConnectionState.cc:845
#3  0x0064437a in rcv_window_update_frame (cs=..., cstate=..., 
frame=...) at Http2ConnectionState.cc:539
#4  0x00644de5 in Http2ConnectionState::main_event_handler 
(this=0x2b940b27ac30, event=2253, edata=0x2b931ca087e0) at 
Http2ConnectionState.cc:733
#5  0x00510f78 in Continuation::handleEvent (this=0x2b940b27ac30, 
event=2253, data=0x2b931ca087e0) at ../iocore/eventsystem/I_Continuation.h:150
#6  0x0063f655 in send_connection_event (cont=0x2b940b27ac30, 
event=2253, edata=0x2b931ca087e0) at Http2ClientSession.cc:59
#7  0x006415e7 in Http2ClientSession::state_complete_frame_read 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:398
#8  0x006403bd in Http2ClientSession::main_event_handler 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:222
#9  0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
#10 0x0064132f in Http2ClientSession::state_start_frame_read 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:371
#11 0x006403bd in Http2ClientSession::main_event_handler 
(this=0x2b940b27a9d0, event=100, edata=0x2b949c39b438) at 
Http2ClientSession.cc:222
#12 0x00510f78 in Continuation::handleEvent (this=0x2b940b27a9d0, 
event=100, data=0x2b949c39b438) at ../iocore/eventsystem/I_Continuation.h:150
#13 0x00779f9e in read_signal_and_update (event=100, vc=0x2b949c39b320) 
at UnixNetVConnection.cc:148
#14 0x0077ce08 in UnixNetVConnection::readSignalAndUpdate 
(this=0x2b949c39b320, event=100) at UnixNetVConnection.cc:1020
#15 0x00761b45 in SSLNetVConnection::net_read_io (this=0x2b949c39b320, 
nh=0x2b93165858f0, lthread=0x2b9316582010) at SSLNetVConnection.cc:587
#16 0x00773a72 in NetHandler::mainNetEvent (this=0x2b93165858f0, 
event=5, e=0x3053270) at UnixNet.cc:547
#17 0x00510f78 in Continuation::handleEvent (this=0x2b93165858f0, 
event=5, data=0x3053270) at ../iocore/eventsystem/I_Continuation.h:150
#18 0x0079ae6a in EThread::process_event (this=0x2b9316582010, 
e=0x3053270, calling_code=5) at UnixEThread.cc:128
#19 0x0079b374 in EThread::execute (this=0x2b9316582010) at 
UnixEThread.cc:252
#20 0x0079a415 in spawn_thread_internal (a=0x2f209e0) at Thread.cc:85
#21 0x2b9313db39d1 in start_thread () from /lib64/libpthread.so.0
#22 0x0034884e88fd in clone () from /lib64/libc.so.6

(gdb) p *this
$21 = { = { = {_vptr.force_VFPT_to_top = 
0x7ddbf0}, handler = (int (Continuation::*)(Continuation *, int,
void *)) 0x644ac6 , 
mutex = {m_ptr = 0x2b94042f0d50}, link = {> = {next = 0x0},
  prev = 0x0}, debug_override = false}, ua_session = 0x2b940b27a9d0, 
local_dynamic_table = 0x2b940f50cda0, remote_dynamic_table = 0x2b940c780fc0,
  server_settings = {settings = {4096, 0, 100, 1048576, 16384, 4294967295}}, 
client_settings = {settings = {4096, 0, 100, 65535, 16384, 4294967295}},
  client_rwnd = 11398558, server_rwnd = 1048576, stream_list = {head = 
0x2b940f473fd0}, latest_streamid = 77, client_streams_count = 28, 
continued_stream_id = 0,
  continued_buffer = {iov_base = 0x0, iov_len = 0}}
(gdb) p s
$22 = (Http2Stream *) 0x2b940cd46a20
(gdb) p *s
$23 = {client_rwnd = 65535, server_rwnd = 1048576, link = {> 
= {next = 0x2b940e1bb2c0}, prev = 0x2b940c0157b0},
  header_blocks = "XXX", header_blocks_length = 96,
  request_header_length = 96, end_stream = true, _start_time = 0, _thread = 
0x2b9316582010, _id = 47, _state = HTTP2_STREAM_STATE_HALF_CLOSED_REMOTE,
  _req_header = { = { = {m_heap = 0x2b9414aa1ed0}, 
m_mime = 0x2b9414aa1f88}, m_http = 0x2b9414aa1f58,
m_url_cached = { = {m_heap = 0x0}, m_url_impl = 0x0}, 
m_host_mime = 0x4632256567616d69, m_host_length = 1734701162, m_port = 
1684629030,
m_target_cached = false, m_target_in_url = 83, m_port_in_header = 101, 
static USE_HDR_HEAP_MAGIC = 0x1}, _fetch_sm = 0x0, body_done = false, 
data_length = 0}
{code}


> HTTP/2 coredump with NULL FetchSM
> -
>
> Key: TS-3958
> URL: https://issues.apache.org/jira/browse/TS-3958
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP/2
>Reporter: Bryan Call
>
> {code}
> (gdb) bt
> #0  0x005107b0 in FetchSM::ext_get_user_data (this=0x

[jira] [Commented] (TS-3710) Crash in TLS with 6.0.0, related to the session cleanup additions

2015-10-06 Thread Susan Hinrichs (JIRA)

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

Susan Hinrichs commented on TS-3710:


Typoed the bug number in the commit comment.  This commit belongs with this 
issue.

Commit 1859562086b330eed6eda637f5f98a3431db5915 in trafficserver's branch 
refs/heads/master from shinrich
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=1859562 ]
TS-3701 - Crash in trampoline cleanup

> Crash in TLS with 6.0.0, related to the session cleanup additions
> -
>
> Key: TS-3710
> URL: https://issues.apache.org/jira/browse/TS-3710
> Project: Traffic Server
>  Issue Type: Bug
>  Components: SSL
>Affects Versions: 5.3.0
>Reporter: Leif Hedstrom
>Assignee: Susan Hinrichs
>Priority: Critical
>  Labels: yahoo
> Fix For: 6.1.0
>
> Attachments: ts-3710-2.diff, ts-3710-8-26-15.diff, 
> ts-3710-final-2.diff, ts-3710.diff
>
>
> {code}
> ==9570==ERROR: AddressSanitizer: heap-use-after-free on address 
> 0x60649f48 at pc 0xb9f969 bp 0x2b8dbc348920 sp 0x2b8dbc348918
> READ of size 8 at 0x60649f48 thread T8 ([ET_NET 7])
> #0 0xb9f968 in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #1 0xb9f968 in read_signal_and_update 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:142
> #2 0xb9f968 in UnixNetVConnection::mainEvent(int, Event*) 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:1115
> #3 0xb7daf7 in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #4 0xb7daf7 in InactivityCop::check_inactivity(int, Event*) 
> /usr/local/src/trafficserver/iocore/net/UnixNet.cc:102
> #5 0xc21ffe in Continuation::handleEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/eventsystem/I_Continuation.h:145
> #6 0xc21ffe in EThread::process_event(Event*, int) 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:128
> #7 0xc241f7 in EThread::execute() 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:207
> #8 0xc20c18 in spawn_thread_internal 
> /usr/local/src/trafficserver/iocore/eventsystem/Thread.cc:85
> #9 0x2b8db3ff6df4 in start_thread (/lib64/libpthread.so.0+0x7df4)
> #10 0x2b8db585f1ac in __clone (/lib64/libc.so.6+0xf61ac)
> 0x60649f48 is located 8 bytes inside of 56-byte region 
> [0x60649f40,0x60649f78)
> freed by thread T8 ([ET_NET 7]) here:
> #0 0x2b8db1bf3117 in operator delete(void*) 
> ../../.././libsanitizer/asan/asan_new_delete.cc:81
> #1 0xb5b20e in SSLNextProtocolTrampoline::ioCompletionEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/net/SSLNextProtocolAccept.cc:89
> #2 0xbb2eef in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #3 0xbb2eef in read_signal_and_update 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:142
> #4 0xbb2eef in read_signal_done 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:203
> #5 0xbb2eef in UnixNetVConnection::readSignalDone(int, NetHandler*) 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:957
> #6 0xb55d6d in SSLNetVConnection::net_read_io(NetHandler*, EThread*) 
> /usr/local/src/trafficserver/iocore/net/SSLNetVConnection.cc:480
> #7 0xb748fc in NetHandler::mainNetEvent(int, Event*) 
> /usr/local/src/trafficserver/iocore/net/UnixNet.cc:516
> #8 0xc24e89 in Continuation::handleEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/eventsystem/I_Continuation.h:145
> #9 0xc24e89 in EThread::process_event(Event*, int) 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:128
> #10 0xc24e89 in EThread::execute() 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:252
> #11 0xc20c18 in spawn_thread_internal 
> /usr/local/src/trafficserver/iocore/eventsystem/Thread.cc:85
> #12 0x2b8db3ff6df4 in start_thread (/lib64/libpthread.so.0+0x7df4)
> previously allocated by thread T8 ([ET_NET 7]) here:
> #0 0x2b8db1bf2c9f in operator new(unsigned long) 
> ../../.././libsanitizer/asan/asan_new_delete.cc:50
> #1 0xb59f8b in SSLNextProtocolAccept::mainEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/net/SSLNextProtocolAccept.cc:134
> #2 0xb888e9 in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #3 0xb888e9 in NetAccept::acceptFastEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/net/UnixNetAccept.cc:466
> #4 0xc24e89 in Continuation::handleEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/eventsystem/I_Continuation.h:145
> #5 0xc24e89 in EThread::process_event(Event*, int) 
> /usr/local/src/trafficse

[jira] [Created] (TS-3958) HTTP/2 coredump with NULL FetchSM

2015-10-06 Thread Bryan Call (JIRA)
Bryan Call created TS-3958:
--

 Summary: HTTP/2 coredump with NULL FetchSM
 Key: TS-3958
 URL: https://issues.apache.org/jira/browse/TS-3958
 Project: Traffic Server
  Issue Type: Bug
  Components: HTTP/2
Reporter: Bryan Call






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-3701) link Cache Promote Plugin document into index and fix spell in records.config.en.rst

2015-10-06 Thread Susan Hinrichs (JIRA)

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

Susan Hinrichs commented on TS-3701:


Typoed the bug number in the commit.  The commit above belongs to TS-3710.


> link Cache Promote Plugin document into index and fix spell in 
> records.config.en.rst
> 
>
> Key: TS-3701
> URL: https://issues.apache.org/jira/browse/TS-3701
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Docs
>Reporter: Oknet Xu
>Assignee: Jon Sime
> Fix For: Docs
>
>
> here is the patch:
> {code}
> diff --git a/doc/reference/configuration/records.config.en.rst 
> b/doc/reference/configuration/records.config.en.rst
> index 2c7267b..5c203a6 100644
> --- a/doc/reference/configuration/records.config.en.rst
> +++ b/doc/reference/configuration/records.config.en.rst
> @@ -2017,7 +2017,7 @@ Logging Configuration
>  - ``log_name`` STRING [format]
>  The filename (ex. :ref:`squid log `).
>  
> -- ``log_header_ STRING NULL
> +- ``log_header`` STRING NULL
>  The file header text (ex. :ref:`squid log 
> `).
>  
>  The format can be either ``squid`` (Squid Format), ``common`` (Netscape 
> Common),  ``extended`` (Netscape Extended),
> diff --git a/doc/reference/plugins/index.en.rst 
> b/doc/reference/plugins/index.en.rst
> index 0e43b87..722cc4c 100644
> --- a/doc/reference/plugins/index.en.rst
> +++ b/doc/reference/plugins/index.en.rst
> @@ -67,6 +67,7 @@ directory of the Apache Traffic Server source tree. 
> Experimental plugins can be
>Background Fetch Plugin: allows you to proactively fetch content from 
> Origin in a way that it will fill the object into cache 
>Balancer Plugin: balances requests across multiple origin servers 
> 
>Buffer Upload Plugin: buffers POST data before connecting to the Origin 
> server 
> +  Cache Promote Plugin: provides a means to control when an object should be 
> allowed to enter the cache 
>Combohandler Plugin: provides an intelligent way to combine multiple URLs 
> into a single URL, and have Apache Traffic Server combine the components into 
> one response 
>Epic Plugin: emits Traffic Server metrics in a format that is consumed tby 
> the Epic Network Monitoring System 
>ESI Plugin: implements the ESI specification 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: clang-analyzer #1478

2015-10-06 Thread jenkins
See 

Changes:

[shinrich] TS-3701 - Crash in trampoline cleanup

--
[...truncated 2385 lines...]
reading sources... [ 89%] 
sdk/http-hooks-and-transactions/intercepting-http-transactions.en
reading sources... [ 90%] sdk/http-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/append-transform-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-buffered-null-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-null-transformation-plugin.en
reading sources... [ 91%] sdk/index.en
reading sources... [ 91%] sdk/io-guide.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api/errors.en
reading sources... [ 92%] sdk/io-guide/guide-to-cache-api/example.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-remove.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-write.en
reading sources... [ 93%] sdk/io-guide/io-buffers.en
reading sources... [ 93%] sdk/io-guide/net-vconnections.en
reading sources... [ 93%] sdk/io-guide/transformations.en
reading sources... [ 93%] sdk/io-guide/vios.en
reading sources... [ 94%] sdk/misc-interface-guide.en
reading sources... [ 94%] sdk/misc-interface-guide/memory-allocation.en
reading sources... [ 94%] sdk/misc-interface-guide/thread-functions.en
reading sources... [ 95%] sdk/misc-interface-guide/tsfopen-family.en
reading sources... [ 95%] sdk/mutex-guide.en
reading sources... [ 95%] sdk/new-protocol-plugins.en
reading sources... [ 95%] sdk/plugin-configurations.en
reading sources... [ 96%] sdk/plugin-management.en
reading sources... [ 96%] sdk/plugin-management/guide-to-the-logging-api.en
reading sources... [ 96%] 
sdk/plugin-management/reading-trafficserver-settings-and-statistics.en
reading sources... [ 96%] sdk/preface.en
reading sources... [ 97%] sdk/preface/how-to-use-this-book.en
reading sources... [ 97%] sdk/preface/typographical-conventions.en
reading sources... [ 97%] sdk/remap-plugin.en
reading sources... [ 98%] sdk/remap-plugin/example-query-remap.en
reading sources... [ 98%] sdk/sample-source-code.en
reading sources... [ 98%] sdk/trafficserver-timers.en
reading sources... [ 98%] sdk/troubleshooting-tips.en
reading sources... [ 99%] sdk/troubleshooting-tips/debugging-memory-leaks.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-debug-tags.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-load-plugins.en
reading sources... [100%] sdk/troubleshooting-tips/using-a-debugger.en

:350:
 WARNING: malformed hyperlink target.
:26:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlGet, other 
instance in 

:45:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlSet, other 
instance in 

:2950:
 ERROR: Unknown interpreted text role "configfile".
:2955:
 ERROR: Unknown interpreted text role "configfile".
:63:
 WARNING: toctree contains reference to nonexisting document 
u'reference/plugins/Cache Promotion: provides additional control over when an 
object should be'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... TSAPI.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_VC_CLOSE_ABORT
None:None: WARNING: c:data reference target not found: TS_URL_SCHEME_FILE
None:None: WARNING: c:data reference target not found: TS_MIME_FIELD_ACCEPT
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/plugin.config
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/records.config
TSActionCancel.3ts { } TSActionDone.3ts { } TSCacheRead.3ts { } None:None: 
WARNING: c:data reference target not found: TS_EVENT_CACHE_OPEN_READ
None:None: WARNING: c:data reference target not found: 
TS_EVENT_CACHE_OPEN_READ_FAILED
TSCacheRemove.3ts { } None:None: WARNI

Build failed in Jenkins: tsqa-master #918

2015-10-06 Thread jenkins
See 

--
[...truncated 503 lines...]
test_spdy (test_example.TestConfigureFlags) ... ok
INFO 2015-10-06 19:42:56,948 - Environment prefix is /tmp/tsqa.env.FzIXkt
test_basic_proxy (test_example.TestDynamicHTTPEndpointCase) ... 127.0.0.1 - - 
[06/Oct/2015 19:43:00] "GET /test HTTP/1.1" 404 0
ok
INFO 2015-10-06 19:43:00,467 - Environment prefix is /tmp/tsqa.env.bL8DxM
test_logs_exist (test_example.TestLogs) ... ok
SKIP: Skip the entire class
INFO 2015-10-06 19:43:13,963 - Environment prefix is /tmp/tsqa.env.IpMEta
test_basic_intercept (test_example.TestServerIntercept) ... 127.0.0.1 - - 
[06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:17] "GET / HTTP/1.1" 200 5
ok
INFO 2015-10-06 19:43:17,522 - Environment prefix is /tmp/tsqa.env.qbHiHo
INFO 2015-10-06 19:43:17,525 - map / http://127.0.0.1:56005/
test_head_request_without_timout 
(test_headrequest.TestHeadRequestWithoutTimeout) ... INFO 2015-10-06 
19:43:20,752 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:20 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:20,753 - head request with case(TE) costs 0.001587 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:43:20,754 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Content-Length: 123
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:20 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:20,754 - head request with case(CL) costs 0.001103 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:43:20,817 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:20 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:20,817 - head request with case() costs 0.062794 seconds 
while the timout is 5.00 seconds.
ok
INFO 2015-10-06 19:43:21,001 - Environment prefix is /tmp/tsqa.env.9q_99a
test_working (test_hostdb.TestHostDBBadResolvConf) ... ok
INFO 2015-10-06 19:43:24,470 - Environment prefix is /tmp/tsqa.env.pOEqqM
test_lookup_timeout (test_hostdb.TestHostDBFailedDNS) ... ok
INFO 2015-10-06 19:43:30,009 - Environment prefix is /tmp/tsqa.env._hTYfO
Test basic fnctionality of hosts files ... ok
Test that changes to hosts file get loaded within host_file.interval ... ok
INFO 2015-10-06 19:43:39,607 - Environment prefix is /tmp/tsqa.env.jtyFby
SKIP: 
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.jtyFby
- >> end captured logging << -
Failure: SkipTest (Cannot import hyper, skipping tests for HTTP/2) ... SKIP: 
Cannot import hyper, skipping tests for HTTP/2
INFO 2015-10-06 19:43:39,689 - Environment prefix is /tmp/tsqa.env._9rcVh
SKIP: Cannot find h2spec. skipping test.
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env._9rcVh
- >> end captured logging << -
INFO 2015-10-06 19:43:39,786 - Environment prefix is /tmp/tsqa.env.jkuTWS
test_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_rsa (test_https.TestECDSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
test_rsa (test_https.TestECDSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
INFO 2015-10-06 19:43:43,336 - Environment prefix is /tmp/tsqa.env.6N3uWf
test_ecdsa (test_https.TestMix) ... ok
test_intermediate_ca_ecdsa (test_https.TestMix) ... ok
test_intermediate_ca_rsa (test_https.TestMix) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
test_rsa (test_https.TestMix) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
INFO 2015-10-06 19:43:46,991 - Environment prefix is /tmp/tsqa.env.yxwJq5
test_ecdsa (test_https.TestRSA) ... ok
test_intermediate_ca_ecdsa (test_https.TestRSA) ... ok
test_intermediate_ca_rsa (test_https.TestRSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certif

Build failed in Jenkins: tsqa-master #917

2015-10-06 Thread jenkins
See 

Changes:

[shinrich] TS-3701 - Crash in trampoline cleanup

--
[...truncated 492 lines...]
Verify that we get 504s from origins that return a partial_response ... ok
Verify that we get 502s from origins that reset_after_accept, once any bytes 
are sent to origin we assume we cannot re-dispatch ... ok
INFO 2015-10-06 19:40:25,549 - Environment prefix is /tmp/tsqa.env.Xy3nQJ
test_log_field (test_custom_log.TestCustomLogField) ... ok
INFO 2015-10-06 19:42:09,106 - Environment prefix is /tmp/tsqa.env.x8X_nR
test_default_404 (test_example.TestBootstrap) ... ok
Test that traffic_line works, and verify that the values for proxy.config ... ok
INFO 2015-10-06 19:42:39,572 - Starting build 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 19:43:31,143 - Build completed 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 19:43:31,211 - Environment prefix is /tmp/tsqa.env.HgtNma
test_spdy (test_example.TestConfigureFlags) ... ok
INFO 2015-10-06 19:43:34,622 - Environment prefix is /tmp/tsqa.env.hSBhiM
test_basic_proxy (test_example.TestDynamicHTTPEndpointCase) ... 127.0.0.1 - - 
[06/Oct/2015 19:43:37] "GET /test HTTP/1.1" 404 0
ok
INFO 2015-10-06 19:43:38,151 - Environment prefix is /tmp/tsqa.env.lO59dR
test_logs_exist (test_example.TestLogs) ... ok
SKIP: Skip the entire class
INFO 2015-10-06 19:43:51,744 - Environment prefix is /tmp/tsqa.env.5ybhyW
test_basic_intercept (test_example.TestServerIntercept) ... 127.0.0.1 - - 
[06/Oct/2015 19:43:54] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:54] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:43:55] "GET / HTTP/1.1" 200 5
ok
INFO 2015-10-06 19:43:55,218 - Environment prefix is /tmp/tsqa.env.Icf9I1
INFO 2015-10-06 19:43:55,220 - map / http://127.0.0.1:39454/
test_head_request_without_timout 
(test_headrequest.TestHeadRequestWithoutTimeout) ... INFO 2015-10-06 
19:43:58,459 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:58 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:58,460 - head request with case(TE) costs 0.012634 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:43:58,461 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Content-Length: 123
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:58 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:58,461 - head request with case(CL) costs 0.001248 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:43:58,462 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:43:58 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:43:58,462 - head request with case() costs 0.000903 seconds 
while the timout is 5.00 seconds.
ok
INFO 2015-10-06 19:43:58,650 - Environment prefix is /tmp/tsqa.env.khUBnS
test_working (test_hostdb.TestHostDBBadResolvConf) ... ok
INFO 2015-10-06 19:44:02,214 - Environment prefix is /tmp/tsqa.env.5Drpn3
test_lookup_timeout (test_hostdb.TestHostDBFailedDNS) ... ok
INFO 2015-10-06 19:44:07,672 - Environment prefix is /tmp/tsqa.env.ZC6sC2
Test basic fnctionality of hosts files ... ok
Test that changes to hosts file get loaded within host_file.interval ... ok
INFO 2015-10-06 19:44:17,153 - Environment prefix is /tmp/tsqa.env.xxtBlv
SKIP: 
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.xxtBlv
- >> end captured logging << -
Failure: SkipTest (Cannot import hyper, skipping tests for HTTP/2) ... SKIP: 
Cannot import hyper, skipping tests for HTTP/2
INFO 2015-10-06 19:44:17,244 - Environment prefix is /tmp/tsqa.env.585v8A
SKIP: Cannot find h2spec. skipping test.
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.585v8A
- >> end captured logging << -
INFO 2015-10-06 19:44:17,350 - Environment prefix is /tmp/tsqa.env.FKAsi4
test_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_rsa (test_https.TestECDSA) ... ok
We should be served

[jira] [Resolved] (TS-3957) Core dump from SpdyClientSession::state_session_start

2015-10-06 Thread Susan Hinrichs (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Susan Hinrichs resolved TS-3957.

Resolution: Fixed

> Core dump from SpdyClientSession::state_session_start
> -
>
> Key: TS-3957
> URL: https://issues.apache.org/jira/browse/TS-3957
> Project: Traffic Server
>  Issue Type: Bug
>  Components: SPDY
>Reporter: Susan Hinrichs
>Assignee: Susan Hinrichs
>  Labels: yahoo
> Fix For: 6.1.0
>
>
> We see this in production on machines under swap, so the timings are very 
> distorted.
> {code}
> gdb) bt
> #0  0x in ?? ()
> #1  0x0064a5dc in SpdyClientSession::state_session_start 
> (this=0x2b234fbe8030)
> at SpdyClientSession.cc:211
> #2  0x00510e34 in Continuation::handleEvent (this=0x2b234fbe8030, 
> event=1, 
> data=0x2b23eda76630) at ../iocore/eventsystem/I_Continuation.h:145
> #3  0x0079a066 in EThread::process_event (this=0x2b21170a2010, 
> e=0x2b23eda76630, 
> calling_code=1) at UnixEThread.cc:128
> #4  0x0079a234 in EThread::execute (this=0x2b21170a2010) at 
> UnixEThread.cc:179
> #5  0x00799611 in spawn_thread_internal (a=0x12226a0) at Thread.cc:85
> #6  0x2b21153e19d1 in start_thread () from /lib64/libpthread.so.0
> #7  0x003827ee88fd in clone () from /lib64/libc.so.6
> {code}
> After poking around on the core some more [~amc] and I determined that the vc 
> referenced by the SpdyClientSession was a freed object (the vtable pointer 
> was swizzled out to be the freelist next pointer).
> We assume that the swapping is causing very odd event timing.  We replaced 
> the schedule_immediate with a direct call that that seemed to solve our crash 
> in production.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-3701) link Cache Promote Plugin document into index and fix spell in records.config.en.rst

2015-10-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-3701:
-

Commit 1859562086b330eed6eda637f5f98a3431db5915 in trafficserver's branch 
refs/heads/master from shinrich
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=1859562 ]

TS-3701 - Crash in trampoline cleanup


> link Cache Promote Plugin document into index and fix spell in 
> records.config.en.rst
> 
>
> Key: TS-3701
> URL: https://issues.apache.org/jira/browse/TS-3701
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Docs
>Reporter: Oknet Xu
>Assignee: Jon Sime
> Fix For: Docs
>
>
> here is the patch:
> {code}
> diff --git a/doc/reference/configuration/records.config.en.rst 
> b/doc/reference/configuration/records.config.en.rst
> index 2c7267b..5c203a6 100644
> --- a/doc/reference/configuration/records.config.en.rst
> +++ b/doc/reference/configuration/records.config.en.rst
> @@ -2017,7 +2017,7 @@ Logging Configuration
>  - ``log_name`` STRING [format]
>  The filename (ex. :ref:`squid log `).
>  
> -- ``log_header_ STRING NULL
> +- ``log_header`` STRING NULL
>  The file header text (ex. :ref:`squid log 
> `).
>  
>  The format can be either ``squid`` (Squid Format), ``common`` (Netscape 
> Common),  ``extended`` (Netscape Extended),
> diff --git a/doc/reference/plugins/index.en.rst 
> b/doc/reference/plugins/index.en.rst
> index 0e43b87..722cc4c 100644
> --- a/doc/reference/plugins/index.en.rst
> +++ b/doc/reference/plugins/index.en.rst
> @@ -67,6 +67,7 @@ directory of the Apache Traffic Server source tree. 
> Experimental plugins can be
>Background Fetch Plugin: allows you to proactively fetch content from 
> Origin in a way that it will fill the object into cache 
>Balancer Plugin: balances requests across multiple origin servers 
> 
>Buffer Upload Plugin: buffers POST data before connecting to the Origin 
> server 
> +  Cache Promote Plugin: provides a means to control when an object should be 
> allowed to enter the cache 
>Combohandler Plugin: provides an intelligent way to combine multiple URLs 
> into a single URL, and have Apache Traffic Server combine the components into 
> one response 
>Epic Plugin: emits Traffic Server metrics in a format that is consumed tby 
> the Epic Network Monitoring System 
>ESI Plugin: implements the ESI specification 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: clang-analyzer #1477

2015-10-06 Thread jenkins
See 

Changes:

[shinrich] TS-3984 - Missing NULL checks in HttpSM::handler_server_setup_error.

--
[...truncated 2385 lines...]
reading sources... [ 89%] 
sdk/http-hooks-and-transactions/intercepting-http-transactions.en
reading sources... [ 90%] sdk/http-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/append-transform-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-buffered-null-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-null-transformation-plugin.en
reading sources... [ 91%] sdk/index.en
reading sources... [ 91%] sdk/io-guide.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api/errors.en
reading sources... [ 92%] sdk/io-guide/guide-to-cache-api/example.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-remove.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-write.en
reading sources... [ 93%] sdk/io-guide/io-buffers.en
reading sources... [ 93%] sdk/io-guide/net-vconnections.en
reading sources... [ 93%] sdk/io-guide/transformations.en
reading sources... [ 93%] sdk/io-guide/vios.en
reading sources... [ 94%] sdk/misc-interface-guide.en
reading sources... [ 94%] sdk/misc-interface-guide/memory-allocation.en
reading sources... [ 94%] sdk/misc-interface-guide/thread-functions.en
reading sources... [ 95%] sdk/misc-interface-guide/tsfopen-family.en
reading sources... [ 95%] sdk/mutex-guide.en
reading sources... [ 95%] sdk/new-protocol-plugins.en
reading sources... [ 95%] sdk/plugin-configurations.en
reading sources... [ 96%] sdk/plugin-management.en
reading sources... [ 96%] sdk/plugin-management/guide-to-the-logging-api.en
reading sources... [ 96%] 
sdk/plugin-management/reading-trafficserver-settings-and-statistics.en
reading sources... [ 96%] sdk/preface.en
reading sources... [ 97%] sdk/preface/how-to-use-this-book.en
reading sources... [ 97%] sdk/preface/typographical-conventions.en
reading sources... [ 97%] sdk/remap-plugin.en
reading sources... [ 98%] sdk/remap-plugin/example-query-remap.en
reading sources... [ 98%] sdk/sample-source-code.en
reading sources... [ 98%] sdk/trafficserver-timers.en
reading sources... [ 98%] sdk/troubleshooting-tips.en
reading sources... [ 99%] sdk/troubleshooting-tips/debugging-memory-leaks.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-debug-tags.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-load-plugins.en
reading sources... [100%] sdk/troubleshooting-tips/using-a-debugger.en

:350:
 WARNING: malformed hyperlink target.
:26:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlGet, other 
instance in 

:45:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlSet, other 
instance in 

:2950:
 ERROR: Unknown interpreted text role "configfile".
:2955:
 ERROR: Unknown interpreted text role "configfile".
:63:
 WARNING: toctree contains reference to nonexisting document 
u'reference/plugins/Cache Promotion: provides additional control over when an 
object should be'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... TSAPI.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_VC_CLOSE_ABORT
None:None: WARNING: c:data reference target not found: TS_URL_SCHEME_FILE
None:None: WARNING: c:data reference target not found: TS_MIME_FIELD_ACCEPT
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/plugin.config
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/records.config
TSActionCancel.3ts { } TSActionDone.3ts { } TSCacheRead.3ts { } None:None: 
WARNING: c:data reference target not found: TS_EVENT_CACHE_OPEN_READ
None:None: WARNING: c:data reference target not found: 
TS_EVENT_CACHE_OPEN_READ_FAILED
TSCache

Build failed in Jenkins: tsqa-master #916

2015-10-06 Thread jenkins
See 

--
[...truncated 503 lines...]
test_spdy (test_example.TestConfigureFlags) ... ok
INFO 2015-10-06 19:15:28,147 - Environment prefix is /tmp/tsqa.env.uzADnl
test_basic_proxy (test_example.TestDynamicHTTPEndpointCase) ... 127.0.0.1 - - 
[06/Oct/2015 19:15:31] "GET /test HTTP/1.1" 404 0
ok
INFO 2015-10-06 19:15:31,671 - Environment prefix is /tmp/tsqa.env.0_S9fA
test_logs_exist (test_example.TestLogs) ... ok
SKIP: Skip the entire class
INFO 2015-10-06 19:15:45,132 - Environment prefix is /tmp/tsqa.env.nz60wS
test_basic_intercept (test_example.TestServerIntercept) ... 127.0.0.1 - - 
[06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:15:48] "GET / HTTP/1.1" 200 5
ok
INFO 2015-10-06 19:15:48,687 - Environment prefix is /tmp/tsqa.env.AgQjo1
INFO 2015-10-06 19:15:48,690 - map / http://127.0.0.1:36332/
test_head_request_without_timout 
(test_headrequest.TestHeadRequestWithoutTimeout) ... INFO 2015-10-06 
19:15:51,923 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:15:51 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:15:51,923 - head request with case(TE) costs 0.004466 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:15:51,948 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Content-Length: 123
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:15:51 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:15:51,949 - head request with case(CL) costs 0.024961 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:15:51,950 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:15:51 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:15:51,950 - head request with case() costs 0.001592 seconds 
while the timout is 5.00 seconds.
ok
INFO 2015-10-06 19:15:52,135 - Environment prefix is /tmp/tsqa.env.7vxvaY
test_working (test_hostdb.TestHostDBBadResolvConf) ... ok
INFO 2015-10-06 19:15:55,710 - Environment prefix is /tmp/tsqa.env.O9_xab
test_lookup_timeout (test_hostdb.TestHostDBFailedDNS) ... ok
INFO 2015-10-06 19:16:01,212 - Environment prefix is /tmp/tsqa.env.l0102s
Test basic fnctionality of hosts files ... ok
Test that changes to hosts file get loaded within host_file.interval ... ok
INFO 2015-10-06 19:16:10,710 - Environment prefix is /tmp/tsqa.env.2bkI5d
SKIP: 
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.2bkI5d
- >> end captured logging << -
Failure: SkipTest (Cannot import hyper, skipping tests for HTTP/2) ... SKIP: 
Cannot import hyper, skipping tests for HTTP/2
INFO 2015-10-06 19:16:10,791 - Environment prefix is /tmp/tsqa.env.syQ7YH
SKIP: Cannot find h2spec. skipping test.
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.syQ7YH
- >> end captured logging << -
INFO 2015-10-06 19:16:10,887 - Environment prefix is /tmp/tsqa.env.NzN0aA
test_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_rsa (test_https.TestECDSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
test_rsa (test_https.TestECDSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
INFO 2015-10-06 19:16:14,506 - Environment prefix is /tmp/tsqa.env.ZfV7sq
test_ecdsa (test_https.TestMix) ... ok
test_intermediate_ca_ecdsa (test_https.TestMix) ... ok
test_intermediate_ca_rsa (test_https.TestMix) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
test_rsa (test_https.TestMix) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
INFO 2015-10-06 19:16:18,179 - Environment prefix is /tmp/tsqa.env._M8Rbk
test_ecdsa (test_https.TestRSA) ... ok
test_intermediate_ca_ecdsa (test_https.TestRSA) ... ok
test_intermediate_ca_rsa (test_https.TestRSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certif

Build failed in Jenkins: tsqa-master #915

2015-10-06 Thread jenkins
See 

Changes:

[shinrich] TS-3984 - Missing NULL checks in HttpSM::handler_server_setup_error.

--
[...truncated 502 lines...]
test_spdy (test_example.TestConfigureFlags) ... ok
INFO 2015-10-06 19:14:35,757 - Environment prefix is /tmp/tsqa.env.rTMfGc
test_basic_proxy (test_example.TestDynamicHTTPEndpointCase) ... 127.0.0.1 - - 
[06/Oct/2015 19:14:39] "GET /test HTTP/1.1" 404 0
ok
INFO 2015-10-06 19:14:39,321 - Environment prefix is /tmp/tsqa.env.z_bPJH
test_logs_exist (test_example.TestLogs) ... ok
SKIP: Skip the entire class
INFO 2015-10-06 19:14:52,803 - Environment prefix is /tmp/tsqa.env.cl698Y
test_basic_intercept (test_example.TestServerIntercept) ... 127.0.0.1 - - 
[06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 19:14:56] "GET / HTTP/1.1" 200 5
ok
INFO 2015-10-06 19:14:56,281 - Environment prefix is /tmp/tsqa.env.grLMTW
INFO 2015-10-06 19:14:56,284 - map / http://127.0.0.1:53008/
test_head_request_without_timout 
(test_headrequest.TestHeadRequestWithoutTimeout) ... INFO 2015-10-06 
19:14:59,511 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:14:59 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:14:59,511 - head request with case(TE) costs 0.002379 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:14:59,512 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Content-Length: 123
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:14:59 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:14:59,513 - head request with case(CL) costs 0.001458 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 19:14:59,513 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 19:14:59 GMT
Age: 0
Connection: close


INFO 2015-10-06 19:14:59,514 - head request with case() costs 0.001031 seconds 
while the timout is 5.00 seconds.
ok
INFO 2015-10-06 19:14:59,697 - Environment prefix is /tmp/tsqa.env.JbLi4F
test_working (test_hostdb.TestHostDBBadResolvConf) ... ok
INFO 2015-10-06 19:15:03,153 - Environment prefix is /tmp/tsqa.env.ggrFKO
test_lookup_timeout (test_hostdb.TestHostDBFailedDNS) ... ok
INFO 2015-10-06 19:15:08,619 - Environment prefix is /tmp/tsqa.env.6FBD7x
Test basic fnctionality of hosts files ... ok
Test that changes to hosts file get loaded within host_file.interval ... ok
INFO 2015-10-06 19:15:18,118 - Environment prefix is /tmp/tsqa.env.Zn2trp
SKIP: 
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.Zn2trp
- >> end captured logging << -
Failure: SkipTest (Cannot import hyper, skipping tests for HTTP/2) ... SKIP: 
Cannot import hyper, skipping tests for HTTP/2
INFO 2015-10-06 19:15:18,204 - Environment prefix is /tmp/tsqa.env.eAJf0a
SKIP: Cannot find h2spec. skipping test.
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.eAJf0a
- >> end captured logging << -
INFO 2015-10-06 19:15:18,303 - Environment prefix is /tmp/tsqa.env.NU9uHN
test_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_rsa (test_https.TestECDSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
test_rsa (test_https.TestECDSA) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
INFO 2015-10-06 19:15:21,838 - Environment prefix is /tmp/tsqa.env.NztNz6
test_ecdsa (test_https.TestMix) ... ok
test_intermediate_ca_ecdsa (test_https.TestMix) ... ok
test_intermediate_ca_rsa (test_https.TestMix) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
test_rsa (test_https.TestMix) ... ok
We should be served the first match, since we aren't sending SNI headers ... ok
Make sure we get the certificate we asked for if we pass in SNI headers ... ok
INFO 2015-10-06 19:15:25,426 - Environment prefix is /tmp/tsqa.env.J2spdI
test_ecdsa (test_https.TestRSA) ... ok
test_intermediate_ca_ecdsa (test_https.TestRSA) ... ok
test_intermediate_ca_rsa (test_https.TestRSA) ... ok
We should

[jira] [Updated] (TS-3710) Crash in TLS with 6.0.0, related to the session cleanup additions

2015-10-06 Thread Susan Hinrichs (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Susan Hinrichs updated TS-3710:
---
Attachment: ts-3710-8-26-15.diff

ts-3710-8-26.diff contains the changes we have been running in production since 
8/26/2015.  We haven't seen this crash on machines running with this build.

This is very similar to the previous diffs.  One slight difference is that we 
are canceling the read before the close case as well as the other cases.

> Crash in TLS with 6.0.0, related to the session cleanup additions
> -
>
> Key: TS-3710
> URL: https://issues.apache.org/jira/browse/TS-3710
> Project: Traffic Server
>  Issue Type: Bug
>  Components: SSL
>Affects Versions: 5.3.0
>Reporter: Leif Hedstrom
>Assignee: Susan Hinrichs
>Priority: Critical
>  Labels: yahoo
> Fix For: 6.1.0
>
> Attachments: ts-3710-2.diff, ts-3710-8-26-15.diff, 
> ts-3710-final-2.diff, ts-3710.diff
>
>
> {code}
> ==9570==ERROR: AddressSanitizer: heap-use-after-free on address 
> 0x60649f48 at pc 0xb9f969 bp 0x2b8dbc348920 sp 0x2b8dbc348918
> READ of size 8 at 0x60649f48 thread T8 ([ET_NET 7])
> #0 0xb9f968 in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #1 0xb9f968 in read_signal_and_update 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:142
> #2 0xb9f968 in UnixNetVConnection::mainEvent(int, Event*) 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:1115
> #3 0xb7daf7 in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #4 0xb7daf7 in InactivityCop::check_inactivity(int, Event*) 
> /usr/local/src/trafficserver/iocore/net/UnixNet.cc:102
> #5 0xc21ffe in Continuation::handleEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/eventsystem/I_Continuation.h:145
> #6 0xc21ffe in EThread::process_event(Event*, int) 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:128
> #7 0xc241f7 in EThread::execute() 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:207
> #8 0xc20c18 in spawn_thread_internal 
> /usr/local/src/trafficserver/iocore/eventsystem/Thread.cc:85
> #9 0x2b8db3ff6df4 in start_thread (/lib64/libpthread.so.0+0x7df4)
> #10 0x2b8db585f1ac in __clone (/lib64/libc.so.6+0xf61ac)
> 0x60649f48 is located 8 bytes inside of 56-byte region 
> [0x60649f40,0x60649f78)
> freed by thread T8 ([ET_NET 7]) here:
> #0 0x2b8db1bf3117 in operator delete(void*) 
> ../../.././libsanitizer/asan/asan_new_delete.cc:81
> #1 0xb5b20e in SSLNextProtocolTrampoline::ioCompletionEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/net/SSLNextProtocolAccept.cc:89
> #2 0xbb2eef in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #3 0xbb2eef in read_signal_and_update 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:142
> #4 0xbb2eef in read_signal_done 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:203
> #5 0xbb2eef in UnixNetVConnection::readSignalDone(int, NetHandler*) 
> /usr/local/src/trafficserver/iocore/net/UnixNetVConnection.cc:957
> #6 0xb55d6d in SSLNetVConnection::net_read_io(NetHandler*, EThread*) 
> /usr/local/src/trafficserver/iocore/net/SSLNetVConnection.cc:480
> #7 0xb748fc in NetHandler::mainNetEvent(int, Event*) 
> /usr/local/src/trafficserver/iocore/net/UnixNet.cc:516
> #8 0xc24e89 in Continuation::handleEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/eventsystem/I_Continuation.h:145
> #9 0xc24e89 in EThread::process_event(Event*, int) 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:128
> #10 0xc24e89 in EThread::execute() 
> /usr/local/src/trafficserver/iocore/eventsystem/UnixEThread.cc:252
> #11 0xc20c18 in spawn_thread_internal 
> /usr/local/src/trafficserver/iocore/eventsystem/Thread.cc:85
> #12 0x2b8db3ff6df4 in start_thread (/lib64/libpthread.so.0+0x7df4)
> previously allocated by thread T8 ([ET_NET 7]) here:
> #0 0x2b8db1bf2c9f in operator new(unsigned long) 
> ../../.././libsanitizer/asan/asan_new_delete.cc:50
> #1 0xb59f8b in SSLNextProtocolAccept::mainEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/net/SSLNextProtocolAccept.cc:134
> #2 0xb888e9 in Continuation::handleEvent(int, void*) 
> ../../iocore/eventsystem/I_Continuation.h:145
> #3 0xb888e9 in NetAccept::acceptFastEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/net/UnixNetAccept.cc:466
> #4 0xc24e89 in Continuation::handleEvent(int, void*) 
> /usr/local/src/trafficserver/iocore/eventsystem/I_Continuation.h:145
> #5 0xc24e89 in EThread::process_event(Event*, int) 
> /usr/local/src/trafficserver/iocore/ev

[jira] [Comment Edited] (TS-3894) Missing NULL checks in HttpSM::handle_server_setup_error

2015-10-06 Thread Susan Hinrichs (JIRA)

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

Susan Hinrichs edited comment on TS-3894 at 10/6/15 7:06 PM:
-

We have been running with this change in production starting 9/4/2015.  Have 
not seen this crash since.

The original crash stack was:

{code}
gdb) bt
#0  0x005f5a45 in HttpSM::handle_server_setup_error 
(this=0x2bada4297f70, event=105, 
data=0x2bad410af588) at HttpSM.cc:5278
#1  0x005e98f9 in HttpSM::state_read_server_response_header 
(this=0x2bada4297f70, 
event=105, data=0x2bad410af588) at HttpSM.cc:1824
#2  0x005ec306 in HttpSM::main_handler (this=0x2bada4297f70, event=105, 
data=0x2bad410af588) at HttpSM.cc:2619
#3  0x00510de4 in Continuation::handleEvent (this=0x2bada4297f70, 
event=105, 
data=0x2bad410af588) at ../iocore/eventsystem/I_Continuation.h:145
#4  0x00778965 in read_signal_and_update (event=105, vc=0x2bad410af470)
at UnixNetVConnection.cc:148
#5  0x0077bfdb in UnixNetVConnection::mainEvent (this=0x2bad410af470, 
event=1, 
e=0x17c5c90) at UnixNetVConnection.cc:1171
#6  0x00510de4 in Continuation::handleEvent (this=0x2bad410af470, 
event=1, data=0x17c5c90)
at ../iocore/eventsystem/I_Continuation.h:145
#7  0x00772d47 in InactivityCop::check_inactivity (this=0x169b440, 
event=2, e=0x17c5c90)
at UnixNet.cc:107
#8  0x00510de4 in Continuation::handleEvent (this=0x169b440, event=2, 
data=0x17c5c90)
at ../iocore/eventsystem/I_Continuation.h:145
#9  0x007997ee in EThread::process_event (this=0x2baa860c4010, 
e=0x17c5c90, 
calling_code=2) at UnixEThread.cc:128
#10 0x00799b09 in EThread::execute (this=0x2baa860c4010) at 
UnixEThread.cc:207
#11 0x00798d99 in spawn_thread_internal (a=0x1691510) at Thread.cc:85
#12 0x2baa8491c9d1 in start_thread () from /lib64/libpthread.so.0
#13 0x0039522e88fd in clone () from /lib64/libc.so.6
{code}



was (Author: shinrich):
We have been running with this change in production starting 9/4/2015.  Have 
not seen this crash since.

> Missing NULL checks in HttpSM::handle_server_setup_error
> 
>
> Key: TS-3894
> URL: https://issues.apache.org/jira/browse/TS-3894
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP
>Reporter: Susan Hinrichs
>Assignee: Susan Hinrichs
> Fix For: 6.1.0
>
>
> In error cases, there may not be a consumer when expected.  Missing NULL 
> checks on the consumer variable c can result in crashes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-3894) Missing NULL checks in HttpSM::handle_server_setup_error

2015-10-06 Thread Susan Hinrichs (JIRA)

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

Susan Hinrichs commented on TS-3894:


We have been running with this change in production starting 9/4/2015.  Have 
not seen this crash since.

> Missing NULL checks in HttpSM::handle_server_setup_error
> 
>
> Key: TS-3894
> URL: https://issues.apache.org/jira/browse/TS-3894
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP
>Reporter: Susan Hinrichs
>Assignee: Susan Hinrichs
> Fix For: 6.1.0
>
>
> In error cases, there may not be a consumer when expected.  Missing NULL 
> checks on the consumer variable c can result in crashes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: clang-analyzer #1476

2015-10-06 Thread jenkins
See 

Changes:

[shinrich] TS-3957 - Core dump for SpdyClientSession::state_session_start

--
[...truncated 2385 lines...]
reading sources... [ 89%] 
sdk/http-hooks-and-transactions/intercepting-http-transactions.en
reading sources... [ 90%] sdk/http-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/append-transform-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-buffered-null-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-null-transformation-plugin.en
reading sources... [ 91%] sdk/index.en
reading sources... [ 91%] sdk/io-guide.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api/errors.en
reading sources... [ 92%] sdk/io-guide/guide-to-cache-api/example.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-remove.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-write.en
reading sources... [ 93%] sdk/io-guide/io-buffers.en
reading sources... [ 93%] sdk/io-guide/net-vconnections.en
reading sources... [ 93%] sdk/io-guide/transformations.en
reading sources... [ 93%] sdk/io-guide/vios.en
reading sources... [ 94%] sdk/misc-interface-guide.en
reading sources... [ 94%] sdk/misc-interface-guide/memory-allocation.en
reading sources... [ 94%] sdk/misc-interface-guide/thread-functions.en
reading sources... [ 95%] sdk/misc-interface-guide/tsfopen-family.en
reading sources... [ 95%] sdk/mutex-guide.en
reading sources... [ 95%] sdk/new-protocol-plugins.en
reading sources... [ 95%] sdk/plugin-configurations.en
reading sources... [ 96%] sdk/plugin-management.en
reading sources... [ 96%] sdk/plugin-management/guide-to-the-logging-api.en
reading sources... [ 96%] 
sdk/plugin-management/reading-trafficserver-settings-and-statistics.en
reading sources... [ 96%] sdk/preface.en
reading sources... [ 97%] sdk/preface/how-to-use-this-book.en
reading sources... [ 97%] sdk/preface/typographical-conventions.en
reading sources... [ 97%] sdk/remap-plugin.en
reading sources... [ 98%] sdk/remap-plugin/example-query-remap.en
reading sources... [ 98%] sdk/sample-source-code.en
reading sources... [ 98%] sdk/trafficserver-timers.en
reading sources... [ 98%] sdk/troubleshooting-tips.en
reading sources... [ 99%] sdk/troubleshooting-tips/debugging-memory-leaks.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-debug-tags.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-load-plugins.en
reading sources... [100%] sdk/troubleshooting-tips/using-a-debugger.en

:350:
 WARNING: malformed hyperlink target.
:26:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlGet, other 
instance in 

:45:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlSet, other 
instance in 

:2950:
 ERROR: Unknown interpreted text role "configfile".
:2955:
 ERROR: Unknown interpreted text role "configfile".
:63:
 WARNING: toctree contains reference to nonexisting document 
u'reference/plugins/Cache Promotion: provides additional control over when an 
object should be'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... TSAPI.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_VC_CLOSE_ABORT
None:None: WARNING: c:data reference target not found: TS_URL_SCHEME_FILE
None:None: WARNING: c:data reference target not found: TS_MIME_FIELD_ACCEPT
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/plugin.config
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/records.config
TSActionCancel.3ts { } TSActionDone.3ts { } TSCacheRead.3ts { } None:None: 
WARNING: c:data reference target not found: TS_EVENT_CACHE_OPEN_READ
None:None: WARNING: c:data reference target not found: 
TS_EVENT_CACHE_OPEN_READ_FAILED
TSCacheRemove

Build failed in Jenkins: tsqa-master #914

2015-10-06 Thread jenkins
See 

Changes:

[shinrich] TS-3957 - Core dump for SpdyClientSession::state_session_start

--
[...truncated 494 lines...]
Verify that we get 502s from origins that bind + listen ... ok
Verify that we get 504s from origins that return a partial_response ... ok
Verify that we get 502s from origins that reset_after_accept, once any bytes 
are sent to origin we assume we cannot re-dispatch ... ok
INFO 2015-10-06 18:48:34,214 - Environment prefix is /tmp/tsqa.env.M10W5p
test_log_field (test_custom_log.TestCustomLogField) ... ok
INFO 2015-10-06 18:50:17,771 - Environment prefix is /tmp/tsqa.env._jOxx_
test_default_404 (test_example.TestBootstrap) ... ok
Test that traffic_line works, and verify that the values for proxy.config ... ok
INFO 2015-10-06 18:50:47,956 - Starting build 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 18:51:42,152 - Build completed 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 18:51:42,219 - Environment prefix is /tmp/tsqa.env.Mio_qC
test_spdy (test_example.TestConfigureFlags) ... ok
INFO 2015-10-06 18:51:45,730 - Environment prefix is /tmp/tsqa.env.dl1Hoz
test_basic_proxy (test_example.TestDynamicHTTPEndpointCase) ... 127.0.0.1 - - 
[06/Oct/2015 18:51:48] "GET /test HTTP/1.1" 404 0
ok
INFO 2015-10-06 18:51:49,152 - Environment prefix is /tmp/tsqa.env.pOeERh
test_logs_exist (test_example.TestLogs) ... ok
SKIP: Skip the entire class
INFO 2015-10-06 18:52:02,666 - Environment prefix is /tmp/tsqa.env.pYdMHL
test_basic_intercept (test_example.TestServerIntercept) ... 127.0.0.1 - - 
[06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:05] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 18:52:06] "GET / HTTP/1.1" 200 5
ok
INFO 2015-10-06 18:52:06,186 - Environment prefix is /tmp/tsqa.env.vfmKBz
INFO 2015-10-06 18:52:06,189 - map / http://127.0.0.1:57051/
test_head_request_without_timout 
(test_headrequest.TestHeadRequestWithoutTimeout) ... INFO 2015-10-06 
18:52:09,419 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 18:52:09 GMT
Age: 0
Connection: close


INFO 2015-10-06 18:52:09,419 - head request with case(TE) costs 0.001972 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 18:52:09,420 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Content-Length: 123
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 18:52:09 GMT
Age: 0
Connection: close


INFO 2015-10-06 18:52:09,420 - head request with case(CL) costs 0.001123 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 18:52:09,421 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 18:52:09 GMT
Age: 0
Connection: close


INFO 2015-10-06 18:52:09,421 - head request with case() costs 0.000926 seconds 
while the timout is 5.00 seconds.
ok
INFO 2015-10-06 18:52:09,607 - Environment prefix is /tmp/tsqa.env.Gldwkf
test_working (test_hostdb.TestHostDBBadResolvConf) ... ok
INFO 2015-10-06 18:52:13,090 - Environment prefix is /tmp/tsqa.env.JDOf5l
test_lookup_timeout (test_hostdb.TestHostDBFailedDNS) ... ok
INFO 2015-10-06 18:52:18,549 - Environment prefix is /tmp/tsqa.env.zL_J_5
Test basic fnctionality of hosts files ... ok
Test that changes to hosts file get loaded within host_file.interval ... ok
INFO 2015-10-06 18:52:28,055 - Environment prefix is /tmp/tsqa.env.bvPbEz
SKIP: 
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.bvPbEz
- >> end captured logging << -
Failure: SkipTest (Cannot import hyper, skipping tests for HTTP/2) ... SKIP: 
Cannot import hyper, skipping tests for HTTP/2
INFO 2015-10-06 18:52:28,142 - Environment prefix is /tmp/tsqa.env.mwNLlr
SKIP: Cannot find h2spec. skipping test.
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.mwNLlr
- >> end captured logging << -
INFO 2015-10-06 18:52:28,246 - Environment prefix is /tmp/tsqa.env.jWZvdo
test_ecdsa (test_https.TestECDSA) ... ok
test_intermediate_ca_ecdsa (test_https.Test

[jira] [Resolved] (TS-3901) Leaking connections from HttpSessionManager

2015-10-06 Thread Susan Hinrichs (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Susan Hinrichs resolved TS-3901.

Resolution: Fixed

> Leaking connections from HttpSessionManager
> ---
>
> Key: TS-3901
> URL: https://issues.apache.org/jira/browse/TS-3901
> Project: Traffic Server
>  Issue Type: Bug
>  Components: HTTP
>Reporter: Susan Hinrichs
>Assignee: Susan Hinrichs
>  Labels: yahoo
> Fix For: 6.1.0
>
> Attachments: ts-3901.diff
>
>
> Observed in production.  Got the following warnings in diags.log
> "Connection leak from http keep-alive system"
> Our connections to origin would increase and the number of connections in 
> CLOSE_WAIT were enormous.
> I think the issue was when the origin URL was http with default port.  That 
> URL was remapped to https with default port.  The default port stored in 
> HttpServerSession->server_ip was not updated.  
> When the connection was closed or timed out of the session pool, it would be 
> looked up with port 443.   But the session was stored via the server_ip value 
> with port 80 and would never match.
> Relatively small change in HTTPHdr::_file_target_cache. 
> Running the fix in production to verify early results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (TS-3957) Core dump from SpdyClientSession::state_session_start

2015-10-06 Thread Susan Hinrichs (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Susan Hinrichs updated TS-3957:
---
Fix Version/s: 6.1.0

> Core dump from SpdyClientSession::state_session_start
> -
>
> Key: TS-3957
> URL: https://issues.apache.org/jira/browse/TS-3957
> Project: Traffic Server
>  Issue Type: Bug
>  Components: SPDY
>Reporter: Susan Hinrichs
>Assignee: Susan Hinrichs
>  Labels: yahoo
> Fix For: 6.1.0
>
>
> We see this in production on machines under swap, so the timings are very 
> distorted.
> {code}
> gdb) bt
> #0  0x in ?? ()
> #1  0x0064a5dc in SpdyClientSession::state_session_start 
> (this=0x2b234fbe8030)
> at SpdyClientSession.cc:211
> #2  0x00510e34 in Continuation::handleEvent (this=0x2b234fbe8030, 
> event=1, 
> data=0x2b23eda76630) at ../iocore/eventsystem/I_Continuation.h:145
> #3  0x0079a066 in EThread::process_event (this=0x2b21170a2010, 
> e=0x2b23eda76630, 
> calling_code=1) at UnixEThread.cc:128
> #4  0x0079a234 in EThread::execute (this=0x2b21170a2010) at 
> UnixEThread.cc:179
> #5  0x00799611 in spawn_thread_internal (a=0x12226a0) at Thread.cc:85
> #6  0x2b21153e19d1 in start_thread () from /lib64/libpthread.so.0
> #7  0x003827ee88fd in clone () from /lib64/libc.so.6
> {code}
> After poking around on the core some more [~amc] and I determined that the vc 
> referenced by the SpdyClientSession was a freed object (the vtable pointer 
> was swizzled out to be the freelist next pointer).
> We assume that the swapping is causing very odd event timing.  We replaced 
> the schedule_immediate with a direct call that that seemed to solve our crash 
> in production.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-3957) Core dump from SpdyClientSession::state_session_start

2015-10-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-3957:
-

Commit b975cb24b818102429c1849da04d31f8cb1cc9dc in trafficserver's branch 
refs/heads/master from shinrich
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=b975cb2 ]

TS-3957 - Core dump for SpdyClientSession::state_session_start


> Core dump from SpdyClientSession::state_session_start
> -
>
> Key: TS-3957
> URL: https://issues.apache.org/jira/browse/TS-3957
> Project: Traffic Server
>  Issue Type: Bug
>  Components: SPDY
>Reporter: Susan Hinrichs
>Assignee: Susan Hinrichs
>  Labels: yahoo
>
> We see this in production on machines under swap, so the timings are very 
> distorted.
> {code}
> gdb) bt
> #0  0x in ?? ()
> #1  0x0064a5dc in SpdyClientSession::state_session_start 
> (this=0x2b234fbe8030)
> at SpdyClientSession.cc:211
> #2  0x00510e34 in Continuation::handleEvent (this=0x2b234fbe8030, 
> event=1, 
> data=0x2b23eda76630) at ../iocore/eventsystem/I_Continuation.h:145
> #3  0x0079a066 in EThread::process_event (this=0x2b21170a2010, 
> e=0x2b23eda76630, 
> calling_code=1) at UnixEThread.cc:128
> #4  0x0079a234 in EThread::execute (this=0x2b21170a2010) at 
> UnixEThread.cc:179
> #5  0x00799611 in spawn_thread_internal (a=0x12226a0) at Thread.cc:85
> #6  0x2b21153e19d1 in start_thread () from /lib64/libpthread.so.0
> #7  0x003827ee88fd in clone () from /lib64/libc.so.6
> {code}
> After poking around on the core some more [~amc] and I determined that the vc 
> referenced by the SpdyClientSession was a freed object (the vtable pointer 
> was swizzled out to be the freelist next pointer).
> We assume that the swapping is causing very odd event timing.  We replaced 
> the schedule_immediate with a direct call that that seemed to solve our crash 
> in production.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-3957) Core dump from SpdyClientSession::state_session_start

2015-10-06 Thread Susan Hinrichs (JIRA)

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

Susan Hinrichs commented on TS-3957:


Our change was first partially put in production 9/4.  We haven't seen any more 
crashes like this on that build.  We have run into at least one resource storm 
that caused this problem originally.

> Core dump from SpdyClientSession::state_session_start
> -
>
> Key: TS-3957
> URL: https://issues.apache.org/jira/browse/TS-3957
> Project: Traffic Server
>  Issue Type: Bug
>  Components: SPDY
>Reporter: Susan Hinrichs
>Assignee: Susan Hinrichs
>  Labels: yahoo
>
> We see this in production on machines under swap, so the timings are very 
> distorted.
> {code}
> gdb) bt
> #0  0x in ?? ()
> #1  0x0064a5dc in SpdyClientSession::state_session_start 
> (this=0x2b234fbe8030)
> at SpdyClientSession.cc:211
> #2  0x00510e34 in Continuation::handleEvent (this=0x2b234fbe8030, 
> event=1, 
> data=0x2b23eda76630) at ../iocore/eventsystem/I_Continuation.h:145
> #3  0x0079a066 in EThread::process_event (this=0x2b21170a2010, 
> e=0x2b23eda76630, 
> calling_code=1) at UnixEThread.cc:128
> #4  0x0079a234 in EThread::execute (this=0x2b21170a2010) at 
> UnixEThread.cc:179
> #5  0x00799611 in spawn_thread_internal (a=0x12226a0) at Thread.cc:85
> #6  0x2b21153e19d1 in start_thread () from /lib64/libpthread.so.0
> #7  0x003827ee88fd in clone () from /lib64/libc.so.6
> {code}
> After poking around on the core some more [~amc] and I determined that the vc 
> referenced by the SpdyClientSession was a freed object (the vtable pointer 
> was swizzled out to be the freelist next pointer).
> We assume that the swapping is causing very odd event timing.  We replaced 
> the schedule_immediate with a direct call that that seemed to solve our crash 
> in production.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Jenkins build is back to normal : fedora_22-master » spdy,fedora_22,release #349

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_15_04-master » gcc,ubuntu_15_04,spdy #464

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_jessie-master » gcc,debian_jessie,release #993

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_8-master » gcc,debian_8,hardening #343

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_15_04-master » gcc,ubuntu_15_04,release #464

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_7-master » gcc,debian_7,hardening #1470

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : fedora_22-master » gcc,fedora_22,debug #349

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_8-master » gcc,debian_8,debug #343

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_jessie-master » gcc,debian_jessie,hardening #993

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : fedora_22-master » gcc,fedora_22,release #349

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_7-master » gcc,debian_7,debug #1470

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : fedora_22-master » spdy,fedora_22,debug #349

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_13_10-master » gcc,ubuntu_13_10,release #1457

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_15_04-master » clang,ubuntu_15_04,release #464

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_14_04-master » gcc,ubuntu_14_04,release #1477

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : fedora_21-master » gcc,fedora_21,release #909

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_12_04-master » gcc,ubuntu_12_04,release #1455

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_15_04-master » gcc,ubuntu_15_04,debug #464

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : centos_7-master » gcc,centos_7,release #1221

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : freebsd_10-master » clang,freebsd_10,release #465

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : centos_6-master » gcc,centos_6,release #1467

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_14_04-master » gcc,ubuntu_14_04,debug #1477

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : osx-master » clang,osx,release #437

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_8-master » gcc,debian_8,release #343

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_7-master » gcc,debian_7,release #1470

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : fedora_22-master » clang,fedora_22,release #349

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_15_04-master » clang,ubuntu_15_04,spdy #464

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : debian_jessie-master » gcc,debian_jessie,debug #993

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_13_10-master » gcc,ubuntu_13_10,debug #1457

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_15_04-master » clang,ubuntu_15_04,debug #464

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : centos_6-master » gcc,centos_6,debug #1467

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : centos_7-master » gcc,centos_7,debug #1221

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : fedora_22-master » clang,fedora_22,debug #349

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : ubuntu_12_04-master » gcc,ubuntu_12_04,debug #1455

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : fedora_21-master » gcc,fedora_21,debug #909

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : freebsd_10-master » clang,freebsd_10,debug #465

2015-10-06 Thread jenkins
See 




Jenkins build is back to normal : osx-master » clang,osx,debug #437

2015-10-06 Thread jenkins
See 




Build failed in Jenkins: osx-master » clang,osx,release #436

2015-10-06 Thread jenkins
See 


--
[...truncated 1463 lines...]
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in net
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_certlookup
  CXX  test_certlookup.o
  CXXLDtest_certlookup
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_certlookup
make[5]: Nothing to be done for `all'.

Testsuite summary for Apache Traffic Server 6.1.0

# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in aio
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_AIO
  CXX  test_AIO-test_AIO.o
  CXXLDtest_AIO
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_AIO.sample
make[5]: Nothing to be done for `all'.

Testsuite summary for Apache Traffic Server 6.1.0

# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in dns
make[2]: Nothing to be done for `check'.
Making check in hostdb
make[2]: Nothing to be done for `check'.
Making check in utils
make[2]: Nothing to be done for `check'.
Making check in cache
make[2]: Nothing to be done for `check'.
Making check in cluster
make[2]: Nothing to be done for `check'.
make[2]: Nothing to be done for `check-am'.
Making check in lib
Making check in ts
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_arena test_atomic 
test_freelist test_geometry test_List test_Map test_Regex test_Vec 
test_X509HostnameValidator
  CXX  test_arena.o
  CXXLDtest_arena
  CXX  test_atomic.o
  CXXLDtest_atomic
  CXX  test_freelist.o
  CXXLDtest_freelist
  CXX  test_geometry.o
  CXXLDtest_geometry
  CXX  test_List.o
  CXXLDtest_List
  CXX  test_Map.o
  CXXLDtest_Map
  CXX  test_Regex.o
  CXXLDtest_Regex
  CXX  test_Vec.o
  CXXLDtest_Vec
  CXX  test_X509HostnameValidator.o
  CXXLDtest_X509HostnameValidator
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_arena
PASS: test_atomic
PASS: test_freelist
PASS: test_geometry
PASS: test_List
PASS: test_Map
PASS: test_Regex
PASS: test_Vec
PASS: test_X509HostnameValidator
make[5]: Nothing to be done for `all'.

Testsuite summary for Apache Traffic Server 6.1.0

# TOTAL: 9
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in records
make[2]: Nothing to be done for `check'.
Making check in tsconfig
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-am
make[3]: Nothing to be done for `check-am'.
Making check in perl
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile-pl 
INSTALLDIRS= 
PREFIX=
 DESTDIR=
Making all in luajit
test -d "../lib/luajit/src" || cp -rf "../../lib/luajit" "../lib/"
cd luajit && /Applications/Xcode.app/Contents/Developer/usr/bin/make  
BUILDMODE="static" 
PREFIX="
 CC="clang" \
 CFLAGS="-std=gnu99 -g -pipe -Wall 
-Wno-deprecated-declarations -Qunused-arguments -O3 -fno-strict-aliasing -mcx16 
-Wno-parentheses-equality -Wno-tautological-compare -DLUA_COMPAT_ALL 
-DLUA_USE_POSIX -DLUA_USE_DLOPEN" LDFLAGS=""
 Building LuaJIT 2.0.4 
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
make[4]: Nothing to be done for `default'.
 Successfully built LuaJIT 2.0.4 
Making check in proxy/hdrs
make[1]: Nothing to be done for `check'.
Making check in proxy/shared
make[1]: Nothing to be done for `check'.
Making check in mgmt
Making check in cluster
make[2]: Nothing to be done for `check'.
Making check in utils
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_marshall
  CXX  test_marshall.o
  CXXLDtest_marshall
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_marshall
make[5]: Nothing to be done for `all'.

Tests

Build failed in Jenkins: osx-master » clang,osx,debug #436

2015-10-06 Thread jenkins
See 


--
[...truncated 1465 lines...]
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in net
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_certlookup
  CXX  test_certlookup.o
  CXXLDtest_certlookup
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_certlookup
make[5]: Nothing to be done for `all'.

Testsuite summary for Apache Traffic Server 6.1.0

# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in aio
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_AIO
  CXX  test_AIO-test_AIO.o
  CXXLDtest_AIO
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_AIO.sample
make[5]: Nothing to be done for `all'.

Testsuite summary for Apache Traffic Server 6.1.0

# TOTAL: 1
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in dns
make[2]: Nothing to be done for `check'.
Making check in hostdb
make[2]: Nothing to be done for `check'.
Making check in utils
make[2]: Nothing to be done for `check'.
Making check in cache
make[2]: Nothing to be done for `check'.
Making check in cluster
make[2]: Nothing to be done for `check'.
make[2]: Nothing to be done for `check-am'.
Making check in lib
Making check in ts
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_arena test_atomic 
test_freelist test_geometry test_List test_Map test_Regex test_Vec 
test_X509HostnameValidator
  CXX  test_arena.o
  CXXLDtest_arena
  CXX  test_atomic.o
  CXXLDtest_atomic
  CXX  test_freelist.o
  CXXLDtest_freelist
  CXX  test_geometry.o
  CXXLDtest_geometry
  CXX  test_List.o
  CXXLDtest_List
  CXX  test_Map.o
  CXXLDtest_Map
  CXX  test_Regex.o
  CXXLDtest_Regex
  CXX  test_Vec.o
  CXXLDtest_Vec
  CXX  test_X509HostnameValidator.o
  CXXLDtest_X509HostnameValidator
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_arena
PASS: test_atomic
PASS: test_freelist
PASS: test_geometry
PASS: test_List
PASS: test_Map
PASS: test_Regex
PASS: test_Vec
PASS: test_X509HostnameValidator
make[5]: Nothing to be done for `all'.

Testsuite summary for Apache Traffic Server 6.1.0

# TOTAL: 9
# PASS:  9
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0

Making check in records
make[2]: Nothing to be done for `check'.
Making check in tsconfig
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-am
make[3]: Nothing to be done for `check-am'.
Making check in perl
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile-pl 
INSTALLDIRS= 
PREFIX=
 DESTDIR=
Manifying blib/man3/Apache::TS::Config::Records.3pm
Manifying blib/man3/Apache::TS::AdminClient.3pm
Making all in luajit
test -d "../lib/luajit/src" || cp -rf "../../lib/luajit" "../lib/"
cd luajit && /Applications/Xcode.app/Contents/Developer/usr/bin/make  
BUILDMODE="static" 
PREFIX="
 CC="clang" \
 CFLAGS="-std=gnu99 -g -pipe -Wall 
-Wno-deprecated-declarations -Qunused-arguments -O3 -fno-strict-aliasing -mcx16 
-Wno-parentheses-equality -Wno-tautological-compare -DLUA_COMPAT_ALL 
-DLUA_USE_POSIX -DLUA_USE_DLOPEN" LDFLAGS=""
 Building LuaJIT 2.0.4 
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
make[4]: Nothing to be done for `default'.
 Successfully built LuaJIT 2.0.4 
Making check in proxy/hdrs
make[1]: Nothing to be done for `check'.
Making check in proxy/shared
make[1]: Nothing to be done for `check'.
Making check in mgmt
Making check in cluster
make[2]: Nothing to be done for `check'.
Making check in utils
/Applications/Xcode.app/Contents/Developer/usr/bin/make  test_marshall
  CXX  test_marshall.o
  CXXLDtest_marshall
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: test_marshall
make[5]: Nothing to be done for `all'.
==

[jira] [Commented] (TS-3072) Debug logging for a single connection in production traffic.

2015-10-06 Thread Susan Hinrichs (JIRA)

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

Susan Hinrichs commented on TS-3072:


Only ad hoc performance comparison so far.  I'll run a sequence of tests on the 
stress test box.

> Debug logging for a single connection in production traffic.
> 
>
> Key: TS-3072
> URL: https://issues.apache.org/jira/browse/TS-3072
> Project: Traffic Server
>  Issue Type: Improvement
>  Components: Core, Logging
>Affects Versions: 5.0.1
>Reporter: Sudheer Vinukonda
>  Labels: Yahoo
> Fix For: sometime
>
> Attachments: ts-3072.diff
>
>
> Presently, when there's a production issue (e.g. TS-3049, TS-2983 etc), it is 
> really hard to isolate/debug with the high traffic. Turning on debug logs in 
> traffic is unfortunately not an option due to performance impacts. Even if 
> you took a performance hit and turned on the logs, it is just as hard to 
> separate out the logs for a single connection/transaction among the millions 
> of the logs output in a short period of time.
> I think it would be good if there's a way to turn on debug logs in a 
> controlled manner in production environment. One simple option is to support 
> a config setting for example, with a client-ip, which when set, would turn on 
> debug logs for any connection made by just that one client. If needed, 
> instead of one client-ip, we may allow configuring up to 'n' (say, 5) 
> client-ips. 
> If there are other ideas, please comment.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: clang-analyzer #1475

2015-10-06 Thread jenkins
See 

Changes:

[briang] Resolve coverity #1325735, #1325734, #1325736

--
[...truncated 2385 lines...]
reading sources... [ 89%] 
sdk/http-hooks-and-transactions/intercepting-http-transactions.en
reading sources... [ 90%] sdk/http-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/append-transform-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-buffered-null-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-null-transformation-plugin.en
reading sources... [ 91%] sdk/index.en
reading sources... [ 91%] sdk/io-guide.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api/errors.en
reading sources... [ 92%] sdk/io-guide/guide-to-cache-api/example.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-remove.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-write.en
reading sources... [ 93%] sdk/io-guide/io-buffers.en
reading sources... [ 93%] sdk/io-guide/net-vconnections.en
reading sources... [ 93%] sdk/io-guide/transformations.en
reading sources... [ 93%] sdk/io-guide/vios.en
reading sources... [ 94%] sdk/misc-interface-guide.en
reading sources... [ 94%] sdk/misc-interface-guide/memory-allocation.en
reading sources... [ 94%] sdk/misc-interface-guide/thread-functions.en
reading sources... [ 95%] sdk/misc-interface-guide/tsfopen-family.en
reading sources... [ 95%] sdk/mutex-guide.en
reading sources... [ 95%] sdk/new-protocol-plugins.en
reading sources... [ 95%] sdk/plugin-configurations.en
reading sources... [ 96%] sdk/plugin-management.en
reading sources... [ 96%] sdk/plugin-management/guide-to-the-logging-api.en
reading sources... [ 96%] 
sdk/plugin-management/reading-trafficserver-settings-and-statistics.en
reading sources... [ 96%] sdk/preface.en
reading sources... [ 97%] sdk/preface/how-to-use-this-book.en
reading sources... [ 97%] sdk/preface/typographical-conventions.en
reading sources... [ 97%] sdk/remap-plugin.en
reading sources... [ 98%] sdk/remap-plugin/example-query-remap.en
reading sources... [ 98%] sdk/sample-source-code.en
reading sources... [ 98%] sdk/trafficserver-timers.en
reading sources... [ 98%] sdk/troubleshooting-tips.en
reading sources... [ 99%] sdk/troubleshooting-tips/debugging-memory-leaks.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-debug-tags.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-load-plugins.en
reading sources... [100%] sdk/troubleshooting-tips/using-a-debugger.en

:350:
 WARNING: malformed hyperlink target.
:26:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlGet, other 
instance in 

:45:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlSet, other 
instance in 

:2950:
 ERROR: Unknown interpreted text role "configfile".
:2955:
 ERROR: Unknown interpreted text role "configfile".
:63:
 WARNING: toctree contains reference to nonexisting document 
u'reference/plugins/Cache Promotion: provides additional control over when an 
object should be'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... TSAPI.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_VC_CLOSE_ABORT
None:None: WARNING: c:data reference target not found: TS_URL_SCHEME_FILE
None:None: WARNING: c:data reference target not found: TS_MIME_FIELD_ACCEPT
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/plugin.config
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/records.config
TSActionCancel.3ts { } TSActionDone.3ts { } TSCacheRead.3ts { } None:None: 
WARNING: c:data reference target not found: TS_EVENT_CACHE_OPEN_READ
None:None: WARNING: c:data reference target not found: 
TS_EVENT_CACHE_OPEN_READ_FAILED
TSCacheRemove.3ts { } None:None:

Jenkins build is back to normal : tsqa-master #913

2015-10-06 Thread jenkins
See 



Build failed in Jenkins: tsqa-master #912

2015-10-06 Thread jenkins
See 

Changes:

[briang] Resolve coverity #1325735, #1325734, #1325736

--
Started by upstream project "out_of_tree-master" build number 1226
originally caused by:
 Started by an SCM change
Building remotely on QA3 (qa) in workspace 

 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.origin.url 
 > https://git-wip-us.apache.org/repos/asf/trafficserver.git # timeout=10
Cleaning workspace
 > /usr/bin/git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > /usr/bin/git reset --hard # timeout=10
 > /usr/bin/git clean -fdx # timeout=10
Fetching upstream changes from 
https://git-wip-us.apache.org/repos/asf/trafficserver.git
 > /usr/bin/git --version # timeout=10
 > /usr/bin/git -c core.askpass=true fetch --tags --progress 
 > https://git-wip-us.apache.org/repos/asf/trafficserver.git 
 > +refs/heads/*:refs/remotes/origin/*
 > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # 
 > timeout=10
Checking out Revision e71350b4b9c8abc3a81432c203accca03ed172e1 
(refs/remotes/origin/master)
 > /usr/bin/git config core.sparsecheckout # timeout=10
 > /usr/bin/git checkout -f e71350b4b9c8abc3a81432c203accca03ed172e1
 > /usr/bin/git rev-list 61cbc5b95a2d0ebbb1247d10628115112eac8827 # timeout=10
[tsqa-master] $ /bin/bash -xe /tmp/hudson7546143400244702372.sh
+ source /home/jenkins/bin/environment.sh
++ export ATS_SRC_HOME=/home/jenkins/src
++ ATS_SRC_HOME=/home/jenkins/src
++ test tsqa-master '!=' tsqa-master
++ ATS_MAKE=make
++ test tsqa-master '!=' tsqa-master
++ export ATS_MAKE
+++ /bin/date +%m%d%Y
++ export TODAY=10062015
++ TODAY=10062015
++ ATS_BRANCH=master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ test tsqa-master '!=' tsqa-master
++ export ATS_BRANCH
++ test tsqa-master '!=' tsqa-master
+ source /home/jenkins/bin/tsqa.sh
++ TSQA_LAYOUT_DIR=
++ cd 
++ make test
New python executable in virtualenv/bin/python
Installing 
Setuptools..done.
Installing 
Pip.done.
make update
make[1]: Entering directory 
`
Downloading/unpacking 
https://github.com/apache/trafficserver-qa/archive/master.zip (from -r 
requirements.txt (line 4))
  Running setup.py egg_info for package from 
https://github.com/apache/trafficserver-qa/archive/master.zip

Downloading/unpacking pyyaml (from -r requirements.txt (line 5))
Cleaning up...
Exception:
Traceback (most recent call last):
  File 
"
 line 134, in main
status = self.run(options, args)
  File 
"
 line 236, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
bundle=self.bundle)
  File 
"
 line 1092, in prepare_files
self.unpack_url(url, location, self.is_download)
  File 
"
 line 1238, in unpack_url
retval = unpack_http_url(link, location, self.download_cache, 
self.download_dir)
  File 
"
 line 602, in unpack_http_url
resp = _get_response_from_url(target_url, link)
  File 
"

Build failed in Jenkins: clang-analyzer #1474

2015-10-06 Thread jenkins
See 

--
[...truncated 2380 lines...]
reading sources... [ 89%] 
sdk/http-hooks-and-transactions/intercepting-http-transactions.en
reading sources... [ 90%] sdk/http-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/append-transform-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-buffered-null-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-null-transformation-plugin.en
reading sources... [ 91%] sdk/index.en
reading sources... [ 91%] sdk/io-guide.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api/errors.en
reading sources... [ 92%] sdk/io-guide/guide-to-cache-api/example.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-remove.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-write.en
reading sources... [ 93%] sdk/io-guide/io-buffers.en
reading sources... [ 93%] sdk/io-guide/net-vconnections.en
reading sources... [ 93%] sdk/io-guide/transformations.en
reading sources... [ 93%] sdk/io-guide/vios.en
reading sources... [ 94%] sdk/misc-interface-guide.en
reading sources... [ 94%] sdk/misc-interface-guide/memory-allocation.en
reading sources... [ 94%] sdk/misc-interface-guide/thread-functions.en
reading sources... [ 95%] sdk/misc-interface-guide/tsfopen-family.en
reading sources... [ 95%] sdk/mutex-guide.en
reading sources... [ 95%] sdk/new-protocol-plugins.en
reading sources... [ 95%] sdk/plugin-configurations.en
reading sources... [ 96%] sdk/plugin-management.en
reading sources... [ 96%] sdk/plugin-management/guide-to-the-logging-api.en
reading sources... [ 96%] 
sdk/plugin-management/reading-trafficserver-settings-and-statistics.en
reading sources... [ 96%] sdk/preface.en
reading sources... [ 97%] sdk/preface/how-to-use-this-book.en
reading sources... [ 97%] sdk/preface/typographical-conventions.en
reading sources... [ 97%] sdk/remap-plugin.en
reading sources... [ 98%] sdk/remap-plugin/example-query-remap.en
reading sources... [ 98%] sdk/sample-source-code.en
reading sources... [ 98%] sdk/trafficserver-timers.en
reading sources... [ 98%] sdk/troubleshooting-tips.en
reading sources... [ 99%] sdk/troubleshooting-tips/debugging-memory-leaks.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-debug-tags.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-load-plugins.en
reading sources... [100%] sdk/troubleshooting-tips/using-a-debugger.en

:350:
 WARNING: malformed hyperlink target.
:26:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlGet, other 
instance in 

:45:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlSet, other 
instance in 

:2950:
 ERROR: Unknown interpreted text role "configfile".
:2955:
 ERROR: Unknown interpreted text role "configfile".
:63:
 WARNING: toctree contains reference to nonexisting document 
u'reference/plugins/Cache Promotion: provides additional control over when an 
object should be'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... TSAPI.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_VC_CLOSE_ABORT
None:None: WARNING: c:data reference target not found: TS_URL_SCHEME_FILE
None:None: WARNING: c:data reference target not found: TS_MIME_FIELD_ACCEPT
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/plugin.config
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/records.config
TSActionCancel.3ts { } TSActionDone.3ts { } TSCacheRead.3ts { } None:None: 
WARNING: c:data reference target not found: TS_EVENT_CACHE_OPEN_READ
None:None: WARNING: c:data reference target not found: 
TS_EVENT_CACHE_OPEN_READ_FAILED
TSCacheRemove.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_CACHE_REMOVE
None:

Build failed in Jenkins: clang-analyzer #1473

2015-10-06 Thread jenkins
See 

Changes:

[briang] TS-3956: clang format (sorry zwoop ;/)

--
[...truncated 2388 lines...]
reading sources... [ 89%] 
sdk/http-hooks-and-transactions/intercepting-http-transactions.en
reading sources... [ 90%] sdk/http-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/append-transform-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-buffered-null-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-null-transformation-plugin.en
reading sources... [ 91%] sdk/index.en
reading sources... [ 91%] sdk/io-guide.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api/errors.en
reading sources... [ 92%] sdk/io-guide/guide-to-cache-api/example.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-remove.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-write.en
reading sources... [ 93%] sdk/io-guide/io-buffers.en
reading sources... [ 93%] sdk/io-guide/net-vconnections.en
reading sources... [ 93%] sdk/io-guide/transformations.en
reading sources... [ 93%] sdk/io-guide/vios.en
reading sources... [ 94%] sdk/misc-interface-guide.en
reading sources... [ 94%] sdk/misc-interface-guide/memory-allocation.en
reading sources... [ 94%] sdk/misc-interface-guide/thread-functions.en
reading sources... [ 95%] sdk/misc-interface-guide/tsfopen-family.en
reading sources... [ 95%] sdk/mutex-guide.en
reading sources... [ 95%] sdk/new-protocol-plugins.en
reading sources... [ 95%] sdk/plugin-configurations.en
reading sources... [ 96%] sdk/plugin-management.en
reading sources... [ 96%] sdk/plugin-management/guide-to-the-logging-api.en
reading sources... [ 96%] 
sdk/plugin-management/reading-trafficserver-settings-and-statistics.en
reading sources... [ 96%] sdk/preface.en
reading sources... [ 97%] sdk/preface/how-to-use-this-book.en
reading sources... [ 97%] sdk/preface/typographical-conventions.en
reading sources... [ 97%] sdk/remap-plugin.en
reading sources... [ 98%] sdk/remap-plugin/example-query-remap.en
reading sources... [ 98%] sdk/sample-source-code.en
reading sources... [ 98%] sdk/trafficserver-timers.en
reading sources... [ 98%] sdk/troubleshooting-tips.en
reading sources... [ 99%] sdk/troubleshooting-tips/debugging-memory-leaks.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-debug-tags.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-load-plugins.en
reading sources... [100%] sdk/troubleshooting-tips/using-a-debugger.en

:350:
 WARNING: malformed hyperlink target.
:26:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlGet, other 
instance in 

:45:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlSet, other 
instance in 

:2950:
 ERROR: Unknown interpreted text role "configfile".
:2955:
 ERROR: Unknown interpreted text role "configfile".
:63:
 WARNING: toctree contains reference to nonexisting document 
u'reference/plugins/Cache Promotion: provides additional control over when an 
object should be'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... TSAPI.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_VC_CLOSE_ABORT
None:None: WARNING: c:data reference target not found: TS_URL_SCHEME_FILE
None:None: WARNING: c:data reference target not found: TS_MIME_FIELD_ACCEPT
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/plugin.config
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/records.config
TSActionCancel.3ts { } TSActionDone.3ts { } TSCacheRead.3ts { } None:None: 
WARNING: c:data reference target not found: TS_EVENT_CACHE_OPEN_READ
None:None: WARNING: c:data reference target not found: 
TS_EVENT_CACHE_OPEN_READ_FAILED
TSCacheRemove.3ts { } None:None: WARNIN

[jira] [Closed] (TS-3956) Header_rewrite applies strange logic with = operator and whitespace

2015-10-06 Thread Brian Geffon (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Geffon closed TS-3956.

Resolution: Fixed

> Header_rewrite applies strange logic with = operator and whitespace
> ---
>
> Key: TS-3956
> URL: https://issues.apache.org/jira/browse/TS-3956
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Plugins
>Reporter: Brian Geffon
>Assignee: Brian Geffon
> Fix For: 6.1.0
>
>
> It appears that whitespace causes weird behavior with header_rewrite, for 
> example:
> If you remove the white space before the = and the quotes it appears to 
> behave correctly. This whitespace issue is likely to cause strange bugs and 
> needs to be fixed.
> {code}
> cond %{READ_REQUEST_HDR_HOOK}
> cond %{CLIENT-HEADER:Host} /^localhost$/ [AND]
> cond %{CLIENT-HEADER:non_existent_header} = "shouldnt_exist_anyway" [AND]
> add-header X-HeaderRewriteApplied true
> {code}
> With the following request:
> {code}
> curl -v localhost/
> {code}
> Header_rewrite will incorrectly apply the rule:
> {code}
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Building 
> resources, hook=TS_HTTP_READ_REQUEST_HDR_HOOK
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)  Adding 
> TXN client request header buffers
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: Host, field_loc: 0x7fffd02070d0
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Appending HEADER(Host) to evaluation value -> localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Test 
> regular expression ^localhost$ : localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Successfully found regular expression match
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER(): localhost - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: non_existent_header, field_loc: (nil)
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER():  - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> OperatorAddHeader::exec() invoked on header X-HeaderRewriteApplied: true
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)
> Adding header X-HeaderRewriteApplied
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Jenkins build is back to normal : tsqa-master #911

2015-10-06 Thread jenkins
See 



[jira] [Updated] (TS-3956) Header_rewrite applies strange logic with = operator and whitespace

2015-10-06 Thread Brian Geffon (JIRA)

 [ 
https://issues.apache.org/jira/browse/TS-3956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Geffon updated TS-3956:
-
Fix Version/s: 6.1.0

> Header_rewrite applies strange logic with = operator and whitespace
> ---
>
> Key: TS-3956
> URL: https://issues.apache.org/jira/browse/TS-3956
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Plugins
>Reporter: Brian Geffon
>Assignee: Brian Geffon
> Fix For: 6.1.0
>
>
> It appears that whitespace causes weird behavior with header_rewrite, for 
> example:
> If you remove the white space before the = and the quotes it appears to 
> behave correctly. This whitespace issue is likely to cause strange bugs and 
> needs to be fixed.
> {code}
> cond %{READ_REQUEST_HDR_HOOK}
> cond %{CLIENT-HEADER:Host} /^localhost$/ [AND]
> cond %{CLIENT-HEADER:non_existent_header} = "shouldnt_exist_anyway" [AND]
> add-header X-HeaderRewriteApplied true
> {code}
> With the following request:
> {code}
> curl -v localhost/
> {code}
> Header_rewrite will incorrectly apply the rule:
> {code}
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Building 
> resources, hook=TS_HTTP_READ_REQUEST_HDR_HOOK
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)  Adding 
> TXN client request header buffers
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: Host, field_loc: 0x7fffd02070d0
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Appending HEADER(Host) to evaluation value -> localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Test 
> regular expression ^localhost$ : localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Successfully found regular expression match
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER(): localhost - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: non_existent_header, field_loc: (nil)
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER():  - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> OperatorAddHeader::exec() invoked on header X-HeaderRewriteApplied: true
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)
> Adding header X-HeaderRewriteApplied
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: clang-analyzer #1472

2015-10-06 Thread jenkins
See 

Changes:

[briang] TS-3956: Header_rewrite applies strange logic with = operator, this

[briang] TS-3956: Header_rewrite applies strange logic with = operator, remove 
%{} which breaks printf

--
[...truncated 2382 lines...]
reading sources... [ 89%] 
sdk/http-hooks-and-transactions/intercepting-http-transactions.en
reading sources... [ 90%] sdk/http-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/append-transform-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-buffered-null-transformation-plugin.en
reading sources... [ 90%] 
sdk/http-transformation-plugin/sample-null-transformation-plugin.en
reading sources... [ 91%] sdk/index.en
reading sources... [ 91%] sdk/io-guide.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api.en
reading sources... [ 91%] sdk/io-guide/guide-to-cache-api/errors.en
reading sources... [ 92%] sdk/io-guide/guide-to-cache-api/example.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-remove.en
reading sources... [ 92%] 
sdk/io-guide/guide-to-cache-api/how-to-do-a-cache-write.en
reading sources... [ 93%] sdk/io-guide/io-buffers.en
reading sources... [ 93%] sdk/io-guide/net-vconnections.en
reading sources... [ 93%] sdk/io-guide/transformations.en
reading sources... [ 93%] sdk/io-guide/vios.en
reading sources... [ 94%] sdk/misc-interface-guide.en
reading sources... [ 94%] sdk/misc-interface-guide/memory-allocation.en
reading sources... [ 94%] sdk/misc-interface-guide/thread-functions.en
reading sources... [ 95%] sdk/misc-interface-guide/tsfopen-family.en
reading sources... [ 95%] sdk/mutex-guide.en
reading sources... [ 95%] sdk/new-protocol-plugins.en
reading sources... [ 95%] sdk/plugin-configurations.en
reading sources... [ 96%] sdk/plugin-management.en
reading sources... [ 96%] sdk/plugin-management/guide-to-the-logging-api.en
reading sources... [ 96%] 
sdk/plugin-management/reading-trafficserver-settings-and-statistics.en
reading sources... [ 96%] sdk/preface.en
reading sources... [ 97%] sdk/preface/how-to-use-this-book.en
reading sources... [ 97%] sdk/preface/typographical-conventions.en
reading sources... [ 97%] sdk/remap-plugin.en
reading sources... [ 98%] sdk/remap-plugin/example-query-remap.en
reading sources... [ 98%] sdk/sample-source-code.en
reading sources... [ 98%] sdk/trafficserver-timers.en
reading sources... [ 98%] sdk/troubleshooting-tips.en
reading sources... [ 99%] sdk/troubleshooting-tips/debugging-memory-leaks.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-debug-tags.en
reading sources... [ 99%] sdk/troubleshooting-tips/unable-to-load-plugins.en
reading sources... [100%] sdk/troubleshooting-tips/using-a-debugger.en

:350:
 WARNING: malformed hyperlink target.
:26:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlGet, other 
instance in 

:45:
 WARNING: duplicate C object description of TSHttpTxnCacheLookupUrlSet, other 
instance in 

:2950:
 ERROR: Unknown interpreted text role "configfile".
:2955:
 ERROR: Unknown interpreted text role "configfile".
:63:
 WARNING: toctree contains reference to nonexisting document 
u'reference/plugins/Cache Promotion: provides additional control over when an 
object should be'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... TSAPI.3ts { } None:None: WARNING: c:data reference target not found: 
TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_EVENT_NONE
None:None: WARNING: c:data reference target not found: TS_VC_CLOSE_ABORT
None:None: WARNING: c:data reference target not found: TS_URL_SCHEME_FILE
None:None: WARNING: c:data reference target not found: TS_MIME_FIELD_ACCEPT
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/plugin.config
None:None: WARNING: u'file' reference target not found: 
{CONFIG_DIR}/records.config
TSActionCancel.3ts { } TSActionDone.3ts { } TSCacheRead.3ts { } None:None: 
WARNING: c:data reference target not found: TS_EVENT_CACHE_OPE

Jenkins build is back to normal : clang-format #332

2015-10-06 Thread jenkins
See 



Build failed in Jenkins: tsqa-master #910

2015-10-06 Thread jenkins
See 

--
[...truncated 479 lines...]
INFO 2015-10-06 07:30:42,625 - sending data back to the client
INFO 2015-10-06 07:30:44,626 - Client disconnected
INFO 2015-10-06 07:30:45,028 - sending data back to the client
INFO 2015-10-06 07:30:45,430 - sending data back to the client
INFO 2015-10-06 07:30:47,431 - Client disconnected
INFO 2015-10-06 07:30:49,434 - sending data back to the client
ok
INFO 2015-10-06 07:30:51,445 - Client disconnected
INFO 2015-10-06 07:30:51,635 - Environment prefix is /tmp/tsqa.env.WWLzYp
INFO 2015-10-06 07:30:53,440 - Client disconnected
Verify that we get 502s from an origin which just did a bind ... ok
Verify that we get 200s from origins that delayed_accept_after_connect ... ok
Verify that we get 504s from origins that die_on_connect ... ok
Verify that we get 502s from origins that bind + listen ... ok
Verify that we get 504s from origins that return a partial_response ... ok
Verify that we get 502s from origins that reset_after_accept, once any bytes 
are sent to origin we assume we cannot re-dispatch ... ok
INFO 2015-10-06 07:31:01,966 - Environment prefix is /tmp/tsqa.env.B9y0r1
test_log_field (test_custom_log.TestCustomLogField) ... FAIL
INFO 2015-10-06 07:31:15,505 - Environment prefix is /tmp/tsqa.env.23kks4
test_default_404 (test_example.TestBootstrap) ... ok
Test that traffic_line works, and verify that the values for proxy.config ... ok
INFO 2015-10-06 07:31:46,449 - Starting build 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 07:32:43,701 - Build completed 
(1b6c9541459e058351cd39ec55dcb772): configure {'enable-spdy': None, 
'enable-ccache': None, 'enable-experimental-plugins': None, 
'enable-example-plugins': None, 'enable-test-tools': None, 
'disable-dependency-tracking': None}
INFO 2015-10-06 07:32:43,761 - Environment prefix is /tmp/tsqa.env.xpKphZ
test_spdy (test_example.TestConfigureFlags) ... ok
INFO 2015-10-06 07:32:47,275 - Environment prefix is /tmp/tsqa.env.Q4XTxK
test_basic_proxy (test_example.TestDynamicHTTPEndpointCase) ... 127.0.0.1 - - 
[06/Oct/2015 07:32:50] "GET /test HTTP/1.1" 404 0
ok
INFO 2015-10-06 07:32:50,714 - Environment prefix is /tmp/tsqa.env.JbaeR_
test_logs_exist (test_example.TestLogs) ... ok
SKIP: Skip the entire class
INFO 2015-10-06 07:33:04,286 - Environment prefix is /tmp/tsqa.env.20ozxG
test_basic_intercept (test_example.TestServerIntercept) ... 127.0.0.1 - - 
[06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
127.0.0.1 - - [06/Oct/2015 07:33:07] "GET / HTTP/1.1" 200 5
ok
INFO 2015-10-06 07:33:07,772 - Environment prefix is /tmp/tsqa.env.avIsij
INFO 2015-10-06 07:33:07,775 - map / http://127.0.0.1:51328/
test_head_request_without_timout 
(test_headrequest.TestHeadRequestWithoutTimeout) ... INFO 2015-10-06 
07:33:11,002 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 07:33:11 GMT
Age: 0
Connection: close


INFO 2015-10-06 07:33:11,002 - head request with case(TE) costs 0.002277 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 07:33:11,003 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Content-Length: 123
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 07:33:11 GMT
Age: 0
Connection: close


INFO 2015-10-06 07:33:11,003 - head request with case(CL) costs 0.001095 
seconds while the timout is 5.00 seconds.
INFO 2015-10-06 07:33:11,004 - HTTP/1.1 200 OK
Server: ATS/6.1.0
Vary: Accept-Encoding
Date: Tue, 06 Oct 2015 07:33:11 GMT
Age: 0
Connection: close


INFO 2015-10-06 07:33:11,004 - head request with case() costs 0.001023 seconds 
while the timout is 5.00 seconds.
ok
INFO 2015-10-06 07:33:11,187 - Environment prefix is /tmp/tsqa.env.HkuKPU
test_working (test_hostdb.TestHostDBBadResolvConf) ... ok
INFO 2015-10-06 07:33:14,653 - Environment prefix is /tmp/tsqa.env.N3ISzq
test_lookup_timeout (test_hostdb.TestHostDBFailedDNS) ... ok
INFO 2015-10-06 07:33:20,099 - Environment prefix is /tmp/tsqa.env.MNwMK2
Test basic fnctionality of hosts files ... ok
Test that changes to hosts file get loaded within host_file.interval ... ok
INFO 2015-10-06 07:33:29,587 - Environment prefix is /tmp/tsqa.env.IV219_
SKIP: 
 >> begin captured logging << 
root: INFO: Environment prefix is /tmp/tsqa.env.IV219_
-

[jira] [Commented] (TS-3956) Header_rewrite applies strange logic with = operator and whitespace

2015-10-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-3956:
-

Commit 61cbc5b95a2d0ebbb1247d10628115112eac8827 in trafficserver's branch 
refs/heads/master from [~briang]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=61cbc5b ]

TS-3956: clang format (sorry zwoop ;/)


> Header_rewrite applies strange logic with = operator and whitespace
> ---
>
> Key: TS-3956
> URL: https://issues.apache.org/jira/browse/TS-3956
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Plugins
>Reporter: Brian Geffon
>Assignee: Brian Geffon
>
> It appears that whitespace causes weird behavior with header_rewrite, for 
> example:
> If you remove the white space before the = and the quotes it appears to 
> behave correctly. This whitespace issue is likely to cause strange bugs and 
> needs to be fixed.
> {code}
> cond %{READ_REQUEST_HDR_HOOK}
> cond %{CLIENT-HEADER:Host} /^localhost$/ [AND]
> cond %{CLIENT-HEADER:non_existent_header} = "shouldnt_exist_anyway" [AND]
> add-header X-HeaderRewriteApplied true
> {code}
> With the following request:
> {code}
> curl -v localhost/
> {code}
> Header_rewrite will incorrectly apply the rule:
> {code}
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Building 
> resources, hook=TS_HTTP_READ_REQUEST_HDR_HOOK
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)  Adding 
> TXN client request header buffers
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: Host, field_loc: 0x7fffd02070d0
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Appending HEADER(Host) to evaluation value -> localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Test 
> regular expression ^localhost$ : localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Successfully found regular expression match
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER(): localhost - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: non_existent_header, field_loc: (nil)
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER():  - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> OperatorAddHeader::exec() invoked on header X-HeaderRewriteApplied: true
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)
> Adding header X-HeaderRewriteApplied
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: clang-format #331

2015-10-06 Thread jenkins
See 

--
[...truncated 4380 lines...]
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/DynamicStats.h
src/proxy/DynamicStats.h
+ clang-format -i src/proxy/DynamicStats.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/StatSystem.cc
src/proxy/StatSystem.cc
+ clang-format -i src/proxy/StatSystem.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/StatPages.h
src/proxy/StatPages.h
+ clang-format -i src/proxy/StatPages.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/CacheControl.cc
src/proxy/CacheControl.cc
+ clang-format -i src/proxy/CacheControl.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/ICP.cc
src/proxy/ICP.cc
+ clang-format -i src/proxy/ICP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/ControlBase.h
src/proxy/ControlBase.h
+ clang-format -i src/proxy/ControlBase.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.cc
src/proxy/hdrs/URL.cc
+ clang-format -i src/proxy/hdrs/URL.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.h
src/proxy/hdrs/MIME.h
+ clang-format -i src/proxy/hdrs/MIME.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.h
src/proxy/hdrs/HdrTest.h
+ clang-format -i src/proxy/hdrs/HdrTest.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.cc
src/proxy/hdrs/HdrTest.cc
+ clang-format -i src/proxy/hdrs/HdrTest.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.cc
src/proxy/hdrs/HTTP.cc
+ clang-format -i src/proxy/hdrs/HTTP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HttpCompat.cc
src/proxy/hdrs/HttpCompat.cc
+ clang-format -i src/proxy/hdrs/HttpCompat.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.h
src/proxy/hdrs/HdrUtils.h
+ clang-format -i src/proxy/hdrs/HdrUtils.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.cc
src/proxy/hdrs/HdrUtils.cc
+ clang-format -i src/proxy/hdrs/HdrUtils.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.cc
src/proxy/hdrs/HdrToken.cc
+ clang-format -i src/proxy/hdrs/HdrToken.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTSOnly.cc
src/proxy/hdrs/HdrTSOnly.cc
+ clang-format -i src/proxy/hdrs/HdrTSOnly.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.cc
src/proxy/hdrs/HdrHeap.cc
+ clang-format -i src/proxy/hdrs/HdrHeap.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/test_urlhash.cc
src/proxy/hdrs/test_urlhash.cc
+ clang-format -i src/proxy/hdrs/test_urlhash.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.h
src/proxy/hdrs/HTTP.h
+ clang-format -i src/proxy/hdrs/HTTP.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/load_http_hdr.cc
src/proxy/hdrs/load_http_hdr.cc
+ clang-format -i src/proxy/hdrs/load_http_hdr.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.h
src/proxy/hdrs/URL.h
+ clang-format -i src/proxy/hdrs/URL.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.cc
src/proxy/hdrs/MIME.cc
+ clang-format -i src/proxy/hdrs/MIME.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.h
src/proxy/hdrs/HdrHeap.h
+ clang-format -i src/proxy/hdrs/HdrHeap.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.h
src/proxy/hdrs/HdrToken.h
+ clang-format -i src/proxy/hdrs/HdrToken.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/test_header.cc
src

Build failed in Jenkins: clang-format #330

2015-10-06 Thread jenkins
See 

Changes:

[briang] TS-3956: Header_rewrite applies strange logic with = operator, remove 
%{} which breaks printf

--
[...truncated 4380 lines...]
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/DynamicStats.h
src/proxy/DynamicStats.h
+ clang-format -i src/proxy/DynamicStats.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/StatSystem.cc
src/proxy/StatSystem.cc
+ clang-format -i src/proxy/StatSystem.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/StatPages.h
src/proxy/StatPages.h
+ clang-format -i src/proxy/StatPages.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/CacheControl.cc
src/proxy/CacheControl.cc
+ clang-format -i src/proxy/CacheControl.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/ICP.cc
src/proxy/ICP.cc
+ clang-format -i src/proxy/ICP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/ControlBase.h
src/proxy/ControlBase.h
+ clang-format -i src/proxy/ControlBase.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.cc
src/proxy/hdrs/URL.cc
+ clang-format -i src/proxy/hdrs/URL.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.h
src/proxy/hdrs/MIME.h
+ clang-format -i src/proxy/hdrs/MIME.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.h
src/proxy/hdrs/HdrTest.h
+ clang-format -i src/proxy/hdrs/HdrTest.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.cc
src/proxy/hdrs/HdrTest.cc
+ clang-format -i src/proxy/hdrs/HdrTest.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.cc
src/proxy/hdrs/HTTP.cc
+ clang-format -i src/proxy/hdrs/HTTP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HttpCompat.cc
src/proxy/hdrs/HttpCompat.cc
+ clang-format -i src/proxy/hdrs/HttpCompat.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.h
src/proxy/hdrs/HdrUtils.h
+ clang-format -i src/proxy/hdrs/HdrUtils.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.cc
src/proxy/hdrs/HdrUtils.cc
+ clang-format -i src/proxy/hdrs/HdrUtils.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.cc
src/proxy/hdrs/HdrToken.cc
+ clang-format -i src/proxy/hdrs/HdrToken.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTSOnly.cc
src/proxy/hdrs/HdrTSOnly.cc
+ clang-format -i src/proxy/hdrs/HdrTSOnly.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.cc
src/proxy/hdrs/HdrHeap.cc
+ clang-format -i src/proxy/hdrs/HdrHeap.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/test_urlhash.cc
src/proxy/hdrs/test_urlhash.cc
+ clang-format -i src/proxy/hdrs/test_urlhash.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.h
src/proxy/hdrs/HTTP.h
+ clang-format -i src/proxy/hdrs/HTTP.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/load_http_hdr.cc
src/proxy/hdrs/load_http_hdr.cc
+ clang-format -i src/proxy/hdrs/load_http_hdr.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.h
src/proxy/hdrs/URL.h
+ clang-format -i src/proxy/hdrs/URL.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.cc
src/proxy/hdrs/MIME.cc
+ clang-format -i src/proxy/hdrs/MIME.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.h
src/proxy/hdrs/HdrHeap.h
+ clang-format -i src/proxy/hdrs/HdrHeap.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.h
src/proxy/hdrs/HdrToken.h
+ clang-format -i src/proxy/hdrs/HdrToken.h
+ for f in '`fi

Jenkins build is back to normal : in_tree-master #1444

2015-10-06 Thread jenkins
See 



Jenkins build is back to normal : out_of_tree-master #1224

2015-10-06 Thread jenkins
See 



[jira] [Commented] (TS-3956) Header_rewrite applies strange logic with = operator and whitespace

2015-10-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-3956:
-

Commit 147b9668eea55354b063ba6f77b48b34b65247c9 in trafficserver's branch 
refs/heads/master from [~briang]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=147b966 ]

TS-3956: Header_rewrite applies strange logic with = operator, remove %{} which 
breaks printf


> Header_rewrite applies strange logic with = operator and whitespace
> ---
>
> Key: TS-3956
> URL: https://issues.apache.org/jira/browse/TS-3956
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Plugins
>Reporter: Brian Geffon
>Assignee: Brian Geffon
>
> It appears that whitespace causes weird behavior with header_rewrite, for 
> example:
> If you remove the white space before the = and the quotes it appears to 
> behave correctly. This whitespace issue is likely to cause strange bugs and 
> needs to be fixed.
> {code}
> cond %{READ_REQUEST_HDR_HOOK}
> cond %{CLIENT-HEADER:Host} /^localhost$/ [AND]
> cond %{CLIENT-HEADER:non_existent_header} = "shouldnt_exist_anyway" [AND]
> add-header X-HeaderRewriteApplied true
> {code}
> With the following request:
> {code}
> curl -v localhost/
> {code}
> Header_rewrite will incorrectly apply the rule:
> {code}
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Building 
> resources, hook=TS_HTTP_READ_REQUEST_HDR_HOOK
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)  Adding 
> TXN client request header buffers
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: Host, field_loc: 0x7fffd02070d0
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Appending HEADER(Host) to evaluation value -> localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Test 
> regular expression ^localhost$ : localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Successfully found regular expression match
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER(): localhost - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: non_existent_header, field_loc: (nil)
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER():  - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> OperatorAddHeader::exec() invoked on header X-HeaderRewriteApplied: true
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)
> Adding header X-HeaderRewriteApplied
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


Build failed in Jenkins: clang-format #329

2015-10-06 Thread jenkins
See 

Changes:

[briang] TS-3956: Header_rewrite applies strange logic with = operator, this

--
[...truncated 4383 lines...]
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/DynamicStats.h
src/proxy/DynamicStats.h
+ clang-format -i src/proxy/DynamicStats.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/StatSystem.cc
src/proxy/StatSystem.cc
+ clang-format -i src/proxy/StatSystem.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/StatPages.h
src/proxy/StatPages.h
+ clang-format -i src/proxy/StatPages.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/CacheControl.cc
src/proxy/CacheControl.cc
+ clang-format -i src/proxy/CacheControl.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/ICP.cc
src/proxy/ICP.cc
+ clang-format -i src/proxy/ICP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/ControlBase.h
src/proxy/ControlBase.h
+ clang-format -i src/proxy/ControlBase.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.cc
src/proxy/hdrs/URL.cc
+ clang-format -i src/proxy/hdrs/URL.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.h
src/proxy/hdrs/MIME.h
+ clang-format -i src/proxy/hdrs/MIME.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.h
src/proxy/hdrs/HdrTest.h
+ clang-format -i src/proxy/hdrs/HdrTest.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTest.cc
src/proxy/hdrs/HdrTest.cc
+ clang-format -i src/proxy/hdrs/HdrTest.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.cc
src/proxy/hdrs/HTTP.cc
+ clang-format -i src/proxy/hdrs/HTTP.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HttpCompat.cc
src/proxy/hdrs/HttpCompat.cc
+ clang-format -i src/proxy/hdrs/HttpCompat.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.h
src/proxy/hdrs/HdrUtils.h
+ clang-format -i src/proxy/hdrs/HdrUtils.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrUtils.cc
src/proxy/hdrs/HdrUtils.cc
+ clang-format -i src/proxy/hdrs/HdrUtils.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.cc
src/proxy/hdrs/HdrToken.cc
+ clang-format -i src/proxy/hdrs/HdrToken.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrTSOnly.cc
src/proxy/hdrs/HdrTSOnly.cc
+ clang-format -i src/proxy/hdrs/HdrTSOnly.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.cc
src/proxy/hdrs/HdrHeap.cc
+ clang-format -i src/proxy/hdrs/HdrHeap.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/test_urlhash.cc
src/proxy/hdrs/test_urlhash.cc
+ clang-format -i src/proxy/hdrs/test_urlhash.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HTTP.h
src/proxy/hdrs/HTTP.h
+ clang-format -i src/proxy/hdrs/HTTP.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/load_http_hdr.cc
src/proxy/hdrs/load_http_hdr.cc
+ clang-format -i src/proxy/hdrs/load_http_hdr.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/URL.h
src/proxy/hdrs/URL.h
+ clang-format -i src/proxy/hdrs/URL.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/MIME.cc
src/proxy/hdrs/MIME.cc
+ clang-format -i src/proxy/hdrs/MIME.cc
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrHeap.h
src/proxy/hdrs/HdrHeap.h
+ clang-format -i src/proxy/hdrs/HdrHeap.h
+ for f in '`find src -iname \*.[ch] -o -iname \*.cc | fgrep -v -e lib/luajit 
-e lib/tsconfig`'
+ echo src/proxy/hdrs/HdrToken.h
src/proxy/hdrs/HdrToken.h
+ clang-format -i src/proxy/hdrs/HdrToken.h
+ for f in '`find src -iname \*.[ch] -o -i

Build failed in Jenkins: out_of_tree-master #1223

2015-10-06 Thread jenkins
See 

Changes:

[briang] TS-3956: Header_rewrite applies strange logic with = operator, this

--
[...truncated 2046 lines...]
Making all in cmd
make[1]: Entering directory 
`
Making all in traffic_cop
make[2]: Entering directory 
`
depbase=`echo traffic_cop.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../../cmd/traffic_cop -I../../lib  
-I../../../iocore/eventsystem -I../../../iocore/net -I../../../iocore/aio 
-I../../../iocore/hostdb -I../../../iocore/cache -I../../../iocore/cluster 
-I../../../iocore/utils -I../../../iocore/dns -I../../../lib 
-I../../../lib/records -I../../../mgmt -I../../../mgmt/cluster 
-I../../../mgmt/api/include -Dlinux -D_LARGEFILE64_SOURCE=1 
-D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -D__STDC_LIMIT_MACROS=1 
-D__STDC_FORMAT_MACROS=1 -DOPENSSL_NO_SSL_INTERN -I/usr/include/libxml2  
-std=c++11 -g -pipe -Wall -O3 -feliminate-unused-debug-symbols 
-fno-strict-aliasing -Werror -Wno-invalid-offsetof -mcx16 -MT traffic_cop.o -MD 
-MP -MF $depbase.Tpo -c -o traffic_cop.o 
../../../cmd/traffic_cop/traffic_cop.cc &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../../libtool  --tag=CXX   --mode=link ccache c++  -std=c++11 -g -pipe 
-Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -rdynamic   -o traffic_cop traffic_cop.o 
../../mgmt/libmgmt_c.la ../../mgmt/api/libtsmgmt.la ../../lib/ts/libtsutil.la 
../../lib/records/librecords_cop.a -lresolv -lcap -lpcre -llzma -lz -lcrypt 
-lpthread -ldl  -lxml2
libtool: link: ccache c++ -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -rdynamic -o .libs/traffic_cop traffic_cop.o  
../../mgmt/.libs/libmgmt_c.a ../../mgmt/api/.libs/libtsmgmt.so -L/usr/lib64 

 ../../lib/ts/.libs/libtsutil.so -lhwloc -lssl -lcrypto -ltcl8.5 
../../lib/records/librecords_cop.a -lresolv -lcap -lpcre -llzma -lz -lcrypt 
-lpthread -ldl -lxml2 -Wl,-rpath -Wl,/usr/local/lib
make[2]: Leaving directory 
`
Making all in traffic_ctl
make[2]: Entering directory 
`
depbase=`echo alarm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../../cmd/traffic_ctl -I../../lib  
-I../../../iocore/eventsystem -I../../../iocore/net -I../../../iocore/aio 
-I../../../iocore/hostdb -I../../../iocore/cache -I../../../iocore/cluster 
-I../../../iocore/utils -I../../../iocore/dns -I../../../lib 
-I../../../lib/records -I../../../mgmt/api/include -Dlinux 
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -DOPENSSL_NO_SSL_INTERN 
-I/usr/include/libxml2  -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -MT alarm.o -MD -MP -MF $depbase.Tpo -c -o alarm.o 
../../../cmd/traffic_ctl/alarm.cc &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo config.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../../cmd/traffic_ctl -I../../lib  
-I../../../iocore/eventsystem -I../../../iocore/net -I../../../iocore/aio 
-I../../../iocore/hostdb -I../../../iocore/cache -I../../../iocore/cluster 
-I../../../iocore/utils -I../../../iocore/dns -I../../../lib 
-I../../../lib/records -I../../../mgmt/api/include -Dlinux 
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -DOPENSSL_NO_SSL_INTERN 
-I/usr/include/libxml2  -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -MT config.o -MD -MP -MF $depbase.Tpo -c -o 
config.o ../../../cmd/traffic_ctl/config.cc &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo metric.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../../cmd/traffic_ctl -I../../lib  
-I../../../iocore/eventsystem -I../../../iocore/net -I../../../iocore/aio 
-I../../../iocore/hostdb -I../../../iocore/cache -I../../../iocore/cluster 
-I../../../iocore/utils -I../../../iocore/dns -I../../../lib 
-I../../../lib/records -I../../../mgmt/api/include -Dlinux 
-D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT 
-D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 -DOPENSSL_NO_SSL_INTERN 
-I/usr/include/libxml2  -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx1

Build failed in Jenkins: in_tree-master #1443

2015-10-06 Thread jenkins
See 

Changes:

[briang] TS-3956: Header_rewrite applies strange logic with = operator, this

--
[...truncated 2455 lines...]
Making all in cmd
make[1]: Entering directory 
`
Making all in traffic_cop
make[2]: Entering directory 
`
depbase=`echo traffic_cop.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../lib  -I../../iocore/eventsystem 
-I../../iocore/net -I../../iocore/aio -I../../iocore/hostdb 
-I../../iocore/cache -I../../iocore/cluster -I../../iocore/utils 
-I../../iocore/dns -I../../lib -I../../lib/records -I../../mgmt 
-I../../mgmt/cluster -I../../mgmt/api/include -Dlinux -D_LARGEFILE64_SOURCE=1 
-D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE -D_REENTRANT -D__STDC_LIMIT_MACROS=1 
-D__STDC_FORMAT_MACROS=1 -DOPENSSL_NO_SSL_INTERN -I/usr/include/libxml2  
-std=c++11 -g -pipe -Wall -O3 -feliminate-unused-debug-symbols 
-fno-strict-aliasing -Werror -Wno-invalid-offsetof -mcx16 -MT traffic_cop.o -MD 
-MP -MF $depbase.Tpo -c -o traffic_cop.o traffic_cop.cc &&\
mv -f $depbase.Tpo $depbase.Po
/bin/sh ../../libtool  --tag=CXX   --mode=link ccache c++  -std=c++11 -g -pipe 
-Wall -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -rdynamic   -o traffic_cop traffic_cop.o 
../../mgmt/libmgmt_c.la ../../mgmt/api/libtsmgmt.la ../../lib/ts/libtsutil.la 
../../lib/records/librecords_cop.a -lresolv -lcap -lpcre -llzma -lz -lcrypt 
-lpthread -ldl  -lxml2
libtool: link: ccache c++ -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -rdynamic -o .libs/traffic_cop traffic_cop.o  
../../mgmt/.libs/libmgmt_c.a ../../mgmt/api/.libs/libtsmgmt.so -L/usr/lib64 

 ../../lib/ts/.libs/libtsutil.so -lhwloc -lssl -lcrypto -ltcl8.5 
../../lib/records/librecords_cop.a -lresolv -lcap -lpcre -llzma -lz -lcrypt 
-lpthread -ldl -lxml2 -Wl,-rpath -Wl,/usr/local/lib
make[2]: Leaving directory 
`
Making all in traffic_ctl
make[2]: Entering directory 
`
depbase=`echo alarm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../lib  -I../../iocore/eventsystem 
-I../../iocore/net -I../../iocore/aio -I../../iocore/hostdb 
-I../../iocore/cache -I../../iocore/cluster -I../../iocore/utils 
-I../../iocore/dns -I../../lib -I../../lib/records -I../../mgmt/api/include 
-Dlinux -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE 
-D_REENTRANT -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 
-DOPENSSL_NO_SSL_INTERN -I/usr/include/libxml2  -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -MT alarm.o -MD -MP -MF $depbase.Tpo -c -o alarm.o 
alarm.cc &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo config.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../lib  -I../../iocore/eventsystem 
-I../../iocore/net -I../../iocore/aio -I../../iocore/hostdb 
-I../../iocore/cache -I../../iocore/cluster -I../../iocore/utils 
-I../../iocore/dns -I../../lib -I../../lib/records -I../../mgmt/api/include 
-Dlinux -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE 
-D_REENTRANT -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 
-DOPENSSL_NO_SSL_INTERN -I/usr/include/libxml2  -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -MT config.o -MD -MP -MF $depbase.Tpo -c -o 
config.o config.cc &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo metric.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../lib  -I../../iocore/eventsystem 
-I../../iocore/net -I../../iocore/aio -I../../iocore/hostdb 
-I../../iocore/cache -I../../iocore/cluster -I../../iocore/utils 
-I../../iocore/dns -I../../lib -I../../lib/records -I../../mgmt/api/include 
-Dlinux -D_LARGEFILE64_SOURCE=1 -D_COMPILE64BIT_SOURCE=1 -D_GNU_SOURCE 
-D_REENTRANT -D__STDC_LIMIT_MACROS=1 -D__STDC_FORMAT_MACROS=1 
-DOPENSSL_NO_SSL_INTERN -I/usr/include/libxml2  -std=c++11 -g -pipe -Wall -O3 
-feliminate-unused-debug-symbols -fno-strict-aliasing -Werror 
-Wno-invalid-offsetof -mcx16 -MT metric.o -MD -MP -MF $depbase.Tpo -c -o 
metric.o metric.cc &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo server.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
ccache c++ -DHAVE_CONFIG_H -I. -I../../lib  -I../../iocore/eventsystem 
-I../../iocore/net -I../../iocore/aio -I../../iocore/hostdb 
-I../../iocore/cache -I../../iocore/cluster -I../../iocore/utils 
-I../../iocore/dns -I../

[jira] [Commented] (TS-3956) Header_rewrite applies strange logic with = operator and whitespace

2015-10-06 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on TS-3956:
-

Commit 8c148c9e885ea28ead4d46f49350256602b84d82 in trafficserver's branch 
refs/heads/master from [~briang]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=8c148c9 ]

TS-3956: Header_rewrite applies strange logic with = operator, this
closes #300


> Header_rewrite applies strange logic with = operator and whitespace
> ---
>
> Key: TS-3956
> URL: https://issues.apache.org/jira/browse/TS-3956
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Plugins
>Reporter: Brian Geffon
>Assignee: Brian Geffon
>
> It appears that whitespace causes weird behavior with header_rewrite, for 
> example:
> If you remove the white space before the = and the quotes it appears to 
> behave correctly. This whitespace issue is likely to cause strange bugs and 
> needs to be fixed.
> {code}
> cond %{READ_REQUEST_HDR_HOOK}
> cond %{CLIENT-HEADER:Host} /^localhost$/ [AND]
> cond %{CLIENT-HEADER:non_existent_header} = "shouldnt_exist_anyway" [AND]
> add-header X-HeaderRewriteApplied true
> {code}
> With the following request:
> {code}
> curl -v localhost/
> {code}
> Header_rewrite will incorrectly apply the rule:
> {code}
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Building 
> resources, hook=TS_HTTP_READ_REQUEST_HDR_HOOK
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)  Adding 
> TXN client request header buffers
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: Host, field_loc: 0x7fffd02070d0
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Appending HEADER(Host) to evaluation value -> localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Test 
> regular expression ^localhost$ : localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Successfully found regular expression match
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER(): localhost - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: non_existent_header, field_loc: (nil)
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER():  - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> OperatorAddHeader::exec() invoked on header X-HeaderRewriteApplied: true
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)
> Adding header X-HeaderRewriteApplied
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-3956) Header_rewrite applies strange logic with = operator and whitespace

2015-10-06 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on TS-3956:


Github user asfgit closed the pull request at:

https://github.com/apache/trafficserver/pull/300


> Header_rewrite applies strange logic with = operator and whitespace
> ---
>
> Key: TS-3956
> URL: https://issues.apache.org/jira/browse/TS-3956
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Plugins
>Reporter: Brian Geffon
>Assignee: Brian Geffon
>
> It appears that whitespace causes weird behavior with header_rewrite, for 
> example:
> If you remove the white space before the = and the quotes it appears to 
> behave correctly. This whitespace issue is likely to cause strange bugs and 
> needs to be fixed.
> {code}
> cond %{READ_REQUEST_HDR_HOOK}
> cond %{CLIENT-HEADER:Host} /^localhost$/ [AND]
> cond %{CLIENT-HEADER:non_existent_header} = "shouldnt_exist_anyway" [AND]
> add-header X-HeaderRewriteApplied true
> {code}
> With the following request:
> {code}
> curl -v localhost/
> {code}
> Header_rewrite will incorrectly apply the rule:
> {code}
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Building 
> resources, hook=TS_HTTP_READ_REQUEST_HDR_HOOK
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)  Adding 
> TXN client request header buffers
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: Host, field_loc: 0x7fffd02070d0
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Appending HEADER(Host) to evaluation value -> localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Test 
> regular expression ^localhost$ : localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Successfully found regular expression match
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER(): localhost - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: non_existent_header, field_loc: (nil)
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER():  - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> OperatorAddHeader::exec() invoked on header X-HeaderRewriteApplied: true
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)
> Adding header X-HeaderRewriteApplied
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (TS-3956) Header_rewrite applies strange logic with = operator and whitespace

2015-10-06 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on TS-3956:


Github user bgaff commented on the pull request:

https://github.com/apache/trafficserver/pull/300#issuecomment-145764790
  
I managed to screw up the diff in the second commit ;/ I'm gonna land the 
code change and tests (obviously not screwed up like that) ;)


> Header_rewrite applies strange logic with = operator and whitespace
> ---
>
> Key: TS-3956
> URL: https://issues.apache.org/jira/browse/TS-3956
> Project: Traffic Server
>  Issue Type: Bug
>  Components: Plugins
>Reporter: Brian Geffon
>Assignee: Brian Geffon
>
> It appears that whitespace causes weird behavior with header_rewrite, for 
> example:
> If you remove the white space before the = and the quotes it appears to 
> behave correctly. This whitespace issue is likely to cause strange bugs and 
> needs to be fixed.
> {code}
> cond %{READ_REQUEST_HDR_HOOK}
> cond %{CLIENT-HEADER:Host} /^localhost$/ [AND]
> cond %{CLIENT-HEADER:non_existent_header} = "shouldnt_exist_anyway" [AND]
> add-header X-HeaderRewriteApplied true
> {code}
> With the following request:
> {code}
> curl -v localhost/
> {code}
> Header_rewrite will incorrectly apply the rule:
> {code}
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Building 
> resources, hook=TS_HTTP_READ_REQUEST_HDR_HOOK
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)  Adding 
> TXN client request header buffers
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: Host, field_loc: 0x7fffd02070d0
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Appending HEADER(Host) to evaluation value -> localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Test 
> regular expression ^localhost$ : localhost
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Successfully found regular expression match
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER(): localhost - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) Getting 
> Header: non_existent_header, field_loc: (nil)
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> Evaluating HEADER():  - rval: 1
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite) 
> OperatorAddHeader::exec() invoked on header X-HeaderRewriteApplied: true
> [Oct  4 20:56:49.245] Server {0x761b5700} DIAG: (header_rewrite)
> Adding header X-HeaderRewriteApplied
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)