Safefree() after a fork()?
[email protected] (Felipe Gasper) Sat, 4 Jan 2020 23:32:24 -0500
| Newsgroups | perl.win32.vanilla |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have a failing test for an XS module in Win32, and I=E2=80=99ve = isolated it to what I think is about the smallest-possible reproduction: https://github.com/FGasper/p5-win32-safefree-bug In brief: 1) Newxz() allocates a buffer. 2) fork() 3) In the =E2=80=9Csubprocess=E2=80=9D, the buffer from step 1 is = Safefree()d. Does Win32 require any special handling of this circumstance? = I=E2=80=99m getting =E2=80=9CFree to wrong pool =E2=80=A6=E2=80=9D = errors on the Safefree(). Thank you for reading and for any insights you may be able to = offer! cheers, -Felipe Gasper=