hackwaly / ocamlearlybird

OCaml debug adapter
MIT License
208 stars 23 forks source link

Process leak often after disconnect debugging session #10

Closed hackwaly closed 1 year ago

hackwaly commented 5 years ago

btw, i'm often getting

ocamlearlybird: internal error, uncaught exception:
                Unix.Unix_error(Unix.EADDRINUSE, "bind", "")
                Raised by primitive operation at unknown location
                Called from file "src/unix/lwt_unix.cppo.ml", line 1631, characters 52-74
                Called from file "src/unix/lwt_io.ml", line 1615, characters 4-22
                Called from file "src/unix/lwt_io.ml", line 1674, characters 4-88
                Called from file "ocaml_debug_adapter/main.ml", line 23, characters 16-138
                Called from file "src/core/lwt.ml", line 2101, characters 16-20
                Called from file "ocaml_debug_adapter/main.ml", line 33, characters 4-57
                Called from file "src/core/lwt.ml", line 3008, characters 28-29
                Called from file "src/unix/lwt_main.ml", line 42, characters 8-18
                Called from file "cmdliner_term.ml", line 25, characters 19-24
                Called from file "cmdliner.ml", line 116, characters 32-39

when rerunning debugger. I guess that the debug server is not gracefully closed when session ends.

Originally posted by @villesau in https://github.com/hackwaly/ocamlearlybird/issues/8#issuecomment-448775256

hackwaly commented 5 years ago

Fixed in 0.1.5 https://github.com/ocaml/opam-repository/pull/13190