Closed albertlotw closed 3 years ago
Thank you for reporting this. Can you please let me know if #321 would also resolve this bug?
I just tried the newly created branch graham/fix-cygwin-hang
.
It is improved, but it still hangs on a later test item. I think it's because this object got destroyed early.
@sjaluo thanks. I've updated the PR can you check it?
Yes. I can finish and pass all the test items on Cygwin now. Thanks!
@sjaluo FYI- I released this as 1.43.
I am pretty sure I have made changes like this in the past to get cygwin working, so I've added cygwin (and msys2) to CI so that we can catch this when incompatible changes happen rather than afterward #322
I have successfully compiled FFI::Platypus module in my Cygwin environment. However, running
make test
got hung. It occurred on running test filet/ffi_platypus_bundle.t
. After disablingCapture::Tiny
and running the test program alone, I got the error outputsIt shows
child_info_fork::abort
error repeated endlessly.After some tracing and trying, I figure out it was due to deleting of
cygbar1.dll
afterrequire Foo::Bar1
. The deletion of the DLL was done on calling$build->clean
, where$build
is a FFI::Build object. The deletion also happens on destruction of$root
, which is aFFI::Temp
object. I made a modification of the test file as attached, where it preserves$build
and$root
of each test and destroys them only after all bundle test finished. After the modify, all the bundle tests run smoothly on my Cygwin.bundle_test.patch.gz