Ok, I tried my best to do a debug:<div><br></div><div>Here is what i have.  I'm not a c programmer at all but it appears that I'm Varnish is failing to create a socket as the return from the socket creation call is -1 and errno set at 9 which I believe translates to <span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; ">EBADF/</span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; ">Bad file descriptor.</span></div>
<div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; "><br></span></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif">Feel free to tell me what I'm doing wrong or why this might be the case...</font></div>
<div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif">Thanks</font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif">Jacques</font></div>
<div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica, sans-serif"><br></font></div><div># gdb  /opt/extra/sbin/varnishd 14236</div>
<div><< bunch of statements >></div><div>(gdb) break vbp_connect</div><div>(gdb) cont</div><div><div>Continuing.</div><div>[New LWP    8        ]</div><div>[New Thread 8 (LWP 8)]</div><div>[Switching to Thread 8 (LWP 8)]</div>
<div><br></div></div><div><br></div><div><div>Breakpoint 1, vbp_connect (pf=2, sa=0x494290, salen=16, tmo=534) at cache_backend_poll.c:107</div><div>107             s = socket(pf, SOCK_STREAM, 0);</div><div>(gdb) n</div><div>
108             if (s < 0)</div><div>(gdb) p s</div><div>$1 = -1</div><div>(gdb) p errno</div><div>$2 = 9</div><div><div>(gdb) p sa</div><div>$3 = (const struct sockaddr *) 0x494290</div><div>(gdb) p sa.sa_family</div>
<div>$4 = 2</div><div>(gdb) p sa.sa_data</div><div>$5 = "\000PWî/Ì\000\000\000\000\000\000\000"</div></div><div><div>(gdb) c</div><div>Continuing.</div></div><div><br></div><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 11:41 AM, Kacper Wysocki <span dir="ltr"><<a href="mailto:kacperw@gmail.com">kacperw@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, Jul 13, 2010 at 6:09 PM, Jacques <<a href="mailto:whshub@gmail.com">whshub@gmail.com</a>> wrote:<br>

> Can you try to install with this as the configure:<br>
> VCC_CC="/usr/bin/gcc -pthreads -fpic -shared -m64 -o %o %s" \<br>
> CC=/usr/bin/gcc \<br>
> CFLAGS="-pthreads -m64" \<br>
> LDFLAGS="-pthreads" \<br>
> ./configure --prefix=/opt/extra --enable-debugging-symbols<br>
> --enable-diagnostics --enable-dependency-tracking<br>
> Or change the VCC_CC path if you have your gcc at a different location.<br>
> I don't get any panics.  The child process starts and runs fine.  Everything<br>
> runs just fine (except the 503s).<br>
> I've connected up to the child process with gdb just fine.  My question now<br>
> is where/what should I breakpoint to see why it is coming back as backend<br>
> not connected?<br>
<br>
</div>-pthreads seems to fix the issue I was seeing so that's not it and I<br>
can't reproduce your problem. Your 503's need debugging as per my 1st<br>
post:<br>
"make check" should report "All 174 tests passed"<br>
<div class="im"><br>
     9 FetchError   c no backend connection<br>
<br>
</div>you are hitting cache_fetch.c:357. While debugging, try different<br>
directors & debug.health.<br>
<br>
hth,<br>
 0k<br>
</blockquote></div><br></div>