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

Steve Malenfant commented on TS-3304:
-------------------------------------

>From the records.config, not sure if this has anything to do with it since 
>that's the only place I could see a reference to "localhost" in the config.
records.config:CONFIG proxy.config.log.hostname STRING localhost

With hostdb and dns debug :

[Jan 21 12:18:01.733] Server {0x2aaca5e1d700} DEBUG: (hostdb) hostname = 
localhost
[Jan 21 12:18:11.733] Server {0x2aac9dc7c000} DEBUG: (hostdb) probe 127.0.0.1 
c3aab60f33f8019c 1 [ignore_timeout = 0]
[Jan 21 12:18:11.734] Server {0x2aac9dc7c000} DEBUG: (hostdb) immediate answer 
for 127.0.0.1
[Jan 21 12:18:11.734] Server {0x2aac9dc7c000} DEBUG: (hostdb) probe  
aa30de0f80a82135 1 [ignore_timeout = 0]
[Jan 21 12:18:11.734] Server {0x2aac9dc7c000} DEBUG: (hostdb) immediate answer 
for 127.0.0.1
[Jan 21 12:18:11.734] Server {0x2aac9dc7c000} DEBUG: (hostdb) hostname = 
localhost
[Jan 21 12:18:21.734] Server {0x2aaca4a09700} DEBUG: (hostdb) probe 127.0.0.1 
c3aab60f33f8019c 1 [ignore_timeout = 0]
[Jan 21 12:18:21.734] Server {0x2aaca4a09700} DEBUG: (hostdb) immediate answer 
for 127.0.0.1
[Jan 21 12:18:21.734] Server {0x2aaca4a09700} DEBUG: (hostdb) probe  
aa30de0f80a82135 1 [ignore_timeout = 0]
[Jan 21 12:18:21.734] Server {0x2aaca4a09700} DEBUG: (hostdb) serving stale 
entry 86400 | 6 | 86400 as requested by config
[Jan 21 12:18:21.734] Server {0x2aaca4a09700} DEBUG: (hostdb) serving stale 
entry 86400 | 6 | 86400 as requested by config
[Jan 21 12:18:21.734] Server {0x2aaca4a09700} DEBUG: (hostdb) stale 86400 
1421756537 86400, using it and refreshing it
NOTE: Traffic Server received Sig 11: Segmentation fault
/opt/trafficserver/bin/traffic_server - STACK TRACE:
/lib64/libpthread.so.0(+0x381b60f710)[0x2aac9d2e5710]
/opt/trafficserver/lib/libtsutil.so.4(_Z13ink_inet_addrPKc+0x8)[0x2aac9d0ba1d8]
/opt/trafficserver/bin/traffic_server(_Z5probeP10ProxyMutexRK9HostDBMD5b+0x315)[0x5e0df5]
/opt/trafficserver/bin/traffic_server(_ZN15HostDBProcessor5getbyEP12ContinuationPKciPK8sockaddrb12HostResStylei+0x4e4)[0x5e2b34]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM24do_hostdb_reverse_lookupEv+0x4c)[0x517f2c]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x778)[0x52f028]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM16do_hostdb_lookupEv+0x282)[0x518242]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0xb9a)[0x52f44a]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x32a)[0x5284fa]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1ea)[0x52ea9a]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1da)[0x52ea8a]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x32a)[0x5284fa]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1ea)[0x52ea9a]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM17handle_api_returnEv+0x32a)[0x5284fa]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM14set_next_stateEv+0x1ea)[0x52ea9a]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM32state_read_client_request_headerEiPv+0x226)[0x52fef6]
/opt/trafficserver/bin/traffic_server(_ZN6HttpSM12main_handlerEiPv+0xd8)[0x52a5b8]
/opt/trafficserver/bin/traffic_server[0x68793b]
/opt/trafficserver/bin/traffic_server[0x689ec4]
/opt/trafficserver/bin/traffic_server(_ZN10NetHandler12mainNetEventEiP5Event+0x1f2)[0x67fb12]
/opt/trafficserver/bin/traffic_server(_ZN7EThread13process_eventEP5Eventi+0x8f)[0x6ac8cf]
/opt/trafficserver/bin/traffic_server(_ZN7EThread7executeEv+0x493)[0x6ad273]
/opt/trafficserver/bin/traffic_server[0x6abc2a]
/lib64/libpthread.so.0(+0x381b6079d1)[0x2aac9d2dd9d1]


