[Varnish] #1287: Varnish 3.0.3 - segfault in libvarnish.so.

Varnish varnish-bugs at varnish-cache.org
Fri May 31 13:47:27 CEST 2013


#1287: Varnish 3.0.3 - segfault in libvarnish.so.
------------------------------------+--------------------
 Reporter:  robroy                  |       Owner:
     Type:  defect                  |      Status:  new
 Priority:  normal                  |   Milestone:
Component:  varnishd                |     Version:  trunk
 Severity:  normal                  |  Resolution:
 Keywords:  segfault libvarnish.so  |
------------------------------------+--------------------

Comment (by lygie):

 Hi,
 is it the wrong way to use a custom error-page like this?
 I may have a similar issue, as i have random segfaults about every 10000
 connections, too.
 vcl_error looks like this:

 {{{
 sub vcl_error {
     set obj.http.Content-Type = "text/html; charset=utf-8";
     if (obj.status == 750) {
             set obj.http.Location = req.http.X-Redirect;
             set obj.status = 302;
             return(deliver);
     } else if (obj.status == 751) {
         set obj.status = 200;
         set obj.response = "OK";
         synthetic {"
             <html>
               <head>
                 <meta name="referrer" content="never">
                 <meta http-equiv="refresh" content="0;url="} +
 req.http.X-Redirect + {"">
               </head>
                 <body>
                 </body>
             </html>
         "};
         return(deliver);
     } else {
         synthetic {"
             <?xml version="1.0" encoding="utf-8"?>
             <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
             <html>
                 <head>
                     <title>"} + obj.status + " " + obj.response +
 {"</title>
                 </head>
                 <body>
                     <h1>Error "} + obj.status + " " + obj.response +
 {"</h1>
                     <p>"} + obj.response + {"</p>
                     <h3>Guru Meditation:</h3>
                     <p>XID: "} + req.xid + {"</p>
                     <address><a href="http://www.varnish-
 cache.org/">Varnish</a></address>
                 </body>
             </html>
         "};
         return(deliver);
     }
 }

 }}}

 I was never able to reproduce the error by myself. Purging has no
 influence, I tried to make some wired testing connections, but ll are
 fine. Only the live system crashes every 10000 connections.

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




More information about the varnish-bugs mailing list