hackwaly / ocamlearlybird

OCaml debug adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process leak often after disconnect debugging session

hackwaly opened this issue · comments

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 #8 (comment)