Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Really Odd Bug With LWP and Device::SerialPort

by kschwab (Priest)
on Aug 08, 2013 at 21:47 UTC ( #1048651=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Really Odd Bug With LWP and Device::SerialPort
in thread Really Odd Bug With LWP and Device::SerialPort

Going down that line, the bug isn't triggered when pulling from an http:// url, but it IS triggered with an https:// (ssl) url. The output from Devel::Peek::Dump looks pretty much identical. Which I suppose means the answer isn't anywhere in MAGIC or utf8. Thanks for the pointers though.

# Devel::Peek::Dump output with https url (triggers bug) SV = PVMG(0x2fbcc3c) at 0x25e7ff4 REFCNT = 1 FLAGS = (PADMY,SMG,POK,pPOK,UTF8) IV = 0 NV = 0 PV = 0x2ff7034 "<!DOCT"\0 [UTF8 "<!DOCT"] CUR = 6 LEN = 12 MAGIC = 0x2f9066c MG_VIRTUAL = &PL_vtbl_mglob MG_TYPE = PERL_MAGIC_regex_global(g) MG_LEN = -1 # Devel::Peek::Dump output with http url (doesn't trigger bug) SV = PVMG(0x2e25434) at 0x2567ff4 REFCNT = 1 FLAGS = (PADMY,SMG,POK,pPOK,UTF8) IV = 0 NV = 0 PV = 0x2fe7c5c "<!DOCT"\0 [UTF8 "<!DOCT"] CUR = 6 LEN = 12 MAGIC = 0x2d96af4 MG_VIRTUAL = &PL_vtbl_mglob MG_TYPE = PERL_MAGIC_regex_global(g) MG_LEN = -1


Comment on Re^4: Really Odd Bug With LWP and Device::SerialPort
Download Code
Re^5: Really Odd Bug With LWP and Device::SerialPort
by runrig (Abbot) on Aug 09, 2013 at 16:43 UTC
    Not sure I understand...the "MAGIC" doesn't appear (at least for me) until after the substr (when the bug is not triggered), and so I was postulating that maybe it's the lack of MAGIC that triggers the bug. I can't comment on what actually triggers the bug since I'm not using serial ports...
      I think we're on the same page. Basically, I can trigger the bug on strings both with, and without magic. Deep and mysterious enough that I think I'll give up and just keep my fix in place.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048651]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-07-07 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls