Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Gluten, Lwt and Httpaf only repro #1

Merged
merged 1 commit into from
Apr 26, 2022
Merged

Gluten, Lwt and Httpaf only repro #1

merged 1 commit into from
Apr 26, 2022

Conversation

patricoferris
Copy link
Owner

This adds a smaller test that removes all of the Dream mechanics. Again, quickly refreshing http://localhost:8080 causes the program to crash on macOS. Note that the bug does not appear when using the upstream https://github.com/inhabitedtype/httpaf but instead only appears when using Dream's fork of httpaf to use the gluten-style server.

The bug seems somewhat reminiscent of ocsigen/lwt#742 i.e. at some point the references to the various underlying buffers are going missing and so we get the segfault. It does look like the global roots code changed between OCaml 4 and 5 (ocaml/ocaml@b123728).

@patricoferris patricoferris merged commit a878758 into main Apr 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant