Page 1 of 1

Deluge crash on Windows on parsing IPv6?

Posted: Mon Jan 14, 2008 3:31 am
by woofwoof
If running from deluge.exe all we can see is MS VC++ Runtime Library error, as with all other unhandled exceptions.
If running from python this is the error
terminate called after throwing an instance of 'asio::system_error'
what(): An invalid argument was supplied.

It crash not long after these codes (inet_ntop in socket_ops.hpp)
500 int result = error_wrapper(::WSAAddressToStringA(
501 reinterpret_cast<sockaddr*>(&address),
502 address_length, 0, dest, &string_length), ec);

I don't know why it suddenly parsed IPv6 address even when I only using IPv4.

Solved! Stupid Windows

Posted: Mon Jan 14, 2008 5:08 pm
by woofwoof
LMAO no wonder WSAAddressToStringA when passed with IPv6 address structure, it always return WSAEINVAL exception. It is because the IPv6 protocol not installed in the computer! WTF!

I bet this is the reason so many people encountering VC++ Runtime Library error on Windows.

Re: Deluge crash on Windows on parsing IPv6?

Posted: Mon Jan 14, 2008 8:42 pm
by Sharky
Windows XP - In October 2001, the latest desktop edition of Windows was released, bringing the reliability and performance of the Windows NT kernel to a much wider audience. Every copy of Windows XP, Home Edition and Professional, has an IPv6 stack based on the research that we started, released as a Developer Preview primarily for application porting. The stack is very easily manually installed from a command line just by typing ipv6 install. Click here for more information about IPv6 in Windows XP.
from: http://research.microsoft.com/msripv6/

If you are using windows XP try in the prompt the command:

Code: Select all

ipv6 install

Re: Deluge crash on Windows on parsing IPv6?

Posted: Mon Jan 14, 2008 11:32 pm
by loki
Yes, that could explain a lot. I was using vista so ipv6 setup by default. And I only had the c++ error back in 0.5.7, ever since then no problems.