I'm running polipo as a non-transparent caching proxy server and
privoxy as the transparent proxy forwarding request to polipo.

All works fine, but there is a segfault in server.c:1798 function
httpServerReplyHandler due to connection->request being NULL making
HTTPRequestPtr request also NULL.

(gdb) bt
#0  0x0806a466 in httpServerReplyHandler (status=0, event=0x517b508,
srequest=0x517b518) at server.c:1798 #1  0x0804da4d in
do_scheduled_stream (status=0, event=0x517b508) at io.c:366 #2
0x0804ca0b in eventLoop () at event.c:713 #3  0x08059dee in main
(argc=3, argv=0xbebc4cd4) at main.c:165 (gdb) l
1793        HTTPRequestPtr request = connection->request;
1794        int i, body;
1795        int bufsize = 
1796            (connection->flags & CONN_BIGBUF) ? bigBufferSize :
CHUNK_SIZE; 1797        
1798        assert(request->object->flags & OBJECT_INPROGRESS);
1799        if(status < 0) {
1800            if(connection->serviced >= 1) {
1801                httpServerRestart(connection);
1802                return 1;
(gdb) p request
$1 = (HTTPRequestPtr) 0x0
(gdb) p connection
$2 = (HTTPConnectionPtr) 0x6c57b28
(gdb) p connection->request
$3 = (struct _HTTPRequest *) 0x0

As you can see under some circumstances connection->request is NULL so
request will be also NULL.

I didn't come up with the actually issue why sometimes
connection->request is NULL, still investigating.

-- 
Robert Milasan

L3 Support Engineer
SUSE Linux (http://www.suse.com)
email: [email protected]
GPG fingerprint: B6FE F4A8 0FA3 3040 3402  6FE7 2F64 167C 1909 6D1A

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to