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

Dead lock when printing objects with *print-circle* #465

Open
Affonso-Gui opened this issue Sep 10, 2021 · 0 comments
Open

Dead lock when printing objects with *print-circle* #465

Affonso-Gui opened this issue Sep 10, 2021 · 0 comments

Comments

@Affonso-Gui
Copy link
Member

How to reproduce:

(setq c (instance object))
(setq *print-circle* t)
c
;; dead lock

What is happening:

  1. prinx
  2. mutex_lock to keep mark&unmark together (https://github.com/euslisp/EusLisp/blob/master/lisp/c/printer.c#L622-L630)
  3. prin1
  4. send obj :prin1 (https://github.com/euslisp/EusLisp/blob/master/lisp/c/printer.c#L589)
  5. format ... (https://github.com/euslisp/EusLisp/blob/master/lisp/l/object.l#L15-L20)
  6. prinx
  7. dead lock

Not really sure how we should solve this... 🤔

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

No branches or pull requests

1 participant