Re: Latest perl JSON::XS failing when threaded

2016-06-17 Thread Achim Gratz
Wayne Davison writes: > As for thread support, it looks like I need to start using > Cpanel::JSON::XS (which might be nice to get added into cygwin). I > noticed that the newly added JSON::MaybeXS will choose > Cpanel::JSON::XS first if it is around (unlike "JSON", which just > seems to choose bet

Re: Latest perl JSON::XS failing when threaded

2016-03-15 Thread Wayne Davison
On Sun, Mar 13, 2016 at 10:21 AM, Achim Gratz wrote: > I've found a patch at least for the scenario that your test case uses. Thanks -- the new version does indeed get things back to "normal" (how things were behaving before). As for thread support, it looks like I need to start using Cpanel::JS

Re: Latest perl JSON::XS failing when threaded

2016-03-13 Thread Achim Gratz
Wayne Davison writes: > I updated cygwin today, and now perl JSON::XS fails to be able to > decode json data if it is run in a multi-threaded script. As said before, the use of JSON::XS with threads is not supported by upstream. That said, I've found a patch at least for the scenario that your te

Re: Latest perl JSON::XS failing when threaded

2016-03-05 Thread Achim Gratz
Wayne Davison writes: > Note that it is complaining about the arg not being an object when > decoding takes a string. If I pass it an object, it accepts the > wrong-typed var and fails with a parsing error. The error message is about the return value of the decode and it is the result of a new tes

Re: Latest perl JSON::XS failing when threaded

2016-03-04 Thread Achim Gratz
Achim Gratz writes: > Wayne Davison opencoder.net> writes: >> I updated cygwin today, and now perl JSON::XS fails to be able to >> decode json data if it is run in a multi-threaded script. > > That's the expected outcome, see: > http://search.cpan.org/dist/JSON-XS/XS.pm#THREADS Since you mentione

Re: Latest perl JSON::XS failing when threaded

2016-03-04 Thread Achim Gratz
Wayne Davison opencoder.net> writes: > I updated cygwin today, and now perl JSON::XS fails to be able to > decode json data if it is run in a multi-threaded script. That's the expected outcome, see: http://search.cpan.org/dist/JSON-XS/XS.pm#THREADS > I forcefully uninstalled JSON::XS and the bug

Latest perl JSON::XS failing when threaded

2016-03-03 Thread Wayne Davison
I updated cygwin today, and now perl JSON::XS fails to be able to decode json data if it is run in a multi-threaded script. I tested both x86_64 and x86 32-bit versions of cygwin, and they both have the issue: once I launch a new thread, JSON::XS refuses to parse anything, even in the primary thre