Closed patricoferris closed 1 year ago
Doe the mirage-crypto-ec test suite run fine on your machine? Would be great if you could test the same version of mirage-crypto as you're using when compiling tls. My feat is that this is another occurence of https://github.com/mit-plv/fiat-crypto/issues/1606#issuecomment-1560122239 -- i.e. a bad C compiler (14.0.3) on macOS that does bad optimizations on arm64.
I'm slightly confused that you mention "cohttp-lwt-eio" in your inital message, but the samepl code and package versions include only cohttp-lwt-unix. But that shouldn't make any difference.
Doe the mirage-crypto-ec test suite run fine on your machine? Would be great if you could test the same version of mirage-crypto as you're using when compiling tls. My feat is that this is another occurence of https://github.com/mit-plv/fiat-crypto/issues/1606#issuecomment-1560122239 -- i.e. a bad C compiler (14.0.3) on macOS that does bad optimizations on arm64.
Tried the EC tests and they fail on my machine, so I think your inclination is correct :(
I'm slightly confused that you mention "cohttp-lwt-eio" in your inital message, but the samepl code and package versions include only cohttp-lwt-unix. But that shouldn't make any difference.
It was only mentioned because the original gist used cohttp-eio
but I wanted to remove Eio as a variable as it is much newer and less tested.
please try mirage-crypto-ec at 0.11.2, as PRed to opam-repository https://github.com/ocaml/opam-repository/pull/24461
Hello! Thank you for the great library.
On the OCaml discord someone mentioned having issues with tls-eio and making a GET request with cohttp-eio (see the #webdev channel). They linked this example https://gist.github.com/specialblend/90c074fa7c5ebc24a29239c4ccbc983a. I tried it and also got the same error. Trying it on a linux machine however did not reproduce the error. I tried the example using the Lwt stack and saw the same thing. A smaller repro is:
Debug log output
On Linux the debug log shows more or less the same thing but it continues past this point.
Package Versions
0.17.1
0.17.1
5.3.0
Hopefully I'm just doing something wrong, do let me know if I can help in any way.