[jira] [Updated] (TS-2837) Dangling pointer in URLImpl which may cause core dump

2014-05-27 Thread Bryan Call (JIRA)

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

Bryan Call updated TS-2837:
---

Labels: crash yahoo  (was: crash)

 Dangling pointer in URLImpl which may cause core dump
 -

 Key: TS-2837
 URL: https://issues.apache.org/jira/browse/TS-2837
 Project: Traffic Server
  Issue Type: Bug
  Components: HTTP, Logging
Affects Versions: 4.0.2
Reporter: kang li
Assignee: Bryan Call
  Labels: crash, yahoo
 Fix For: 5.0.0

 Attachments: ts-2837.diff


 There were core dump shows that URLImpl::m_ptr_printed_string was out of 
 bound. 
 {code}
 #0  ink_strlcpy (dst=value optimized out, src=0x2b64901a79a4 Address
 0x2b64901a79a4 out of bounds, siz=value optimized out)
 at ink_string.cc:226
 #1  0x0058d820 in LogAccessHttp::init (this=0x2b631752da20) at
 LogAccessHttp.cc:96
 #2  0x0058a96f in resolve_logfield_string (context=0x2b631752da20,
 format_str=0x3468e10 !DOCTYPE html\nhtml lang=\en-us\head\nmeta
 http-equiv=\content-type\ content=\text/html; charset=UTF-8\\nmeta
 charset=\utf-8\\ntitleYahoo/title\nmeta name=\viewport\
 content=\wid...) at LogAccess.cc:1396
 #3  0x00508fed in HttpBodyTemplate::build_instantiated_buffer
 (this=0x3468de0, context=value optimized out,
 buflen_return=0x2b63e2c42068) at HttpBodyFactory.cc:1015
 #4  0x00509ea4 in HttpBodyFactory::fabricate (this=value optimized
 out, acpt_language_list=0x2b631752e130,
 acpt_charset_list=0x2b631752dfd0, type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, buffer_length_return=0x2b63e2c42068,
 content_language_return=0x2b631752e2a8,
 content_charset_return=0x2b631752e2a0, set_return=0x2b631752e298) at
 HttpBodyFactory.cc:451
 #5  0x0050b1b7 in HttpBodyFactory::fabricate_with_old_api(const char 
 *,
 HttpTransact::State *, int64_t, int64_t *, char *, size_t, char *, size_t,
 const char *, typedef __va_list_tag __va_list_tag *) (this=0x344e850,
 type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, max_buffer_length=8192,
 resulting_buffer_length=0x2b63e2c42068, 
 content_language_out_buf=0x2b631752e460
 en,
 content_language_buf_size=256, content_type_out_buf=0x2b631752e360
 text/html, content_type_buf_size=256,
 format=0x6ce288 internal error - server connection terminated,
 ap=0x2b631752e590) at HttpBodyFactory.cc:137
 #6  0x0054cd74 in HttpTransact::build_error_response 
 (s=0x2b63e2c416d8,
 status_code=HTTP_STATUS_BAD_GATEWAY,
 reason_phrase_or_null=0x6ce288 internal error - server connection
 terminated, error_body_type=value optimized out,
 format=0x6ce288 internal error - server connection terminated) at
 HttpTransact.cc:7998
 #7  0x00551b42 in HttpTransact::handle_server_connection_not_open
 (s=0x2b63e2c416d8) at HttpTransact.cc:3719
 #8  0x00562f31 in HttpTransact::HandleResponse (s=0x2b63e2c416d8) at
 HttpTransact.cc:3180
 #9  0x0051c588 in HttpSM::call_transact_and_set_next_state
 (this=0x2b63e2c41670, f=value optimized out) at HttpSM.cc:6817
 #10 0x00531f89 in HttpSM::state_http_server_open (this=0x2b63e2c41670,
 event=201, data=0xff9d) at HttpSM.cc:1712
 #11 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=201,
 data=0xff9d) at HttpSM.cc:2548
 #12 0x006878ec in handleEvent (this=0x2b64ac19f870, t=0x2b6315111010)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #13 UnixNetVConnection::connectUp (this=0x2b64ac19f870, t=0x2b6315111010) at
 UnixNetVConnection.cc:1104
 #14 0x006849ca in UnixNetProcessor::connect_re_internal (this=value
 optimized out, cont=value optimized out,
 target=value optimized out, opt=0x2b631752f990) at
 UnixNetProcessor.cc:250
 #15 0x005314ae in connect_re (this=0x2b63e2c41670, raw=value 
 optimized
 out) at ../../iocore/net/P_UnixNetProcessor.h:89
 #16 HttpSM::do_http_server_open (this=0x2b63e2c41670, raw=value optimized
 out) at HttpSM.cc:4676
 #17 0x00536446 in HttpSM::set_next_state (this=0x2b63e2c41670) at
 HttpSM.cc:7006
 #18 0x005371ef in HttpSM::state_send_server_request_header
 (this=0x2b63e2c41670, event=104, data=0x2b64144c7e28) at HttpSM.cc:2008
 #19 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=104,
 data=0x2b64144c7e28) at HttpSM.cc:2548
 #20 0x006872a1 in handleEvent (event=value optimized out,
 nh=0x2b6315114e20, vc=0x2b64144c7d20)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #21 read_signal_and_update (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:138
 #22 read_signal_done (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:168
 #23 0x00689ab6 in 

[jira] [Updated] (TS-2837) Dangling pointer in URLImpl which may cause core dump

2014-05-26 Thread kang li (JIRA)

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

kang li updated TS-2837:


Attachment: ts-2837.diff

 Dangling pointer in URLImpl which may cause core dump
 -

 Key: TS-2837
 URL: https://issues.apache.org/jira/browse/TS-2837
 Project: Traffic Server
  Issue Type: Bug
  Components: HTTP, Logging
Affects Versions: 4.0.2
Reporter: kang li
  Labels: crash
 Attachments: ts-2837.diff


 There were core dump shows that URLImpl::m_ptr_printed_string was out of 
 bound. 
 {code}
 #0  ink_strlcpy (dst=value optimized out, src=0x2b64901a79a4 Address
 0x2b64901a79a4 out of bounds, siz=value optimized out)
 at ink_string.cc:226
 #1  0x0058d820 in LogAccessHttp::init (this=0x2b631752da20) at
 LogAccessHttp.cc:96
 #2  0x0058a96f in resolve_logfield_string (context=0x2b631752da20,
 format_str=0x3468e10 !DOCTYPE html\nhtml lang=\en-us\head\nmeta
 http-equiv=\content-type\ content=\text/html; charset=UTF-8\\nmeta
 charset=\utf-8\\ntitleYahoo/title\nmeta name=\viewport\
 content=\wid...) at LogAccess.cc:1396
 #3  0x00508fed in HttpBodyTemplate::build_instantiated_buffer
 (this=0x3468de0, context=value optimized out,
 buflen_return=0x2b63e2c42068) at HttpBodyFactory.cc:1015
 #4  0x00509ea4 in HttpBodyFactory::fabricate (this=value optimized
 out, acpt_language_list=0x2b631752e130,
 acpt_charset_list=0x2b631752dfd0, type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, buffer_length_return=0x2b63e2c42068,
 content_language_return=0x2b631752e2a8,
 content_charset_return=0x2b631752e2a0, set_return=0x2b631752e298) at
 HttpBodyFactory.cc:451
 #5  0x0050b1b7 in HttpBodyFactory::fabricate_with_old_api(const char 
 *,
 HttpTransact::State *, int64_t, int64_t *, char *, size_t, char *, size_t,
 const char *, typedef __va_list_tag __va_list_tag *) (this=0x344e850,
 type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, max_buffer_length=8192,
 resulting_buffer_length=0x2b63e2c42068, 
 content_language_out_buf=0x2b631752e460
 en,
 content_language_buf_size=256, content_type_out_buf=0x2b631752e360
 text/html, content_type_buf_size=256,
 format=0x6ce288 internal error - server connection terminated,
 ap=0x2b631752e590) at HttpBodyFactory.cc:137
 #6  0x0054cd74 in HttpTransact::build_error_response 
 (s=0x2b63e2c416d8,
 status_code=HTTP_STATUS_BAD_GATEWAY,
 reason_phrase_or_null=0x6ce288 internal error - server connection
 terminated, error_body_type=value optimized out,
 format=0x6ce288 internal error - server connection terminated) at
 HttpTransact.cc:7998
 #7  0x00551b42 in HttpTransact::handle_server_connection_not_open
 (s=0x2b63e2c416d8) at HttpTransact.cc:3719
 #8  0x00562f31 in HttpTransact::HandleResponse (s=0x2b63e2c416d8) at
 HttpTransact.cc:3180
 #9  0x0051c588 in HttpSM::call_transact_and_set_next_state
 (this=0x2b63e2c41670, f=value optimized out) at HttpSM.cc:6817
 #10 0x00531f89 in HttpSM::state_http_server_open (this=0x2b63e2c41670,
 event=201, data=0xff9d) at HttpSM.cc:1712
 #11 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=201,
 data=0xff9d) at HttpSM.cc:2548
 #12 0x006878ec in handleEvent (this=0x2b64ac19f870, t=0x2b6315111010)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #13 UnixNetVConnection::connectUp (this=0x2b64ac19f870, t=0x2b6315111010) at
 UnixNetVConnection.cc:1104
 #14 0x006849ca in UnixNetProcessor::connect_re_internal (this=value
 optimized out, cont=value optimized out,
 target=value optimized out, opt=0x2b631752f990) at
 UnixNetProcessor.cc:250
 #15 0x005314ae in connect_re (this=0x2b63e2c41670, raw=value 
 optimized
 out) at ../../iocore/net/P_UnixNetProcessor.h:89
 #16 HttpSM::do_http_server_open (this=0x2b63e2c41670, raw=value optimized
 out) at HttpSM.cc:4676
 #17 0x00536446 in HttpSM::set_next_state (this=0x2b63e2c41670) at
 HttpSM.cc:7006
 #18 0x005371ef in HttpSM::state_send_server_request_header
 (this=0x2b63e2c41670, event=104, data=0x2b64144c7e28) at HttpSM.cc:2008
 #19 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=104,
 data=0x2b64144c7e28) at HttpSM.cc:2548
 #20 0x006872a1 in handleEvent (event=value optimized out,
 nh=0x2b6315114e20, vc=0x2b64144c7d20)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #21 read_signal_and_update (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:138
 #22 read_signal_done (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:168
 #23 0x00689ab6 in read_from_net (nh=0x2b6315114e20, vc=0x2b64144c7d20,
 thread=value optimized out) at 

[jira] [Updated] (TS-2837) Dangling pointer in URLImpl which may cause core dump

2014-05-26 Thread Leif Hedstrom (JIRA)

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

Leif Hedstrom updated TS-2837:
--

Fix Version/s: 5.0.0

 Dangling pointer in URLImpl which may cause core dump
 -

 Key: TS-2837
 URL: https://issues.apache.org/jira/browse/TS-2837
 Project: Traffic Server
  Issue Type: Bug
  Components: HTTP, Logging
Affects Versions: 4.0.2
Reporter: kang li
  Labels: crash
 Fix For: 5.0.0

 Attachments: ts-2837.diff


 There were core dump shows that URLImpl::m_ptr_printed_string was out of 
 bound. 
 {code}
 #0  ink_strlcpy (dst=value optimized out, src=0x2b64901a79a4 Address
 0x2b64901a79a4 out of bounds, siz=value optimized out)
 at ink_string.cc:226
 #1  0x0058d820 in LogAccessHttp::init (this=0x2b631752da20) at
 LogAccessHttp.cc:96
 #2  0x0058a96f in resolve_logfield_string (context=0x2b631752da20,
 format_str=0x3468e10 !DOCTYPE html\nhtml lang=\en-us\head\nmeta
 http-equiv=\content-type\ content=\text/html; charset=UTF-8\\nmeta
 charset=\utf-8\\ntitleYahoo/title\nmeta name=\viewport\
 content=\wid...) at LogAccess.cc:1396
 #3  0x00508fed in HttpBodyTemplate::build_instantiated_buffer
 (this=0x3468de0, context=value optimized out,
 buflen_return=0x2b63e2c42068) at HttpBodyFactory.cc:1015
 #4  0x00509ea4 in HttpBodyFactory::fabricate (this=value optimized
 out, acpt_language_list=0x2b631752e130,
 acpt_charset_list=0x2b631752dfd0, type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, buffer_length_return=0x2b63e2c42068,
 content_language_return=0x2b631752e2a8,
 content_charset_return=0x2b631752e2a0, set_return=0x2b631752e298) at
 HttpBodyFactory.cc:451
 #5  0x0050b1b7 in HttpBodyFactory::fabricate_with_old_api(const char 
 *,
 HttpTransact::State *, int64_t, int64_t *, char *, size_t, char *, size_t,
 const char *, typedef __va_list_tag __va_list_tag *) (this=0x344e850,
 type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, max_buffer_length=8192,
 resulting_buffer_length=0x2b63e2c42068, 
 content_language_out_buf=0x2b631752e460
 en,
 content_language_buf_size=256, content_type_out_buf=0x2b631752e360
 text/html, content_type_buf_size=256,
 format=0x6ce288 internal error - server connection terminated,
 ap=0x2b631752e590) at HttpBodyFactory.cc:137
 #6  0x0054cd74 in HttpTransact::build_error_response 
 (s=0x2b63e2c416d8,
 status_code=HTTP_STATUS_BAD_GATEWAY,
 reason_phrase_or_null=0x6ce288 internal error - server connection
 terminated, error_body_type=value optimized out,
 format=0x6ce288 internal error - server connection terminated) at
 HttpTransact.cc:7998
 #7  0x00551b42 in HttpTransact::handle_server_connection_not_open
 (s=0x2b63e2c416d8) at HttpTransact.cc:3719
 #8  0x00562f31 in HttpTransact::HandleResponse (s=0x2b63e2c416d8) at
 HttpTransact.cc:3180
 #9  0x0051c588 in HttpSM::call_transact_and_set_next_state
 (this=0x2b63e2c41670, f=value optimized out) at HttpSM.cc:6817
 #10 0x00531f89 in HttpSM::state_http_server_open (this=0x2b63e2c41670,
 event=201, data=0xff9d) at HttpSM.cc:1712
 #11 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=201,
 data=0xff9d) at HttpSM.cc:2548
 #12 0x006878ec in handleEvent (this=0x2b64ac19f870, t=0x2b6315111010)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #13 UnixNetVConnection::connectUp (this=0x2b64ac19f870, t=0x2b6315111010) at
 UnixNetVConnection.cc:1104
 #14 0x006849ca in UnixNetProcessor::connect_re_internal (this=value
 optimized out, cont=value optimized out,
 target=value optimized out, opt=0x2b631752f990) at
 UnixNetProcessor.cc:250
 #15 0x005314ae in connect_re (this=0x2b63e2c41670, raw=value 
 optimized
 out) at ../../iocore/net/P_UnixNetProcessor.h:89
 #16 HttpSM::do_http_server_open (this=0x2b63e2c41670, raw=value optimized
 out) at HttpSM.cc:4676
 #17 0x00536446 in HttpSM::set_next_state (this=0x2b63e2c41670) at
 HttpSM.cc:7006
 #18 0x005371ef in HttpSM::state_send_server_request_header
 (this=0x2b63e2c41670, event=104, data=0x2b64144c7e28) at HttpSM.cc:2008
 #19 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=104,
 data=0x2b64144c7e28) at HttpSM.cc:2548
 #20 0x006872a1 in handleEvent (event=value optimized out,
 nh=0x2b6315114e20, vc=0x2b64144c7d20)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #21 read_signal_and_update (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:138
 #22 read_signal_done (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:168
 #23 0x00689ab6 in read_from_net (nh=0x2b6315114e20, vc=0x2b64144c7d20,
 

[jira] [Updated] (TS-2837) Dangling pointer in URLImpl which may cause core dump

2014-05-25 Thread Leif Hedstrom (JIRA)

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

Leif Hedstrom updated TS-2837:
--

Labels: crash  (was: )

 Dangling pointer in URLImpl which may cause core dump
 -

 Key: TS-2837
 URL: https://issues.apache.org/jira/browse/TS-2837
 Project: Traffic Server
  Issue Type: Bug
  Components: HTTP, Logging
Affects Versions: 4.0.2
Reporter: kang li
  Labels: crash

 There were core dump shows that URLImpl::m_ptr_printed_string was out of 
 bound. 
 {code}
 #0  ink_strlcpy (dst=value optimized out, src=0x2b64901a79a4 Address
 0x2b64901a79a4 out of bounds, siz=value optimized out)
 at ink_string.cc:226
 #1  0x0058d820 in LogAccessHttp::init (this=0x2b631752da20) at
 LogAccessHttp.cc:96
 #2  0x0058a96f in resolve_logfield_string (context=0x2b631752da20,
 format_str=0x3468e10 !DOCTYPE html\nhtml lang=\en-us\head\nmeta
 http-equiv=\content-type\ content=\text/html; charset=UTF-8\\nmeta
 charset=\utf-8\\ntitleYahoo/title\nmeta name=\viewport\
 content=\wid...) at LogAccess.cc:1396
 #3  0x00508fed in HttpBodyTemplate::build_instantiated_buffer
 (this=0x3468de0, context=value optimized out,
 buflen_return=0x2b63e2c42068) at HttpBodyFactory.cc:1015
 #4  0x00509ea4 in HttpBodyFactory::fabricate (this=value optimized
 out, acpt_language_list=0x2b631752e130,
 acpt_charset_list=0x2b631752dfd0, type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, buffer_length_return=0x2b63e2c42068,
 content_language_return=0x2b631752e2a8,
 content_charset_return=0x2b631752e2a0, set_return=0x2b631752e298) at
 HttpBodyFactory.cc:451
 #5  0x0050b1b7 in HttpBodyFactory::fabricate_with_old_api(const char 
 *,
 HttpTransact::State *, int64_t, int64_t *, char *, size_t, char *, size_t,
 const char *, typedef __va_list_tag __va_list_tag *) (this=0x344e850,
 type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, max_buffer_length=8192,
 resulting_buffer_length=0x2b63e2c42068, 
 content_language_out_buf=0x2b631752e460
 en,
 content_language_buf_size=256, content_type_out_buf=0x2b631752e360
 text/html, content_type_buf_size=256,
 format=0x6ce288 internal error - server connection terminated,
 ap=0x2b631752e590) at HttpBodyFactory.cc:137
 #6  0x0054cd74 in HttpTransact::build_error_response 
 (s=0x2b63e2c416d8,
 status_code=HTTP_STATUS_BAD_GATEWAY,
 reason_phrase_or_null=0x6ce288 internal error - server connection
 terminated, error_body_type=value optimized out,
 format=0x6ce288 internal error - server connection terminated) at
 HttpTransact.cc:7998
 #7  0x00551b42 in HttpTransact::handle_server_connection_not_open
 (s=0x2b63e2c416d8) at HttpTransact.cc:3719
 #8  0x00562f31 in HttpTransact::HandleResponse (s=0x2b63e2c416d8) at
 HttpTransact.cc:3180
 #9  0x0051c588 in HttpSM::call_transact_and_set_next_state
 (this=0x2b63e2c41670, f=value optimized out) at HttpSM.cc:6817
 #10 0x00531f89 in HttpSM::state_http_server_open (this=0x2b63e2c41670,
 event=201, data=0xff9d) at HttpSM.cc:1712
 #11 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=201,
 data=0xff9d) at HttpSM.cc:2548
 #12 0x006878ec in handleEvent (this=0x2b64ac19f870, t=0x2b6315111010)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #13 UnixNetVConnection::connectUp (this=0x2b64ac19f870, t=0x2b6315111010) at
 UnixNetVConnection.cc:1104
 #14 0x006849ca in UnixNetProcessor::connect_re_internal (this=value
 optimized out, cont=value optimized out,
 target=value optimized out, opt=0x2b631752f990) at
 UnixNetProcessor.cc:250
 #15 0x005314ae in connect_re (this=0x2b63e2c41670, raw=value 
 optimized
 out) at ../../iocore/net/P_UnixNetProcessor.h:89
 #16 HttpSM::do_http_server_open (this=0x2b63e2c41670, raw=value optimized
 out) at HttpSM.cc:4676
 #17 0x00536446 in HttpSM::set_next_state (this=0x2b63e2c41670) at
 HttpSM.cc:7006
 #18 0x005371ef in HttpSM::state_send_server_request_header
 (this=0x2b63e2c41670, event=104, data=0x2b64144c7e28) at HttpSM.cc:2008
 #19 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=104,
 data=0x2b64144c7e28) at HttpSM.cc:2548
 #20 0x006872a1 in handleEvent (event=value optimized out,
 nh=0x2b6315114e20, vc=0x2b64144c7d20)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #21 read_signal_and_update (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:138
 #22 read_signal_done (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:168
 #23 0x00689ab6 in read_from_net (nh=0x2b6315114e20, vc=0x2b64144c7d20,
 thread=value optimized out) at UnixNetVConnection.cc:291
 #24 

