Subject: | Upgrading perl from 5.18.2 to 5.20.0 results in 'Bizarre copy...' error |
Date: | Sat, 7 Jun 2014 19:14:40 -0600 |
To: | Bugs in Finance-InteractiveBrokers-SWIG via RT <bug-Finance-InteractiveBrokers-SWIG [...] rt.cpan.org> |
From: | Glenn Golden <gdg [...] zplane.com> |
Hello again Jason,
Apologies for tapping your shoulder yet again, but this looks like a show
stopper, at least for anyone using perl 5.20:
After upgrading from perl 5.18.2 to 5.20.0, calling eConnect() consistently
produces the following error:
Bizarre copy of UNKNOWN in scalar assignment at
/[blah blah]/Finance/InteractiveBrokers/SWIG.pm line 206.
F:IB versions in use are API 0.04, SWIG 0.12.
I'm sure this is related to the perl version upgrade, as it did not occur
prior to the upgrade, only after; nothing in my code changed and I did not
rebuild any of your modules.
(The perl upgrade was done as a result of a general Arch repo synch that I
did earlier today, so quite a few other packages got upgraded along with
perl.)
After doing some homework reading up on this error (though honestly not
entirely understanding what I read) it seemed that one possibility is that
5.20.0 perl was built with options that are incompatible with the options
used when building the module. So, out of superstition, I tried rebuilding
both F::IB::API and F::IB::SWIG after the general system upgrade. No help.
Downgrading back to 5.18.2 restored previous (normal) behavior, but I do not
know (yet!) what else in my system may break as a result of using a now out
of date perl, so this is only a temporary fix.
Let me know what other info you may need, gdb-ing, etc.
Glenn