[Varnish] #1289: varnishncsa segfault in libvarnishapi

Varnish varnish-bugs at varnish-cache.org
Thu Apr 4 10:44:42 CEST 2013


#1289: varnishncsa segfault in libvarnishapi
------------------------------------------------------+--------------------
 Reporter:  tmagnien                                  |       Owner:
     Type:  defect                                    |      Status:  new
 Priority:  normal                                    |   Milestone:
Component:  varnishncsa                               |     Version:  3.0.3
 Severity:  normal                                    |  Resolution:
 Keywords:  varnishncsa segfault libvarnishapi vsl.c  |
------------------------------------------------------+--------------------

Comment (by luc):

 I've identified when log_ptr is incorrect.

 {{{
 *pp = (void*)(uintptr_t)vsl->log_ptr; /* Loose volatile */
 vsl->log_ptr = VSL_NEXT(vsl->log_ptr);
 }}}

 An assert just after the block trigger the error: ''Assert error in
 vsl_nextlog(), vsl.c line 202''
 {{{
 *pp = (void*)(uintptr_t)vsl->log_ptr; /* Loose volatile */
 vsl->log_ptr = VSL_NEXT(vsl->log_ptr);
 assert(vsl->log_ptr < vsl->log_end);
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1289#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list