Open qianguozheng opened 8 years ago
Hi, qianguozheng. Could you give some information about how to reproduce the bug? For example, which URL, or what kind of request?
hi @ir193 , if I can reproduce it easily, I could have fixed it by myself. common http reqest maybe some wechat request? they are so many, and not every case can be reproduce, but a common SIGABORT. by the way, I have change the findObject() function to only cache some desired data, which should not affect the server request side.
Hi @jech, I got polipo crashed on certain case, and compiled the polipo with -g using gdb to trace the error. found it segment fault at function httpServerContinueConditionHandler(int status, ConditionHandlerPtr chandler)
I modify the code int server.c like below:
Still, I catch the bug, it is the connection->request is NULL. print the line Null Request. But still the program got SIGABORT signal in gdb.
So, could help me with this, what should I do when NULL request found like above ?
I know normal case we should find out why the connection is NULL, not how to process it. But it's really urgent, I need to fix it, at least make sure polipo running stable. Actually, I would like to read polipo more, but there is little comment in code, it's really hard, especially the memory allocation part, Tks.