I was trying to debug this problem which others have reported too, and
I saw that sock.c:close_socket() was being called on the same fd twice
in a row, so the second time, the free(co->buffer_in.data) in
close_socket() will try to free memory already freed.

As a safety measure, I tried modifiying it as follows:

    if (co->buffer_in.data != NULL) {
        free(co->buffer_in.data);
+      co->buffer_in.data = NULL;
    }

It's not crashing now, but I'm not sure if I'm just masking a deeper
problem this way.

But maybe it points someone in the right direction.
--
Thanks,
TIm

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to