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/12/09 07:25:54 UTC
[GitHub] [mynewt-nimble] mirandw opened a new issue #694: Assertion
`!ble_hs_locked_by_cur_task()' failed on Linux Platform
mirandw opened a new issue #694: Assertion `!ble_hs_locked_by_cur_task()' failed on Linux Platform
URL: https://github.com/apache/mynewt-nimble/issues/694
When I run NimBLE on linux platform, and enables MYNEWT_VAL_BLE_HS_DEBUG
the error occurs:
nimble/host/src/ble_gap.c: 607: ble_gap_call_event_cb: Assertion `!ble_hs_locked_by_cur_task()' failed.
follow the function ble_hs_lock() --->BLE_HS_DBG_ASSERT(!ble_hs_locked_by_cur_task())--->
ble_hs_locked_by_cur_task() {
#if MYNEWT
struct os_task *owner;
if (!ble_npl_os_started()) {
return ble_hs_dbg_mutex_locked;
}
owner = ble_hs_mutex.mu.mu_owner;
return owner != NULL && owner == os_sched_get_current_task();
#else
return 1;
#endif
when under Linux, the function returns 1 always.
so BLE_HS_DBG_ASSERT(!ble_hs_locked_by_cur_task()) ≈assert(0)
it fails definitely.
Any one come with this question?
----------------------------------------------------------------
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