[
https://issues.apache.org/jira/browse/TS-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238281#comment-13238281
]
Conan Wang commented on TS-1002:
--------------------------------
I'm trying to backport to 3.0.4. got assert error when request.
{code}
FATAL: LogAccess.cc:794: failed assert `actual_len < padded_len`
/box/ts-3.0.4/bin/traffic_server - STACK TRACE:
0 libtsutil.3.dylib 0x0000000100d2924b ink_fatal_va + 283
1 libtsutil.3.dylib 0x0000000100d29554 ink_fatal + 356
2 libtsutil.3.dylib 0x0000000100d268cf _ink_assert + 271
3 traffic_server 0x00000001001b9c90
_ZN9LogAccess11marshal_memEPcPKcii + 108
4 traffic_server 0x00000001001bd848
_ZN13LogAccessHttp36marshal_client_req_unmapped_url_hostEPc + 122
5 traffic_server 0x00000001001e2d7b
_ZN8LogField7marshalEP9LogAccessPc + 155
6 traffic_server 0x00000001001e2f30
_ZN12LogFieldList7marshalEP9LogAccessPc + 88
7 traffic_server 0x00000001001fb45b
_ZN9LogObject3logEP9LogAccessPc + 3783
8 traffic_server 0x00000001001cff91
_ZN16LogObjectManager3logEP9LogAccess + 73
9 traffic_server 0x00000001001c5f48
_ZN3Log6accessEP9LogAccess + 1316
10 traffic_server 0x0000000100116bc4
_ZN6HttpSM12update_statsEv + 834
11 traffic_server 0x000000010012944a
_ZN6HttpSM9kill_thisEv + 1042
12 traffic_server 0x0000000100129aa7
_ZN6HttpSM12main_handlerEiPv + 1205
13 traffic_server 0x000000010005cc84
_ZN12Continuation11handleEventEiPv + 148
14 traffic_server 0x0000000100184044
_ZN10HttpTunnel12main_handlerEiPv + 460
15 traffic_server 0x000000010005cc84
_ZN12Continuation11handleEventEiPv + 148
16 traffic_server 0x000000010036a2c4
_ZL23write_signal_and_updateiP18UnixNetVConnection + 100
17 traffic_server 0x000000010036a3d2
_ZL17write_signal_doneiP10NetHandlerP18UnixNetVConnection + 50
18 traffic_server 0x000000010036ae91
_Z15write_to_net_ioP10NetHandlerP18UnixNetVConnectionP7EThread + 2593
19 traffic_server 0x000000010036b0e8
_Z12write_to_netP10NetHandlerP18UnixNetVConnectionP14PollDescriptorP7EThread +
168
20 traffic_server 0x000000010035cd34
_ZN10NetHandler12mainNetEventEiP5Event + 4346
21 traffic_server 0x000000010005cc84
_ZN12Continuation11handleEventEiPv + 148
22 traffic_server 0x000000010039145a
_ZN7EThread13process_eventEP5Eventi + 418
23 traffic_server 0x0000000100390cab
_ZN7EThread7executeEv + 1311
24 traffic_server 0x000000010038fc74
_ZL21spawn_thread_internalPv + 132
25 libsystem_c.dylib 0x00007fff89dfe8bf _pthread_start + 335
26 libsystem_c.dylib 0x00007fff89e01b75 thread_start + 13
Program received signal SIGABRT, Aborted.
[Switching to process 14628 thread 0x2803]
0x00007fff90895ce2 in __pthread_kill ()
(gdb) bt
#0 0x00007fff90895ce2 in __pthread_kill ()
#1 0x00007fff89e007d2 in pthread_kill ()
#2 0x00007fff89df1a7a in abort ()
#3 0x0000000100d27f70 in ink_die_die_die (retval=1) at ink_error.cc:43
#4 0x0000000100d29255 in ink_fatal_va (return_code=1,
message_format=0x103d0950c "LogAccess.cc:794: failed assert `actual_len <
padded_len`", ap=0x103d09498) at ink_error.cc:65
#5 0x0000000100d29554 in ink_fatal (return_code=1, message_format=0x103d0950c
"LogAccess.cc:794: failed assert `actual_len < padded_len`") at ink_error.cc:73
#6 0x0000000100d268cf in _ink_assert (a=0x1003e2532 "actual_len < padded_len",
f=0x1003e23b8 "LogAccess.cc", l=794) at ink_assert.cc:44
#7 0x00000001001b9c90 in LogAccess::marshal_mem (dest=0x108c4f910 "",
source=0x1003e2530 "-", actual_len=1, padded_len=0) at LogAccess.cc:794
#8 0x00000001001bd848 in LogAccessHttp::marshal_client_req_unmapped_url_host
(this=0x103d0a328, buf=0x108c4f910 "") at LogAccessHttp.cc:369
#9 0x00000001001e2d7b in LogField::marshal (this=0x10128c8e0, lad=0x103d0a328,
buf=0x108c4f910 "") at LogField.cc:216
#10 0x00000001001e2f30 in LogFieldList::marshal (this=0x10128be80,
lad=0x103d0a328, buf=0x108c4f910 "") at LogField.cc:493
#11 0x00000001001fb45b in LogObject::log (this=0x108c51e00, lad=0x103d0a328,
text_entry=0x0) at LogObject.cc:568
#12 0x00000001001cff91 in LogObjectManager::log (this=0x101247040,
lad=0x103d0a328) at LogObject.h:485
#13 0x00000001001c5f48 in Log::access (lad=0x103d0a328) at Log.cc:1063
#14 0x0000000100116bc4 in HttpSM::update_stats (this=0x109d41190) at
HttpSM.cc:6044
#15 0x000000010012944a in HttpSM::kill_this (this=0x109d41190) at HttpSM.cc:6005
#16 0x0000000100129aa7 in HttpSM::main_handler (this=0x109d41190, event=2301,
data=0x109d42e80) at HttpSM.cc:2452
#17 0x000000010005cc84 in Continuation::handleEvent (this=0x109d41190,
event=2301, data=0x109d42e80) at I_Continuation.h:146
#18 0x0000000100184044 in HttpTunnel::main_handler (this=0x109d42e80,
event=103, data=0x102094058) at HttpTunnel.cc:1468
#19 0x000000010005cc84 in Continuation::handleEvent (this=0x109d42e80,
event=103, data=0x102094058) at I_Continuation.h:146
#20 0x000000010036a2c4 in write_signal_and_update (event=103, vc=0x102093e20)
at UnixNetVConnection.cc:153
#21 0x000000010036a3d2 in write_signal_done (event=103, nh=0x102e06618,
vc=0x102093e20) at UnixNetVConnection.cc:180
#22 0x000000010036ae91 in write_to_net_io (nh=0x102e06618, vc=0x102093e20,
thread=0x102e05000) at UnixNetVConnection.cc:479
#23 0x000000010036b0e8 in write_to_net (nh=0x102e06618, vc=0x102093e20,
pd=0x104820000, thread=0x102e05000) at UnixNetVConnection.cc:352
#24 0x000000010035cd34 in NetHandler::mainNetEvent (this=0x102e06618, event=5,
e=0x102020d20) at UnixNet.cc:405
#25 0x000000010005cc84 in Continuation::handleEvent (this=0x102e06618, event=5,
data=0x102020d20) at I_Continuation.h:146
#26 0x000000010039145a in EThread::process_event (this=0x102e05000,
e=0x102020d20, calling_code=5) at UnixEThread.cc:140
#27 0x0000000100390cab in EThread::execute (this=0x102e05000) at
UnixEThread.cc:262
#28 0x000000010038fc74 in spawn_thread_internal (a=0x10150c5e0) at Thread.cc:88
#29 0x00007fff89dfe8bf in _pthread_start ()
#30 0x00007fff89e01b75 in thread_start ()
{code}
> log unmapped HOST when pristine_host_hdr disabled
> -------------------------------------------------
>
> Key: TS-1002
> URL: https://issues.apache.org/jira/browse/TS-1002
> Project: Traffic Server
> Issue Type: New Feature
> Components: Logging
> Reporter: Conan Wang
> Assignee: Zhao Yongming
> Priority: Minor
> Fix For: 3.1.3
>
> Attachments: TS-1002.patch
>
>
> I want to log user request's "Host" in http header before remap. I write
> logs_xml.config, like: %<{Host}cqh>
> When proxy.config.url_remap.pristine_host_hdr is enabled, I will get the
> right "Host" which is not rewritten.
> When disable the config, I always get the rewritten/mapped "Host" which is
> not what I need.
> logs_xml reference:
> http://trafficserver.apache.org/docs/v2/admin/logfmts.htm#66912
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira