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 after call esp_bluedroid_disable() (IDFGH-8175) #9672

Closed
3 tasks done
fzboffice opened this issue Aug 29, 2022 · 4 comments
Closed
3 tasks done

deadlock after call esp_bluedroid_disable() (IDFGH-8175) #9672

fzboffice opened this issue Aug 29, 2022 · 4 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@fzboffice
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v4.4.2-174-g134170a6fc

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

No response

Development Kit.

Custom Board

Power Supply used.

External 3.3V

What is the expected behavior?

调用esp_bluedroid_disable()后应正常

What is the actual behavior?

调用esp_bluedroid_disable()后被死锁

Steps to reproduce.

在idf commit 134170a 后出现

Debug Logs.

No response

More Information.

No response

@fzboffice fzboffice added the Type: Bug bugs in IDF label Aug 29, 2022
@espressif-bot espressif-bot added the Status: Opened Issue is new label Aug 29, 2022
@github-actions github-actions bot changed the title deadlock after call esp_bluedroid_disable() deadlock after call esp_bluedroid_disable() (IDFGH-8175) Aug 29, 2022
@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Aug 30, 2022
@xiongweichao
Copy link
Collaborator

xiongweichao commented Aug 30, 2022

Hi @fzboffice

If esp_bluedroid_disable is called in the btc task, a deadlock will occur. Suggest you create a new task and call it.

If it still doesn't solve your problem, please provide a demo that can reproduce the issue.

Thanks

@fzboffice
Copy link
Author

fzboffice commented Aug 30, 2022

@xiongweichao hello,I call esp_bluedroid_disable in my task.The same code behaves differently under different commit.This question only appear after pulling commit 134170a

@xiongweichao
Copy link
Collaborator

xiongweichao commented Aug 30, 2022

Hi @fzboffice ,

Please verify if this patch solves your problem.

Thanks

fix_deadlock_after_call_esp_bluedroid_disable.patch.txt

@fzboffice
Copy link
Author

@xiongweichao Thank you , The problem has been fixed.

@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable labels Sep 5, 2022
espressif-bot pushed a commit that referenced this issue Sep 8, 2022
…xt() after calling esp_bluedroid_disable()

Closes #9672
espressif-bot pushed a commit that referenced this issue Sep 10, 2022
…xt() after calling esp_bluedroid_disable()

Closes #9672
espressif-bot pushed a commit that referenced this issue Sep 17, 2022
…xt() after calling esp_bluedroid_disable()

Closes #9672
espressif-bot pushed a commit that referenced this issue Oct 17, 2022
…xt() after calling esp_bluedroid_disable()

Closes #9672
espressif-bot pushed a commit that referenced this issue Oct 19, 2022
…xt() after calling esp_bluedroid_disable()

Closes #9672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants