Nice catch.
You  answer my similar question. 
I freeing the handle after called uv_close incorrectly  rathen then 
uv_close_cb.


kenshin

On Monday, July 7, 2014 12:45:48 PM UTC+8, Iñaki Baz Castillo wrote:
>
> Hi, it is not possible to check all your code, but it seems to me that you 
> are closing a handle via uv_close (handle) and then freeing the handle 
> before the uv_close_cb.
>
> --
> Iñaki Baz Castillo
> <[email protected] <javascript:>>
> On Jul 7, 2014 5:06 AM, "俞江" <[email protected] <javascript:>> wrote:
>
>> I use luv[1] (update libuv to latest version) and write pure lua program 
>> on Freebsd
>>
>> libuv core dump at core.c function uv__finish_close: 
>> assert(handle->flags & UV_CLOSING);
>>
>> use gdb see handle->flags = 0 and handle->type =  UV_UNKNOWN_HANDLE
>>
>> I notice the  uv_close checked type and flags, how did it happened? 
>>
>> [1] https://github.com/richardhundt/luv
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "libuv" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> Visit this group at http://groups.google.com/group/libuv.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to