Isn't that more of a "workaround" rather than a solution??Then you have some problem with Yahoo! products in your PC. Try Pidgin.
it crashes without ne errors ??
do you have a firewall installed ??
it seems some kind of firewall problem to me...see if when you disable the firewall and then try signing in..does it crash now...