You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Avinash Uttav <ut...@gmail.com> on 2013/07/02 15:40:24 UTC

Prefetch enabling error

I tried to enable the prefetch functionality in my apache traffic server .
I followed the steps suggested in prefetch config file .
1. added
CONFIG proxy.config.prefetch.prefetch_enabled INT 1
in records.config .
2. uncommented prefetch children and gave my ip .
3. uncommented those default tags in the end

I tried with traffic server 3.2.0 and it seemed to be working fine .
right now I m using Apache Traffic server 3.3.4 developers version.

now this is the log and back trace i m getting after running traffic server
with these configurations.

Layout configuration
          --prefix = '/home/avinash/ats2'
     --exec_prefix = '/home/avinash/ats2'
          --bindir = '/home/avinash/ats2/bin'
         --sbindir = '/home/avinash/ats2/bin'
      --sysconfdir = '/home/avinash/ats2/etc/trafficserver'
         --datadir = '/home/avinash/ats2/share/trafficserver'
      --includedir = '/home/avinash/ats2/include'
          --libdir = '/home/avinash/ats2/lib'
      --libexecdir = '/home/avinash/ats2/libexec/trafficserver'
   --localstatedir = '/home/avinash/ats2/var'
      --runtimedir = '/home/avinash/ats2/var/trafficserver'
          --logdir = '/home/avinash/ats2/var/log/trafficserver'
          --mandir = '/home/avinash/ats2/man'
         --infodir = '/home/avinash/ats2/info'
        --cachedir = '/home/avinash/ats2/var/trafficserver'
[TrafficServer] using root directory '/home/avinash/ats2'
[New Thread 0x7ffff5289700 (LWP 21079)]
[Jul  2 19:04:26.895] Server {0x7ffff7fd1720} DEBUG: (http_init)
proxy.config.ht
tp.redirection_enabled = 0
[Jul  2 19:04:26.895] Server {0x7ffff7fd1720} DEBUG: (http_init)
proxy.config.ht
tp.number_of_redirections = 1
[Jul  2 19:04:26.895] Server {0x7ffff7fd1720} DEBUG: (http_init)
proxy.config.ht
tp.post_copy_size = 2048
[Jul  2 19:04:26.900] Server {0x7ffff7fd1720} DEBUG: (dns) ink_dns_init:
called
with init_called = 0
[New Thread 0x7ffff3e61700 (LWP 21080)]
[New Thread 0x7ffff3d60700 (LWP 21081)]
[New Thread 0x7ffff3c5f700 (LWP 21082)]
[New Thread 0x7ffff3b5e700 (LWP 21083)]
[New Thread 0x7ffff3a5d700 (LWP 21084)]
[New Thread 0x7ffff385b700 (LWP 21085)]
[New Thread 0x7ffff3659700 (LWP 21086)]
[New Thread 0x7ffff3457700 (LWP 21087)]
[Jul  2 19:04:26.916] Server {0x7ffff7fd1720} DEBUG: (dns) localhost=Proxy1
[Jul  2 19:04:26.916] Server {0x7ffff7fd1720} DEBUG: (dns) Round-robin
nameserve
rs = 0
[New Thread 0x7ffff2e4e700 (LWP 21088)]
[New Thread 0x7ffff2c4c700 (LWP 21089)]
[New Thread 0x7ffff2a4a700 (LWP 21090)]
[New Thread 0x7ffff2848700 (LWP 21091)]
[New Thread 0x7ffff2646700 (LWP 21092)]
[New Thread 0x7ffff2444700 (LWP 21093)]
[New Thread 0x7ffff2242700 (LWP 21094)]
[New Thread 0x7ffff2040700 (LWP 21095)]
[New Thread 0x7ffff1e3e700 (LWP 21096)]

Program received signal SIGSEGV, Segmentation fault.
0x00000000004eb21f in HttpAPIHooks::append (this=0x0,
    id=TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, cont=0x7fffec1141b0)
    at InkAPI.cc:1288
1288      hooks_set = 1;




and this is the back trace

#0  0x00000000004eb21f in HttpAPIHooks::append (this=0x0,
    id=TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, cont=0x7fffec1141b0)
    at InkAPI.cc:1288
#1  0x00000000004f3799 in TSHttpHookAdd (
    id=TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, contp=0x7fffec1141b0)
    at InkAPI.cc:4421
#2  0x000000000051b3e6 in PrefetchProcessor::start (this=0x9e86a0)
    at Prefetch.cc:848
#3  0x000000000052861a in TransformProcessor::start (this=0x9e9484)
    at Transform.cc:86
#4  0x000000000050b0a4 in main (argc=1, argv=0x7fffffffe7b8) at Main.cc:1696

Please help .


Thank you.

Re: Prefetch enabling error

Posted by Yongming Zhao <mi...@gmail.com>.
please file a bug in the jira issues, I am sure we have broken the prefetch in our master tree.

thanks

