Subject: | POE Stacktrace |
Date: | Mon, 28 May 2018 12:26:41 +0200 |
To: | bug-poe [...] rt.cpan.org |
From: | Markus Schräder <markus.schraeder [...] cryptomagic.eu> |
please report this stacktrace to bug-poe@rt.cpan.org at
/usr/share/perl5/POE/Kernel.pm line 1070.
POE::Kernel::_dispatch_event(POE::Kernel=ARRAY(0x55688a50a180),
undef, POE::Kernel=ARRAY(0x55688a50a180), "_stop", 8,
ARRAY(0x55688b9baba8), "/usr/share/perl5/POE/Resource/Sessions.pm", 572,
...) called at /usr/share/perl5/POE/Resource/Sessions.pm line 569
POE::Kernel::_data_ses_stop(POE::Kernel=ARRAY(0x55688a50a180), 6)
called at /usr/share/perl5/POE/Resource/Signals.pm line 551
POE::Kernel::_data_sig_free_terminated_sessions(POE::Kernel=ARRAY(0x55688a50a180))
called at /usr/share/perl5/POE/Kernel.pm line 990
POE::Kernel::_dispatch_signal_event(POE::Kernel=ARRAY(0x55688a50a180),
POE::Session=ARRAY(0x55688b9ba5a8), POE::Kernel=ARRAY(0x55688a50a180),
"_signal", 4096, ARRAY(0x55688ba7ea88),
"/usr/share/perl5/POE/Kernel.pm", 1136, ...) called at
/usr/share/perl5/POE/Resource/Events.pm line 381
POE::Kernel::_data_ev_dispatch_due(POE::Kernel=ARRAY(0x55688a50a180))
called at /usr/share/perl5/POE/Loop/Select.pm line 309
POE::Kernel::loop_do_timeslice(POE::Kernel=ARRAY(0x55688a50a180)) called
at /usr/share/perl5/POE/Loop/Select.pm line 317
POE::Kernel::loop_run(POE::Kernel=ARRAY(0x55688a50a180)) called at
/usr/share/perl5/POE/Kernel.pm line 1291
POE::Kernel::run(POE::Kernel=ARRAY(0x55688a50a180)) called at
loader.pl line 25
The problem only occures if I use the following function:
sub poe_sleep {
my $seconds = shift;
POE::Session->create(
inline_states => {
_start => sub {
$poe_kernel->delay("done" => $seconds);
},
done => sub {
undef $seconds;
},
},
);
while (defined($seconds)) {
$poe_kernel->run_one_timeslice;
};
}
--
Markus Schräder
Geschäftsführer
CryptoMagic GmbH, Werner-von-Siemens Str. 6, 86159 Augsburg, https://www.cryptomagic.eu
Tel: 0821 / 217 009-0 (Durchwahl: -11), Fax: 0821/217 009-99
Geschäftsführer: Markus Schräder
Sitz der Gesellschaft: Augsburg; Registergericht: Amtsgericht Augsburg; Registernummer: HRB30402
USt-ID: DE305330428, St-Nr: 103/123/80744