You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/07/22 16:50:34 UTC

[GitHub] [mynewt-nimble] lance-proxy commented on issue #532: [controller] Hardfault exception when allocating RX PDU mbuf

lance-proxy commented on issue #532: [controller] Hardfault exception when allocating RX PDU mbuf
URL: https://github.com/apache/mynewt-nimble/issues/532#issuecomment-513864203
 
 
   @andrzej-kaczmarek yes the issue occurs quite frequently especially in an environment with lots of  connections recycling quickly.
   
   @rymanluk with OS_MEMPOOL_POISON enabled, I get the following assertion:
   
   ```
   #0  __assert_func (file=file@entry=0x0, line=line@entry=0, func=func@entry=0x0, e=e@entry=0x0) at repos/apache-mynewt-core/kernel/os/src/arch/cortex_m4/os_fault.c:176
   #1  0x00010680 in os_mempool_poison_check (start=start@entry=0xf5ae <__assert_func+30>, mp=<optimized out>) at repos/apache-mynewt-core/kernel/os/src/os_mempool.c:78
   #2  0x00010766 in os_memblock_get (mp=0x10681 <os_mempool_poison_check+60>) at repos/apache-mynewt-core/kernel/os/src/os_mempool.c:357
   #3  0x0000ff6e in os_mbuf_get (omp=0x200096f8 <os_msys_1_mbuf_pool>, leadingspace=<optimized out>) at repos/apache-mynewt-core/kernel/os/src/os_mbuf.c:135
   #4  0x0001089c in os_msys_get (dsize=dsize@entry=83, leadingspace=leadingspace@entry=0) at repos/apache-mynewt-core/kernel/os/src/os_msys.c:135
   #5  0x0001f410 in ble_ll_rxpdu_alloc (len=len@entry=195) at repos/apache-mynewt-nimble/nimble/controller/src/ble_ll.c:367
   #6  0x0001f6c8 in ble_ll_rx_end (
       rxbuf=rxbuf@entry=0x2000c310 <g_ble_phy_rx_buf+4> "\003\301\244\214\230\366sL\255\357֬\353\335\236|\220i\355\026Gu>G\361[\")\233}j}Ǎ\366\067\354h\n\373#y\340=I\350\022Z\376\205K\211\004\tK\323\r\266\033M\265\301\332\f/\220\065\022\333\327`\274'\273\032\217\335\307:\204\205f\270>ˀRۅG\255-\177\255\a\001\035 \260\275\331\025\310\006_\225\363\206\206 \376L\227/\263\200ځ\353\214\301ü\363ޥ[\177\205\261\235\230e", <incomplete sequence \325>, rxhdr=rxhdr@entry=0x2000ea6c <g_ble_phy_data+24>) at repos/apache-mynewt-nimble/nimble/controller/src/ble_ll.c:1057
   #7  0x000282ea in ble_phy_rx_end_isr () at repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_phy.c:1070
   #8  ble_phy_isr () at repos/apache-mynewt-nimble/nimble/drivers/nrf52/src/ble_phy.c:1251
   ```
   
   with OS_MEMPOOL_GUARD & OS_MEMPOOL_CHECK enabled I get a strange hang.
   
   Next, I am going to find the offending commit with `git bisect` & bring the new gdb macro.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services