The stupid question is the question not asked | |
PerlMonks |
Cpanel::JSON::XS crash under Perl 5.26.0by Athanasius (Archbishop) |
on Aug 19, 2017 at 06:52 UTC ( [id://1197643]=perlquestion: print w/replies, xml ) | Need Help?? |
Athanasius has asked for the wisdom of the Perl Monks concerning the following question: I’m trying to install MongoDB for Strawberry Perl 5.26.0:
under Windows 8.1 64-bit. One of MongoDB’s dependencies is BSON. which not only fails to install but actually crashes the Perl interpreter while doing so. After some debugging I eventually reduced the problem code to the following SSCCE:
Note that I have the following modules installed:
Now to the point: when I run the SSCCE, I get the following output:
and the Perl interpreter crashes. But if I change the JSON module:
the code completes successfully. I have also tested the SSCCE on Strawberry Perl 5.24.1, and it runs without a problem:
So, I have two sets of questions: (1) Can other monks confirm this behaviour under Perl 5.26.0? If so, is it confined to Windows or does it occur on other platforms as well? And does anyone know of a change from 5.24 to 5.26 which could account for this? Should I report it as a bug under Cpanel::JSON::XS? (2) Until the bug is fixed, what’s the best way to prevent JSON::MaybeXS from defaulting to Cpanel::JSON::XS? I can add -MJSON::XS to the command line when invoking a Perl script directly, but how can I get cpanm to do this? Or will I need to uninstall Cpanel::JSON::XS from my system? Thanks,
Back to
Seekers of Perl Wisdom
|
|