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

Deadlock in [rest device] when called from activation state machine #654

Closed
tcard opened this issue Nov 24, 2017 · 13 comments
Closed

Deadlock in [rest device] when called from activation state machine #654

tcard opened this issue Nov 24, 2017 · 13 comments
Assignees

Comments

@tcard
Copy link
Contributor

tcard commented Nov 24, 2017

A customer has reported a crash due to this. The call stack shows that [rest device] was called from the state machine while already holding the lock. We need to ensure this doesn't happen; we probably need a [rest device_nosync] method like the others we have around, and use that from the activation machine, and put an dispatch_async on entry points of the state machine.

@tcard
Copy link
Contributor Author

tcard commented Nov 24, 2017

Here's a screenshot of the crash:

screen shot 2017-11-24 at 10 23 32

@itolisto
Copy link

Hello @tcard and @ricardopereira

If I can help you, please let me know, I would gladly collaborate to solve this issue.

@itolisto
Copy link

itolisto commented Dec 8, 2017

Hello @tcard and @ricardopereira,

Just wondering if you have been able to take a look on this? And again, if there's anything I can do, I'll be happy to do it.

@ricardopereira
Copy link
Contributor

@itolisto Not yet, sorry. But I'll look at it today. You're using the push branch, right?

@itolisto
Copy link

itolisto commented Dec 8, 2017

@ricardopereira Yes, I’m using the push branch.

@itolisto
Copy link

Hi @ricardopereira,

Just checking again if you have had the chance to take a look on this. Sorry if I'm being annoying (: And again, if I can help please tell me. 👍

@ricardopereira
Copy link
Contributor

@itolisto Sorry. I had to deal with an other issue the other day. I'll reach you later today to test this out please 😊

@ricardopereira
Copy link
Contributor

I reproduced it successfully:

screen shot 2017-12-13 at 11 27 53

Basically, I'm calling activate() in a deactivate event.

@ricardopereira
Copy link
Contributor

A test should be added with this issue at #662

@ricardopereira
Copy link
Contributor

@itolisto Can you test the fix using the push-fix-654 branch please? Thanks 👍

@itolisto
Copy link

@ricardopereira Testing this right now.

@itolisto
Copy link

@ricardopereira I can't reproduce the issue anymore, I believe this is fixed. 👍

Thank you for your help

@ricardopereira
Copy link
Contributor

Good to hear! Thank you

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

No branches or pull requests

3 participants