[erlang-bugs] Bug in the resolver?

Raimo Niskanen raimo+erlang-bugs@REDACTED
Tue Apr 12 12:30:08 CEST 2011


On Tue, Apr 12, 2011 at 10:27:48AM +0200, Ahmed Omar wrote:
> Any steps to reproduce it?
> 
> On Tue, Apr 12, 2011 at 8:25 AM, Evgeniy Khramtsov <xramtsov@REDACTED>wrote:
> 
> > We have a weird problem with inet_res in R14B02. Here is a snippet:
> >
> > =ERROR REPORT==== 2011-04-11 18:45:50 ===
> > ** State machine <0.6000.0> terminating
> > ....
> > ** Reason for termination =
> > ** {{case_clause,{{1302,533150,198860},undefined}},
> >    [{inet_res,do_udp_recv,5},
> >     {inet_res,query_udp_recv,6},
> >     {inet_res,query_ns,10},
> >     {inet_res,query_nss_dns,7},
> >     {inet_res,query_retries,6},
> >     {inet_res,res_getby_query,4},
> >     {inet_res,res_getby_search,6},
> >     {inet_res,getbyname,3}]}
> >
> > Any clue how to debug this?

The stacktrace was enough.

You must have called inet_res:getbyname(Name, Type, infinity),
and that was apparently not tested. The functions that calculate
the remaining time for do_udp_recv/5 are not written for a timeout of
'infinity' and crash for the subtraction of Now - 'undefined'.

This is a bug. Thank you for reporting it.

You should be able to work around it by using a long timeout value.

> >
> > --
> > Regards,
> > Evgeniy Khramtsov, ProcessOne.
> > xmpp:xram@REDACTED
> >
> > _______________________________________________
> > erlang-bugs mailing list
> > erlang-bugs@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-bugs
> >
> 
> 
> 
> -- 
> Best Regards,
> - Ahmed Omar
> http://nl.linkedin.com/in/adiaa
> Follow me on twitter
> @spawn_think <http://twitter.com/#!/spawn_think>

> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs


-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-bugs mailing list