[jira] [Updated] (TS-2837) Dangling pointer in URLImpl which may cause core dump

2014-05-23 Thread kang li (JIRA)

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

kang li updated TS-2837:


Affects Version/s: 4.0.2

 Dangling pointer in URLImpl which may cause core dump
 -

 Key: TS-2837
 URL: https://issues.apache.org/jira/browse/TS-2837
 Project: Traffic Server
  Issue Type: Bug
  Components: HTTP, Logging
Affects Versions: 4.0.2
Reporter: kang li

 There were core dump shows that URLImpl::m_ptr_printed_string was out of 
 bound. 
 {code}
 #0  ink_strlcpy (dst=value optimized out, src=0x2b64901a79a4 Address
 0x2b64901a79a4 out of bounds, siz=value optimized out)
 at ink_string.cc:226
 #1  0x0058d820 in LogAccessHttp::init (this=0x2b631752da20) at
 LogAccessHttp.cc:96
 #2  0x0058a96f in resolve_logfield_string (context=0x2b631752da20,
 format_str=0x3468e10 !DOCTYPE html\nhtml lang=\en-us\head\nmeta
 http-equiv=\content-type\ content=\text/html; charset=UTF-8\\nmeta
 charset=\utf-8\\ntitleYahoo/title\nmeta name=\viewport\
 content=\wid...) at LogAccess.cc:1396
 #3  0x00508fed in HttpBodyTemplate::build_instantiated_buffer
 (this=0x3468de0, context=value optimized out,
 buflen_return=0x2b63e2c42068) at HttpBodyFactory.cc:1015
 #4  0x00509ea4 in HttpBodyFactory::fabricate (this=value optimized
 out, acpt_language_list=0x2b631752e130,
 acpt_charset_list=0x2b631752dfd0, type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, buffer_length_return=0x2b63e2c42068,
 content_language_return=0x2b631752e2a8,
 content_charset_return=0x2b631752e2a0, set_return=0x2b631752e298) at
 HttpBodyFactory.cc:451
 #5  0x0050b1b7 in HttpBodyFactory::fabricate_with_old_api(const char 
 *,
 HttpTransact::State *, int64_t, int64_t *, char *, size_t, char *, size_t,
 const char *, typedef __va_list_tag __va_list_tag *) (this=0x344e850,
 type=0x6d2c3d connect#failed_connect,
 context=0x2b63e2c416d8, max_buffer_length=8192,
 resulting_buffer_length=0x2b63e2c42068, 
 content_language_out_buf=0x2b631752e460
 en,
 content_language_buf_size=256, content_type_out_buf=0x2b631752e360
 text/html, content_type_buf_size=256,
 format=0x6ce288 internal error - server connection terminated,
 ap=0x2b631752e590) at HttpBodyFactory.cc:137
 #6  0x0054cd74 in HttpTransact::build_error_response 
 (s=0x2b63e2c416d8,
 status_code=HTTP_STATUS_BAD_GATEWAY,
 reason_phrase_or_null=0x6ce288 internal error - server connection
 terminated, error_body_type=value optimized out,
 format=0x6ce288 internal error - server connection terminated) at
 HttpTransact.cc:7998
 #7  0x00551b42 in HttpTransact::handle_server_connection_not_open
 (s=0x2b63e2c416d8) at HttpTransact.cc:3719
 #8  0x00562f31 in HttpTransact::HandleResponse (s=0x2b63e2c416d8) at
 HttpTransact.cc:3180
 #9  0x0051c588 in HttpSM::call_transact_and_set_next_state
 (this=0x2b63e2c41670, f=value optimized out) at HttpSM.cc:6817
 #10 0x00531f89 in HttpSM::state_http_server_open (this=0x2b63e2c41670,
 event=201, data=0xff9d) at HttpSM.cc:1712
 #11 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=201,
 data=0xff9d) at HttpSM.cc:2548
 #12 0x006878ec in handleEvent (this=0x2b64ac19f870, t=0x2b6315111010)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #13 UnixNetVConnection::connectUp (this=0x2b64ac19f870, t=0x2b6315111010) at
 UnixNetVConnection.cc:1104
 #14 0x006849ca in UnixNetProcessor::connect_re_internal (this=value
 optimized out, cont=value optimized out,
 target=value optimized out, opt=0x2b631752f990) at
 UnixNetProcessor.cc:250
 #15 0x005314ae in connect_re (this=0x2b63e2c41670, raw=value 
 optimized
 out) at ../../iocore/net/P_UnixNetProcessor.h:89
 #16 HttpSM::do_http_server_open (this=0x2b63e2c41670, raw=value optimized
 out) at HttpSM.cc:4676
 #17 0x00536446 in HttpSM::set_next_state (this=0x2b63e2c41670) at
 HttpSM.cc:7006
 #18 0x005371ef in HttpSM::state_send_server_request_header
 (this=0x2b63e2c41670, event=104, data=0x2b64144c7e28) at HttpSM.cc:2008
 #19 0x00530b38 in HttpSM::main_handler (this=0x2b63e2c41670, 
 event=104,
 data=0x2b64144c7e28) at HttpSM.cc:2548
 #20 0x006872a1 in handleEvent (event=value optimized out,
 nh=0x2b6315114e20, vc=0x2b64144c7d20)
 at ../../iocore/eventsystem/I_Continuation.h:146
 #21 read_signal_and_update (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:138
 #22 read_signal_done (event=value optimized out, nh=0x2b6315114e20,
 vc=0x2b64144c7d20) at UnixNetVConnection.cc:168
 #23 0x00689ab6 in read_from_net (nh=0x2b6315114e20, vc=0x2b64144c7d20,
 thread=value optimized out) at UnixNetVConnection.cc:291
 #24 0x0068 in