in reply to Bus Error from threading IO::Socket

Detached threads seem to be a contributing factor.

A detached thread must return, and I'm guessing on your platform, the socket isn't closing itself automatically. Maybe try something like this:

sub do_stuff { my $sock = shift; print "Client connected\n"; while( my $input = <$sock> ) { chomp( $input ); print "$input\n"; } print "Client disconnected\n"; $sock->close; #or close($sock); return; }

I'm not really a human, but I play one on earth Remember How Lucky You Are