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 2022/03/24 15:05:13 UTC

[GitHub] [mynewt-nimble] InfiniteYuan opened a new issue #1220: Crash when a lot of data needs to be proxied

InfiniteYuan opened a new issue #1220:
URL: https://github.com/apache/mynewt-nimble/issues/1220


   # Problem Describing
   
   Can't alloc os_mbuf when a lot of data needs to be proxied in BLE-MESH, so `om` is null to cause crash(assert).
   
   static int proxy_send(uint16_t conn_handle, const void *data, uint16_t len)
   ```
   BT_DBG("%u bytes: %s", len, bt_hex(data, len));
   om = ble_hs_mbuf_from_flat(data, len);
   assert(om);
   err = ble_gatts_notify_custom(conn_handle, svc_handles.proxy_data_out_h, om);
   notify_complete();
   ```
   
   # Related
   
   These are also handled with assert: [pb_gatt_srv.c#L410-L411](https://github1s.com/apache/mynewt-nimble/blob/master/nimble/host/mesh/src/pb_gatt_srv.c#L410-L411) and [proxy_srv.c#L876-L877](https://github1s.com/apache/mynewt-nimble/blob/master/nimble/host/mesh/src/proxy_srv.c#L876-L877). We should reconsider how to deal with it.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [mynewt-nimble] InfiniteYuan commented on issue #1220: Crash when a lot of data needs to be proxied

Posted by GitBox <gi...@apache.org>.
InfiniteYuan commented on issue #1220:
URL: https://github.com/apache/mynewt-nimble/issues/1220#issuecomment-1084015958


   @michal-narajowski Please help look into this issue. Thx very much.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org