yallop / ocaml-ctypes

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

Segfault on macOS/arm64 #730

Open kit-ty-kate opened 1 year ago

kit-ty-kate commented 1 year ago
#=== ERROR while compiling ctypes.0.20.2 ======================================#
# context              2.1.4 | macos/arm64 | ocaml-base-compiler.5.0.0 | pinned(https://github.com/ocamllabs/ocaml-ctypes/archive/0.20.2.tar.gz)
# path                 ~/.opam/5.0.0/.opam-switch/build/ctypes.0.20.2
# command              ~/.opam/opam-init/hooks/sandbox.sh build make test
# exit-code            2
# env-file             ~/.opam/log/ctypes-69717-356276.env
# output-file          ~/.opam/log/ctypes-69717-356276.out
### output ###
[...]
# OK
# running test-complex
# ...
# Ran: 3 tests in: 0.00 seconds.
# OK
# running test-bools
# ..
# Ran: 2 tests in: 0.00 seconds.
# OK
# running test-callback_lifetime
# ../bin/sh: line 1: 79339 Segmentation fault: 11  CAML_LD_LIBRARY_PATH=. LD_LIBRARY_PATH=clib DYLD_LIBRARY_PATH=clib ./test-callback_lifetime.native -runner sequential
# make: *** [run-test-callback_lifetime] Error 139

noticed in https://github.com/ocaml/opam-repository/pull/23357