Hey, The patch mentioned is applicable to 4.0.10 beta release . For older versions I was not able to merge the patch. So even for beta release it throws segmentation fault. Let me know if am using wrong version of code Backtrace from gdb tool if it can be of any help Program received signal SIGSEGV, Segmentation fault. hash_lookup (hid=0x0, k=0xcd4200) at hash.cc:152 152 b = hid->hash(k, hid->size); Missing separate debuginfos, use: debuginfo-install glibc-2.17-106.el7_2.6.x86_64 libattr-2.4.46-12.el7.x86_64 libcap-2.22-8.el7.x86_64 libgcc-4.8.5-4.el7.x86_64 libstdc++-4.8.5-4.el7.x86_64 libtool-ltdl-2.4.2-21.el7_2.x86_64 nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64 (gdb) backtrace #0 hash_lookup (hid=0x0, k=0xcd4200) at hash.cc:152 #1 0x000000000056059f in idnsCachedLookup (key=key@entry=0xcd4200 "atld-mcafee01.airwatch.dev", callback=callback@entry=0x5d96a0 <ipcacheHandleReply(void*, rfc1035_rr const*, int, char const*)>, data="" at dns_internal.cc:1675 #2 0x00000000005667ee in idnsALookup (name=0xcd4200 "atld-mcafee01.airwatch.dev", callback=callback@entry=0x5d96a0 <ipcacheHandleReply(void*, rfc1035_rr const*, int, char const*)>, data=""> at dns_internal.cc:1742 #3 0x00000000005d9033 in ipcache_nbgethostbyname (name=name@entry=0xcd3db0 "atld-mcafee01.airwatch.dev", handler=handler@entry=0x0, handlerData=handlerData@entry=0x0) at ipcache.cc:561 #4 0x00000000005d95cc in ipcache_gethostbyname (name=0xcd3db0 "atld-mcafee01.airwatch.dev", flags=flags@entry=1) at ipcache.cc:653 #5 0x00000000007fae8c in Adaptation::ServiceConfig::grokUri (this=this@entry=0xcd3ad0, value=value@entry=0xcd3cf0 "icap://atld-mcafee01.airwatch.dev:1344/") at ServiceConfig.cc:239 #6 0x00000000007fc41f in Adaptation::ServiceConfig::parse (this=0xcd3ad0) at ServiceConfig.cc:122 #7 0x00000000007f2773 in Adaptation::Config::parseService (this=0xcb57a0 <Adaptation::Icap::TheConfig>) at Config.cc:136 #8 0x000000000050737b in parse_icap_service_type (cfg=<optimized out>) at cache_cf.cc:4235 #9 parse_line (buff=<optimized out>) at cf_parser.cci:3185 #10 0x0000000000510e89 in parseOneConfigFile (file_name=file_name@entry=0xcc9860 "/etc/squid/squid.conf", depth=depth@entry=0) at cache_cf.cc:544 #11 0x000000000051190f in parseConfigFile (file_name=0xcc9860 "/etc/squid/squid.conf") at cache_cf.cc:585 #12 0x00000000005ddc97 in SquidMain (argc=<optimized out>, argv=0x7fffffffe478) at main.cc:1523 #13 0x00000000004e77ad in SquidMainSafe (argv=<optimized out>, argc=<optimized out>) at main.cc:1374 #14 main (argc=<optimized out>, argv=<optimized out>) at main.cc:1367 (gdb) frame 5 #5 0x00000000007fae8c in Adaptation::ServiceConfig::grokUri (this=this@entry=0xcd3ad0, value=value@entry=0xcd3cf0 "icap://atld-mcafee01.airwatch.dev:1344/") at ServiceConfig.cc:239 239 (void)ipcache_gethostbyname(host.termedBuf(), IP_LOOKUP_IF_MISS); (gdb) frame 4 #4 0x00000000005d95cc in ipcache_gethostbyname (name=0xcd3db0 "atld-mcafee01.airwatch.dev", flags=flags@entry=1) at ipcache.cc:653 653 ipcache_nbgethostbyname(name, NULL, NULL); (gdb) frame 3 #3 0x00000000005d9033 in ipcache_nbgethostbyname (name=name@entry=0xcd3db0 "atld-mcafee01.airwatch.dev", handler=handler@entry=0x0, handlerData=handlerData@entry=0x0) at ipcache.cc:561 561 idnsALookup(hashKeyStr(&i->hash), ipcacheHandleReply, c); (gdb) frame 2 #2 0x00000000005667ee in idnsALookup (name=0xcd4200 "atld-mcafee01.airwatch.dev", callback=callback@entry=0x5d96a0 <ipcacheHandleReply(void*, rfc1035_rr const*, int, char const*)>, data=""> at dns_internal.cc:1742 1742 if (idnsCachedLookup(name, callback, data)) (gdb) frame 1 #1 0x000000000056059f in idnsCachedLookup (key=key@entry=0xcd4200 "atld-mcafee01.airwatch.dev", callback=callback@entry=0x5d96a0 <ipcacheHandleReply(void*, rfc1035_rr const*, int, char const*)>, data="" at dns_internal.cc:1675 1675 idns_query *old = (idns_query *) hash_lookup(idns_lookup_hash, key); (gdb) frame 0 #0 hash_lookup (hid=0x0, k=0xcd4200) at hash.cc:152 152 b = hid->hash(k, hid->size); (gdb) Thanks Aashima |
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users