On Friday, June 13, 2014 1:37:43 AM UTC+5:30, Saúl Ibarra Corretgé wrote:
>
> -----BEGIN PGP SIGNED MESSAGE----- 
> Hash: SHA1 
>
> On 06/12/2014 08:19 PM, Ashish wrote: 
> > 
> > When uv_tcp_connect was in progress, I had to stop event loop. And 
> > it crashed. 
>
> How did you stop it? How did it crash? 
>


While connection was still in progress (not yet received callback for 
uv_tcp_connect), and application called uv_stop(loop) through timer event

The call succeeds. Then uv_run function proceeds and when it calls 
uv_process_endgames, application crashes inside uv_async_endgame (async.c)

Unhandled exception at 0x0043232d in Hubble.exe: 0xC0000005: Access 
violation writing location 0x014ceb34.

Here is call stack:
> application.exe!uv_async_endgame(uv_loop_s * loop=0x004c8e08, uv_async_s 
* handle=0x004a8560)  Line 35 + 0xc bytes C
  application.exe!uv_process_endgames(uv_loop_s * loop=0x004c8e08)  Line 
138 + 0xd bytes C
  application.exe!uv_run(uv_loop_s * loop=0x004c8e08, uv_run_mode 
mode=UV_RUN_DEFAULT)  Line 281 + 0x9 bytes C
  application.exe!main(int argc=3, char * * argv=0x00b435d0)  Line 1919 + 
0xd bytes C++
  application.exe!__tmainCRTStartup()  Line 278 + 0x19 bytes C
  application.exe!mainCRTStartup()  Line 189 C

I confirmed, had I received uv_tcp_connect callback, it would not crash.

Any help would be really great.

Tnx,
Ashish
 

>
> > Is there any way to cancel call in progress ? (I read uv_cancel. 
> > But seems it has limitations. Also not on Windows) 
> > 
>
> There is currently no way to cancel an ongoing connect request. 
> uv_cancel only cancels threadpool operations, but just on Unix for the 
> time being. 
>
> - -- 
> Saúl Ibarra Corretgé 
> bettercallsaghul.com 
>
> -----BEGIN PGP SIGNATURE----- 
> Version: GnuPG v1 
> Comment: Using GnuPG with Icedove - http://www.enigmail.net/ 
>
> iQIcBAEBAgAGBQJTmghPAAoJEEEOVVOum8BZRi4P/0I3IcU7bWKuJ3CKAJmfoIHC 
> Sy65ylzWzvpYXa1X/VBgPpVQT1QA2SOFEpfp+D/iDXLK7WEH2OogthKQ8MsHlbYV 
> cJ6KKrwsErT1j2cnAtJDnBQ2e4kpHMECoi6g71CDYy6L/xga7giLGLWA0S28FMGe 
> gflwLbAAyyaIdyqOyDbt1LMniOY+qVCVdOnpV1IUOsNyNN4kKcFj0Ve1dMMj2SkV 
> julg8NiBpWRhQ3GrJZoxQl8xa8NKAOgnsSmk4tWVBU0an1/jpCTwhr/5aeHYlBNK 
> IxgV/m3fH57G6u13tsOBE81ri1lnCLaySVW6K+mo/vF1CRuw/XykcfeyUx8rW0XJ 
> E7wTnQ60kSrcrLSsH/D0rr514xrm5mX2+pH/L6AsmK1VbkCfoy/KHK+wdVThTbHk 
> jw8nGgZae97o4rA4lRMOX4NveBPs21Fx/NJZ6Foga5SzRs/9U4XaAuqCeyag2bx0 
> uN/SXrYaipXgtKOyjTzFSHl2DG3jEW/fvUVGJ36C7EtYc8gLW6f+R8ReEnCSOiBX 
> U41M1LMS5AGOYAwc1Ag6h70JyZc016rAnO5JZqi2rxstljwyCLw882UNr6w9EDRl 
> 3SBVsvfgbDPDw5fvpeY3T11lFZI05rcyF6+v22+qWxFGFz9gut778WPRTkY1Sc2S 
> Q+X/3XcvTFe12LJ5/8E+ 
> =Mj2k 
> -----END PGP SIGNATURE----- 
>

-- 
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