Subject: | random crashes on newer strawberry perls |
Moving discussion to ticket:
Le 23/02/2015 18:43, Christian Walde a écrit :
Show quoted text
> We've recently been puzzling over perl crashes on windows, that might
> have to do with indirect.pm. They can sometimes be reproduced (at least
> under Win7-64) with this package:
>
> http://strawberryperl.com/package/kmx/tmp-for-mithaldu/ (includes the
> appropiate gdb and other pieces)
>
> By running the portable batch, and doing these steps:
>
> run portableshell.bat
> cd Microidium
> set PERL_STRICTURES_EXTRA=1
> perl bin\microidium_server
>
> Note that this is a heisenbug in the purest sense. Sometimes it occurs,
> sometimes it doesn't, and so far trying to observe the bug more directly
> i.e. by adding print statements or running the code with gdb seems to
> make the crashes go away.
>
> The only decisive difference we've been able to identify so far is that
> these crashes happen on Strawberry 5.18+, which has a different gcc than
> its predecessors.
I've also got to add that a different, more reliable way of reproducing is to replae the last step above with:
cpan shell
test Moo
Vincent's first reply was:
Show quoted text> Try to replace the two occurrences of SvPV_const() in indirect_find() by
> SvPV_force(). This may cause some const related compiler warnings,
> ignore them.
I tried that, and it resulted in the tests falling over completely with lots of errors like this:
Modification of a read-only value attempted at (eval 8) line 3.
https://gist.github.com/wchristian/0f18887135396ae71558