yallop / ocaml-ctypes

Library for binding to C libraries using pure OCaml
MIT License
363 stars 95 forks source link

Investigate lifetime test failure on 4.12 / Windows build #677

Closed yallop closed 2 years ago

yallop commented 3 years ago

The lifetime test checks whether objects stay live during calls that release the runtime lock.

It consistently passes with all combinations of OCaml versions and operating systems, except one: OCaml 4.12 on Windows (e.g. this failed test run). It passes with OCaml 4.11 on Windows.

We need to determine where the bug resides: in the test, in ctypes, or in some external component (e.g. OCaml's threading support on Windows).

yallop commented 3 years ago

This looks like a bug in OCaml: https://github.com/ocaml/ocaml/issues/10477