Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors serving rpc client #7390

Closed
jchavarri opened this issue Mar 23, 2023 · 2 comments
Closed

Errors serving rpc client #7390

jchavarri opened this issue Mar 23, 2023 · 2 comments
Assignees
Labels

Comments

@jchavarri
Copy link
Collaborator

jchavarri commented Mar 23, 2023

Using latest dune from main branch (commit eed25bf), I am seeing these errors every time I run it on watch mode:

Error: encountered error serving rpc client (id 0)
File "src/csexp_rpc/io_buffer.ml", line 45, characters 2-8: Assertion
failed
backtrace:
Raised at Csexp_rpc__io_buffer.write_char_exn in file
"src/csexp_rpc/io_buffer.ml", line 45, characters 2-41
Called from Stdlib__List.iter in file "list.ml", line 110, characters
12-15
Called from Csexp_rpc__io_buffer.write_csexps.loop in file
"src/csexp_rpc/io_buffer.ml", line 76, characters 6-29
Called from Stdlib__List.iter in file "list.ml", line 110, characters
12-15
Called from Csexp_rpc__io_buffer.write_csexps.loop in file
"src/csexp_rpc/io_buffer.ml", line 76, characters 6-29
Called from Stdlib__List.iter in file "list.ml", line 110, characters
12-15
Called from Csexp_rpc__io_buffer.write_csexps.loop in file
"src/csexp_rpc/io_buffer.ml", line 76, characters 6-29
Called from Stdlib__List.iter in file "list.ml", line 110, characters
12-15
Called from Csexp_rpc__io_buffer.write_csexps.loop in file
"src/csexp_rpc/io_buffer.ml", line 76, characters 6-29
Called from Stdlib__List.iter in file "list.ml", line 110, characters
12-15
Called from Csexp_rpc__io_buffer.write_csexps.loop in file
"src/csexp_rpc/io_buffer.ml", line 76, characters 6-29
Called from Stdlib__List.iter in file "list.ml", line 110, characters
12-15
Called from Csexp_rpc.Session.write in file "src/csexp_rpc/csexp_rpc.ml",
line 240, characters 10-46
Called from Fiber__scheduler.exec in file "otherlibs/fiber/src/scheduler.ml",
line 73, characters 8-11

Also, this one appears after the first compiler error message:

Error: encountered error serving rpc client (id 0)
Sys_error("Mutex.lock: Resource deadlock avoided")
backtrace:
Raised by primitive operation at Csexp_rpc.Session.write in file
"src/csexp_rpc/csexp_rpc.ml", line 239, characters 10-32
Called from Fiber__scheduler.exec in file "otherlibs/fiber/src/scheduler.ml",
line 73, characters 8-11
@jchavarri jchavarri added the bug label Mar 23, 2023
@nojb
Copy link
Collaborator

nojb commented Mar 23, 2023

Maybe related to #7319? cc @rgrinberg

@rgrinberg rgrinberg self-assigned this Mar 23, 2023
@rgrinberg
Copy link
Member

Indeed it's related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants