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

Bluetooth: split: 'e' assert during disconnect #19490

Closed
paulgavrikov opened this issue Sep 30, 2019 · 2 comments · Fixed by #19469
Closed

Bluetooth: split: 'e' assert during disconnect #19490

paulgavrikov opened this issue Sep 30, 2019 · 2 comments · Fixed by #19469
Assignees
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: medium Medium impact/importance bug

Comments

@paulgavrikov
Copy link

Describe the bug
When using the Split LL with Zephyr we occasionally observe crashes during different operations on master or slave side. Upon closer observation it looks like these asserts happen after a disconnect packet was sent. Reducing the maximum number of supported connecations does not fix this. Switching back to the legacy LL resolves this.

To Reproduce
Our ZTests connect to a peripheral and typically perform a couple of actions (e.g. GATT ops, pairing, L2CAP etc.). Then we disconnect and run the next test. I haven't found one specific test that always fails as the asserts appear to be happen randomly.

Expected behavior
The stack should not crash.

Impact
showstopper

Screenshots or console output

[20:56:06:560] assert: 'e' failed␍␊
[20:56:06:571] [00:01:49.082,061] <0x1b>[1;31m<err> os: r0/a1: 0x00000003 r1/a2: 0x0000000a r2/a3: 0x00000001<0x1b>[0m␍␊
[20:56:06:571] [00:01:49.090,759] <0x1b>[1;31m<err> os: r3/a4: 0x0002e963 r12/ip: 0x00000008 r14/lr: 0x000197ef<0x1b>[0m␍␊
[20:56:06:579] [00:01:49.099,456] <0x1b>[1;31m<err> os: xpsr: 0x61000011<0x1b>[0m␍␊
[20:56:06:594] [00:01:49.104,705] <0x1b>[1;31m<err> os: Faulting instruction address (r15/pc): 0x000197fa<0x1b>[0m␍␊
[20:56:06:594] [00:01:49.112,609] <0x1b>[1;31m<err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops<0x1b>[0m␍␊
[20:56:06:600] [00:01:49.119,476] <0x1b>[1;31m<err> os: Current thread: 0x20001200 (BT ECC)<0x1b>[0m␍␊
[20:56:06:609] [00:01:49.126,190] <0x1b>[1;31m<err> os: Halting system<0x1b>[0m␍␊

grafik

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows): Kubuntu 18.04
  • Toolchain (e.g Zephyr SDK, ...): Zephyr SDK 0.10.3
  • Commit SHA or Version used: 2051ad1

Additional context

@paulgavrikov paulgavrikov added the bug The issue is a bug, or the PR is fixing a bug label Sep 30, 2019
@dleach02 dleach02 added the priority: medium Medium impact/importance bug label Oct 1, 2019
@cvinayak
Copy link
Contributor

cvinayak commented Oct 4, 2019

@paulgavrikov please verify using #19469.

@paulgavrikov
Copy link
Author

@cvinayak yes, that works. I see a bunch of "D: " logs now but not asserts. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants