AE::HTTP http_get segfaults with multiple downloads

Marc Lehmann schmorp at schmorp.de
Mon Feb 13 21:34:28 CET 2017


On Mon, Feb 13, 2017 at 04:51:04PM +0100, Peter Juhasz <pjuhasz at uhusystems.com> wrote:
> the following program segfaults:

This is almost certainly due to a bug in perl during global destruction, see
http://blog.schmorp.de/2015-11-12-tidbits-why-coro-crashes-or-how-perl-6-deals-with-bugs.html
for some details.

TL;DR: you get an exception, and perl starts to corrupt EV's data
structures before it prints out the actual exception message, so you end
up with a segfault and no useful message as to why.

> Now I know that it is not correct: the lines commented with ### are
> needed to make it work. Still, it should not crash even when it is
> incorrect.

I agree, but if it's the global destruction bug then its only fixable in
perl (it affects more or less all perl and XS modules to some degree), and
I am quite sure that will never happen!

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list