SDK-3.7.0-7: Endless Buffer corrupted message

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

Hi,

I still can hit below issue sometimes on SDK-3.7.0-7.

Basically, the device is useless after this issue happened.

If there is still no fix available for now, how can I detect this issue?

I'd like to make the device reboot if this issue happened.

Any callback or notification I can know this issue happened?

Below is the message for reference:

[15:15:28:663] 00:01:09.010928 GKI_create_task func=0x803f5e5  id=1  name=BTU  stack=0x0  stackSize=6144␍␍␊

[15:15:28:669] 00:01:09.018928 GKI_create_task func=0x8040b05  id=0  name=HCISU  stack=0x0  stackSize=4096␍␍␊

[15:15:28:776] 00:01:09.062392 GKI_exception(): Task State Table␍␍␊

[15:15:28:781] 00:01:09.000856 GKI_exception 65527 getbuf: Size is too big␍␍␊

[15:15:28:799] 00:01:09.007856 GKI_exception(): Task State Table␍␍␊

[15:15:28:799] 00:01:09.011856 GKI_exception 65535 Send - Buffer corrupted␍␍␊

[15:15:32:776] 00:01:13.062392 GKI_exception(): Task State Table␍␍␊

[15:15:32:781] 00:01:13.000856 GKI_exception 65527 getbuf: Size is too big␍␍␊

[15:15:32:789] 00:01:13.006856 GKI_exception(): Task State Table␍␍␊

[15:15:32:795] 00:01:13.010856 GKI_exception 65535 Send - Buffer corrupted␍␍␊

[15:15:36:775] 00:01:17.062392 GKI_exception(): Task State Table␍␍␊

[15:15:36:782] 00:01:17.000856 GKI_exception 65527 getbuf: Size is too big␍␍␊

[15:15:36:791] 00:01:17.006856 GKI_exception(): Task State Table␍␍␊

[15:15:36:791] 00:01:17.010856 GKI_exception 65535 Send - Buffer corrupted␍␍␊

[15:15:40:775] 00:01:21.062392 GKI_exception(): Task State Table␍␍␊

[15:15:40:779] 00:01:21.000856 GKI_exception 65527 getbuf: Size is too big␍␍␊

[15:15:40:792] 00:01:21.006856 GKI_exception(): Task State Table␍␍␊

[15:15:40:792] 00:01:21.010856 GKI_exception 65535 Send - Buffer corrupted␍␍␊

[15:15:44:774] 00:01:25.062392 GKI_exception(): Task State Table␍␍␊

[15:15:44:779] 00:01:25.000856 GKI_exception 65527 getbuf: Size is too big␍␍␊

[15:15:44:788] 00:01:25.006856 GKI_exception(): Task State Table␍␍␊

.....

10 Replies
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

Add rash

AFAICT, the GKI_exception() issue is too critical because the device no longer work.

You need to provide a method for application developers to detect the exception.

0 Likes
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

axel.lin_1746341 wrote:

Hi,

I still can hit below issue sometimes on SDK-3.7.0-7.

Basically, the device is useless after this issue happened.

If there is still no fix available for now, how can I detect this issue?

I'd like to make the device reboot if this issue happened.

Any callback or notification I can know this issue happened?

Below is the message for reference:

[15:15:28:663] 00:01:09.010928 GKI_create_task func=0x803f5e5  id=1  name=BTU  stack=0x0  stackSize=6144␍␍␊

[15:15:28:669] 00:01:09.018928 GKI_create_task func=0x8040b05  id=0  name=HCISU  stack=0x0  stackSize=4096␍␍␊

[15:15:28:776] 00:01:09.062392 GKI_exception(): Task State Table␍␍␊

[15:15:28:781] 00:01:09.000856 GKI_exception 65527 getbuf: Size is too big␍␍␊

.....

Hi,

Can someone help on this issue?

It happens randomly in random devices.

The problem is when this happened, the device does not work anymore unless reboot.

I have no way to detect if this happen, in additional, the watchdog does not

work because the device is still alive but only BT no longer work.

I have a batch of devices going to release next Month, I'm worried about this issue.

BTW, do you consider to make the output more verbose?

I think below messages does not help too much to analyze the root cause.

[15:15:36:791] 00:01:17.010856 GKI_exception 65535 Send - Buffer corrupted␍␍␊

[15:15:40:775] 00:01:21.062392 GKI_exception(): Task State Table

mifojayirash

0 Likes

mifojayirash

I start getting some customers report about such issue.

This problem is annoy for us because the device becomes a dead board.

I tried increasing buffer size but it seems does not help, and I cannot debug it at all because it's binary released code.

Also it seems easier to reproduce it if enable STDIO output.

I'm wondering if the BLE library has STDIO debug print which causes problems? (well, just a guess.)

0 Likes

mifojayirash

It's easy to get GKI_exception 65524 getbuf: out of buffers if the code to handle scan_result callback got block

for a small delay. This can happen if you have another thread doing tcp connect to server.

I have reported this issue for several weeks can someone help?

BTW, I'm wondering why running out of buffers is so fatal which make the BT part complete dead.

The buffer is likely to be available soon even, isn't it?

0 Likes

Guys,

Do you have any suggestion/fix about such issue?

rash

0 Likes

Any update?

And do you have any plan/bug fix for next sdk-3.x update?

miforash

0 Likes

I hit this issue again.

From the timestamp, you can see it happens immediately after GKI_create_task.

[18:18:42:513] 00:00:41.022248 GKI_create_task func=0x8040921  id=1  name=BTU  stack=0x0  stackSize=6144␍␍␊

[18:18:42:513] 00:00:41.030248 GKI_create_task func=0x8041e41  id=0  name=HCISU  stack=0x0  stackSize=4096␍␍␊

[18:18:42:621] 00:00:41.008176 GKI_exception(): Task State Table␍␍␊

[18:18:42:642] 00:00:41.013176 GKI_exception 65527 getbuf: Size is too big␍␍␊

[18:18:42:642] 00:00:41.018176 GKI_exception(): Task State Table␍␍␊

[18:18:42:642] 00:00:41.023176 GKI_exception 65535 Send - Buffer corrupted

0 Likes

Cypress team,

Since you don't response on this issue.

Can you at least tell me how to detect if the exception happens so we have a chance to reboot the device as workaround?

0 Likes

Hi axel,

Maybe last chance are test string message in wiced_uart_transmit_bytes->platform_uart_send_message...

If debug uart and strstr "GKI_exception 65527 getbuf: Size is too big"...reboot.

Darius

0 Likes

sqlsql_2244756 wrote:

Hi axel,

Maybe last chance are test string message in wiced_uart_transmit_bytes->platform_uart_send_message...

If debug uart and strstr "GKI_exception 65527 getbuf: Size is too big"...reboot.

Darius

That won't work because we have NOSTDIO in release build.

0 Likes