In using resolv.rb (ruby 1.6.7) to do name lookups, I noticed that the
classes UnconnectedUDP and ConnectedUDP create a new thread in
ititialize(). They don’t attempt to clean up the thread (or join() it),
however, so the following script eats up lots of memory and eventually
Is this behavior intended, or should these objects kill/join their
internal Thread objects?
I also noticed something strange. If I modify resolv.rb slightly to
allow me to kill and join the threads, I get a core dump. For example,
to the UnconnectedUDP class and changed my script above to say:
after a few hundred objects get created, the script core dumps.
Can anyone offer some help here?
Please CC me as I’m not on the list.