> segfault in libtsutils
> ----------------------
>
>                 Key: TS-3304
>                 URL: https://issues.apache.org/jira/browse/TS-3304
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HostDB
>            Reporter: Steve Malenfant
>            Assignee: Leif Hedstrom
>             Fix For: 5.3.0
>
>
> Getting multiple segfaults per day on 4.2.1. 
> [4324544.324222] [ET_NET 23][10504]: segfault at 0 ip 00002acd66546168 sp 
> 00002acd71f190b8 error 4 in libtsutil.so.4.2.1[2acd66521000+34000]
> [4410696.820857] [ET_NET 19][22738]: segfault at 0 ip 00002af09f339168 sp 
> 00002af0aa9230b8 error 4 in libtsutil.so.4.2.1[2af09f314000+34000]
> [4497039.474253] [ET_NET 12][34872]: segfault at 0 ip 00002ad17e6a1168 sp 
> 00002ad1896100b8 error 4 in libtsutil.so.4.2.1[2ad17e67c000+34000]
> [4583372.073916] [ET_NET 3][46994]: segfault at 0 ip 00002aced4227168 sp 
> 00002aceda7d80b8 error 4 in libtsutil.so.4.2.1[2aced4202000+34000]
> [4756046.944373] [ET_NET 22][10799]: segfault at 0 ip 00002b1771f76168 sp 
> 00002b177d9130b8 error 4 in libtsutil.so.4.2.1[2b1771f51000+34000]
> Stack Trace :
> (gdb) bt
> #0  ink_inet_addr (s=<value optimized out>) at ink_inet.cc:107
> #1  0x00000000005e0df5 in is_dotted_form_hostname (mutex=0x1d32cb0, md5=..., 
> ignore_timeout=false) at P_HostDBProcessor.h:545
> #2  probe (mutex=0x1d32cb0, md5=..., ignore_timeout=false) at HostDB.cc:668
> #3  0x00000000005e2b34 in HostDBProcessor::getby (this=<value optimized out>, 
> cont=0x2b514cc749d0, hostname=0x0, len=<value optimized out>, 
> ip=0x2b50e8f092b0, aforce_dns=false, host_res_style=HOST_RES_NONE, 
> dns_lookup_timeout=0)
>     at HostDB.cc:772
> #4  0x0000000000517f2c in getbyaddr_re (this=0x2b514cc749d0) at 
> ../../iocore/hostdb/I_HostDBProcessor.h:417
> #5  HttpSM::do_hostdb_reverse_lookup (this=0x2b514cc749d0) at HttpSM.cc:3968
> #6  0x000000000052f028 in HttpSM::set_next_state (this=0x2b514cc749d0) at 
> HttpSM.cc:6932
> #7  0x0000000000518242 in HttpSM::do_hostdb_lookup (this=0x2b514cc749d0) at 
> HttpSM.cc:3950
> #8  0x000000000052f44a in HttpSM::set_next_state (this=0x2b514cc749d0) at 
> HttpSM.cc:6925
> #9  0x00000000005284fa in HttpSM::handle_api_return (this=0x2b514cc749d0) at 
> HttpSM.cc:1559
> #10 0x000000000052ea9a in HttpSM::set_next_state (this=0x2b514cc749d0) at 
> HttpSM.cc:6825
> #11 0x000000000052ea8a in HttpSM::set_next_state (this=0x2b514cc749d0) at 
> HttpSM.cc:7224
> #12 0x00000000005284fa in HttpSM::handle_api_return (this=0x2b514cc749d0) at 
> HttpSM.cc:1559
> #13 0x000000000052ea9a in HttpSM::set_next_state (this=0x2b514cc749d0) at 
> HttpSM.cc:6825
> #14 0x00000000005284fa in HttpSM::handle_api_return (this=0x2b514cc749d0) at 
> HttpSM.cc:1559
> #15 0x000000000052ea9a in HttpSM::set_next_state (this=0x2b514cc749d0) at 
> HttpSM.cc:6825
> #16 0x000000000052fef6 in HttpSM::state_read_client_request_header 
> (this=0x2b514cc749d0, event=100, data=<value optimized out>) at HttpSM.cc:821
> #17 0x000000000052a5b8 in HttpSM::main_handler (this=0x2b514cc749d0, 
> event=100, data=0x2b514802ca08) at HttpSM.cc:2539
> #18 0x000000000068793b in handleEvent (event=<value optimized out>, 
> vc=0x2b514802c900) at ../../iocore/eventsystem/I_Continuation.h:146
> #19 read_signal_and_update (event=<value optimized out>, vc=0x2b514802c900) 
> at UnixNetVConnection.cc:138
> #20 0x0000000000689ec4 in read_from_net (nh=0x2b50e2e17c10, 
> vc=0x2b514802c900, thread=<value optimized out>) at UnixNetVConnection.cc:320
> #21 0x000000000067fb12 in NetHandler::mainNetEvent (this=0x2b50e2e17c10, 
> event=<value optimized out>, e=<value optimized out>) at UnixNet.cc:384
> #22 0x00000000006ac8cf in handleEvent (this=0x2b50e2e14010, e=0x1a9ef30, 
> calling_code=5) at I_Continuation.h:146
> #23 EThread::process_event (this=0x2b50e2e14010, e=0x1a9ef30, calling_code=5) 
> at UnixEThread.cc:145
> #24 0x00000000006ad273 in EThread::execute (this=0x2b50e2e14010) at 
> UnixEThread.cc:269
> #25 0x00000000006abc2a in spawn_thread_internal (a=0x198f820) at Thread.cc:88
> #26 0x00002b50e026b9d1 in start_thread () from /lib64/libpthread.so.0
> #27 0x000000381b2e8b6d in clone () from /lib64/libc.so.6
>  



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

Reply via email to