在 2013-7-2,下午9:40,Avinash Uttav <ut...@gmail.com> 写道:

> I tried to enable the prefetch functionality in my apache traffic server .
> I followed the steps suggested in prefetch config file .
> 1. added
> CONFIG proxy.config.prefetch.prefetch_enabled INT 1
> in records.config .
> 2. uncommented prefetch children and gave my ip .
> 3. uncommented those default tags in the end 
> 
> I tried with traffic server 3.2.0 and it seemed to be working fine .
> right now I m using Apache Traffic server 3.3.4 developers version.
> 
> now this is the log and back trace i m getting after running traffic server with these configurations.
> 
> Layout configuration
>           --prefix = '/home/avinash/ats2'
>      --exec_prefix = '/home/avinash/ats2'
>           --bindir = '/home/avinash/ats2/bin'
>          --sbindir = '/home/avinash/ats2/bin'
>       --sysconfdir = '/home/avinash/ats2/etc/trafficserver'
>          --datadir = '/home/avinash/ats2/share/trafficserver'
>       --includedir = '/home/avinash/ats2/include'
>           --libdir = '/home/avinash/ats2/lib'
>       --libexecdir = '/home/avinash/ats2/libexec/trafficserver'
>    --localstatedir = '/home/avinash/ats2/var'
>       --runtimedir = '/home/avinash/ats2/var/trafficserver'
>           --logdir = '/home/avinash/ats2/var/log/trafficserver'
>           --mandir = '/home/avinash/ats2/man'
>          --infodir = '/home/avinash/ats2/info'
>         --cachedir = '/home/avinash/ats2/var/trafficserver'
> [TrafficServer] using root directory '/home/avinash/ats2'
> [New Thread 0x7ffff5289700 (LWP 21079)]
> [Jul  2 19:04:26.895] Server {0x7ffff7fd1720} DEBUG: (http_init) proxy.config.ht                                                                                                              tp.redirection_enabled = 0
> [Jul  2 19:04:26.895] Server {0x7ffff7fd1720} DEBUG: (http_init) proxy.config.ht                                                                                                              tp.number_of_redirections = 1
> [Jul  2 19:04:26.895] Server {0x7ffff7fd1720} DEBUG: (http_init) proxy.config.ht                                                                                                              tp.post_copy_size = 2048
> [Jul  2 19:04:26.900] Server {0x7ffff7fd1720} DEBUG: (dns) ink_dns_init: called                                                                                                               with init_called = 0
> [New Thread 0x7ffff3e61700 (LWP 21080)]
> [New Thread 0x7ffff3d60700 (LWP 21081)]
> [New Thread 0x7ffff3c5f700 (LWP 21082)]
> [New Thread 0x7ffff3b5e700 (LWP 21083)]
> [New Thread 0x7ffff3a5d700 (LWP 21084)]
> [New Thread 0x7ffff385b700 (LWP 21085)]
> [New Thread 0x7ffff3659700 (LWP 21086)]
> [New Thread 0x7ffff3457700 (LWP 21087)]
> [Jul  2 19:04:26.916] Server {0x7ffff7fd1720} DEBUG: (dns) localhost=Proxy1
> [Jul  2 19:04:26.916] Server {0x7ffff7fd1720} DEBUG: (dns) Round-robin nameserve                                                                                                              rs = 0
> [New Thread 0x7ffff2e4e700 (LWP 21088)]
> [New Thread 0x7ffff2c4c700 (LWP 21089)]
> [New Thread 0x7ffff2a4a700 (LWP 21090)]
> [New Thread 0x7ffff2848700 (LWP 21091)]
> [New Thread 0x7ffff2646700 (LWP 21092)]
> [New Thread 0x7ffff2444700 (LWP 21093)]
> [New Thread 0x7ffff2242700 (LWP 21094)]
> [New Thread 0x7ffff2040700 (LWP 21095)]
> [New Thread 0x7ffff1e3e700 (LWP 21096)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00000000004eb21f in HttpAPIHooks::append (this=0x0,
>     id=TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, cont=0x7fffec1141b0)
>     at InkAPI.cc:1288
> 1288      hooks_set = 1;
> 
> 
> 
> 
> and this is the back trace 
> 
> #0  0x00000000004eb21f in HttpAPIHooks::append (this=0x0,
>     id=TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, cont=0x7fffec1141b0)
>     at InkAPI.cc:1288
> #1  0x00000000004f3799 in TSHttpHookAdd (
>     id=TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK, contp=0x7fffec1141b0)
>     at InkAPI.cc:4421
> #2  0x000000000051b3e6 in PrefetchProcessor::start (this=0x9e86a0)
>     at Prefetch.cc:848
> #3  0x000000000052861a in TransformProcessor::start (this=0x9e9484)
>     at Transform.cc:86
> #4  0x000000000050b0a4 in main (argc=1, argv=0x7fffffffe7b8) at Main.cc:1696
> 
> Please help .
> 
> 
> Thank you.
> 
> 
> 
> 
> 
>