segmentation fault when use overload '0+' in server

Danil Pismenny <[email protected]> Tue, 30 Mar 2004 09:45:47 -0500
Newsgroups gmane.comp.windows.devel.soap.general
Message-ID <LISTSERV%[email protected]>
This are two small examples that take segmentation fault


server.pl
---------
use strict;
use SOAP::Transport::TCP;
use overload ('0+'=> 'value');

SOAP::Transport::TCP::Server
  -> new (LocalAddr => 'localhost', LocalPort => 3000, Listen => 5, Reuse => 1)
  -> dispatch_to('throw') -> handle;

sub throw { bless {}, shift }

sub value { }


client.pl
---------
use SOAP::Lite;

print SOAP::Lite -> proxy('tcp://localhost:3000/') -> call(throw=>1);



-------------
This is perl, v5.6.1 built for i386-linux