[
https://issues.apache.org/jira/browse/TS-3130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236928#comment-14236928
]
ASF subversion and git services commented on TS-3130:
-
Commit d6e800d165519b8fd4f1b55426dce642a1f8f52f in trafficserver's branch
refs/heads/5.1.x from [~sudheerv]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d6e800d ]
[TS-3130]: Delay setting buffer to NULL to prevent crash in logging
> Core dump in Logging
>
>
> Key: TS-3130
> URL: https://issues.apache.org/jira/browse/TS-3130
> Project: Traffic Server
> Issue Type: Bug
> Components: Logging
>Affects Versions: 5.0.1
>Reporter: Sudheer Vinukonda
>Assignee: Sudheer Vinukonda
> Fix For: 5.2.0
>
>
> Seeing a core dump in logging when the configured log buffer is not
> sufficient to print a log.
> Here's the gdb back trace and some useful info:
> {code}
> (gdb) bt
> #0 0x00665fed in ink_atomic_increment (mem=0x68, count=-1)
> at ../../lib/ts/ink_atomic.h:89
> #1 0x00662c8e in LogObject::_checkout_write (this=0x264b6f0,
> write_offset=0x2ba25de4b508, bytes_needed=25376) at LogObject.cc:501
> #2 0x006632aa in LogObject::log (this=0x264b6f0, lad=0x2ba25de4b650,
> text_entry=0x0) at LogObject.cc:618
> #3 0x006659f6 in LogObjectManager::log (this=0x263c0e8,
> lad=0x2ba25de4b650) at LogObject.cc:1353
> #4 0x00641a74 in Log::access (lad=0x2ba25de4b650) at Log.cc:1096
> #5 0x005bab9b in HttpBodyTemplate::build_instantiated_buffer
> (this=0x2a1ccc0, context=0x2ba4540c4a78, buflen_return=0x2ba25de4c1c8) at
> HttpBodyFactory.cc:1011
> #6 0x005b92a0 in HttpBodyFactory::fabricate (this=0x29f8820,
> acpt_language_list=0x2ba25de4bd60, acpt_charset_list=0x2ba25de4bc00,
> type=0x78c323 "urlrouting#no_mapping", context=0x2ba4540c4a78,
> buffer_length_return=0x2ba25de4c1c8,
> content_language_return=0x2ba25de4bed8,
> content_charset_return=0x2ba25de4bed0, set_return=0x2ba25de4bec8) at
> HttpBodyFactory.cc:448
> #7 0x005b8422 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=0x29f8820, type=0x78c323 "urlrouting#no_mapping",
> context=0x2ba4540c4a78, max_buffer_length=8192,
> resulting_buffer_length=0x2ba25de4c1c8,
> content_language_out_buf=0x2ba25de4c090 "en",
> content_language_buf_size=256, content_type_out_buf=0x2ba25de4bf90
> "text/html", content_type_buf_size=256, format=0x0, ap=0x2ba25de4c1d0) at
> HttpBodyFactory.cc:138
> #8 0x006091fe in HttpTransact::build_error_response
> (s=0x2ba4540c4a78, status_code=HTTP_STATUS_NOT_FOUND,
> reason_phrase_or_null=0x78c339 "Not Found on Accelerator",
> error_body_type=0x78c323 "urlrouting#no_mapping", format=0x0) at
> HttpTransact.cc:8071
> #9 0x005eab76 in HttpTransact::EndRemapRequest (s=0x2ba4540c4a78) at
> HttpTransact.cc:925
> #10 0x005ddbfd in HttpSM::call_transact_and_set_next_state
> (this=0x2ba4540c4a10, f=0) at HttpSM.cc:6834
> #11 0x005ddee4 in HttpSM::set_next_state (this=0x2ba4540c4a10) at
> HttpSM.cc:6892
> #12 0x005ddd3a in HttpSM::call_transact_and_set_next_state
> (this=0x2ba4540c4a10, f=0) at HttpSM.cc:6842
> #13 0x005cc2b3 in HttpSM::handle_api_return (this=0x2ba4540c4a10) at
> HttpSM.cc:1507
> #14 0x005cc110 in HttpSM::state_api_callout (this=0x2ba4540c4a10,
> event=0, data=0x0) at HttpSM.cc:1439
> #15 0x005d7605 in HttpSM::do_api_callout_internal
> (this=0x2ba4540c4a10) at HttpSM.cc:4800
> #16 0x005e4010 in HttpSM::do_api_callout (this=0x2ba4540c4a10) at
> HttpSM.cc:445
> #17 0x005ddda0 in HttpSM::set_next_state (this=0x2ba4540c4a10) at
> HttpSM.cc:6876
> #18 0x005ddd3a in HttpSM::call_transact_and_set_next_state
> (this=0x2ba4540c4a10, f=0) at HttpSM.cc:6842
> #19 0x005cc2b3 in HttpSM::handle_api_return (this=0x2ba4540c4a10) at
> HttpSM.cc:1507
> #20 0x005cc110 in HttpSM::state_api_callout (this=0x2ba4540c4a10,
> event=0, data=0x0) at HttpSM.cc:1439
> #21 0x005d7605 in HttpSM::do_api_callout_internal
> (this=0x2ba4540c4a10) at HttpSM.cc:4800
> #22 0x005e4010 in HttpSM::do_api_callout (this=0x2ba4540c4a10) at
> HttpSM.cc:445
> #23 0x005ddda0 in HttpSM::set_next_state (this=0x2ba4540c4a10) at
> HttpSM.cc:6876
> #24 0x005ddd3a in HttpSM::call_transact_and_set_next_state
> (this=0x2ba4540c4a10, f=0x5ec2ce
> ) at HttpSM.cc:6842
> #25 0x005ca241 in HttpSM::state_read_client_request_header
> (this=0x2ba4540c4a10, event=100, data=0x2ba2e54a5e80) at HttpSM.cc:763
> #26 0x005cf652 in HttpSM::main_handler (this=0x2ba4540c4a10,
> even