Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Safefree() after a fork()?

0 views
Skip to first unread message

Felipe Gasper

unread,
Jan 4, 2020, 11:45:03 PM1/4/20
to win32-...@perl.org
Hello,

I have a failing test for an XS module in Win32, and I’ve 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 “subprocess”, the buffer from step 1 is Safefree()d.

Does Win32 require any special handling of this circumstance? I’m getting “Free to wrong pool …” errors on the Safefree().

Thank you for reading and for any insights you may be able to offer!

cheers,
-Felipe Gasper
0 new messages