in reply to Re: Is this a bug in perl or a bug in me?
in thread Is this a bug in perl or a bug in me?
Looking at memread in http://cpansearch.perl.org/src/MHX/IPC-SysV-2.03/SysV.xs, my guess is that the IV field of the variable remains untouched when reading/writing the string portion of the shared memory:
... SvPV_force_nolen(sv); dst = SvGROW(sv, (STRLEN) size + 1); Copy(caddr + pos, dst, size, char); SvCUR_set(sv, size); ...
(assuming that none of the macros actually reset the IV slot). I think this could be construed as a bug.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is this a bug in perl or a bug in me?
by Wheely (Acolyte) on Sep 05, 2011 at 19:37 UTC | |
by Corion (Patriarch) on Sep 06, 2011 at 11:37 UTC | |
by Anonymous Monk on Sep 05, 2011 at 21:03 UTC | |
|
Re^3: Is this a bug in perl or a bug in me?
by JavaFan (Canon) on Sep 05, 2011 at 23:22 UTC |