[lttng-dev] liburcu's assertion failed when cannot allocate memory
Denis Yevgenyevich
denis.yevgenyevich at gmail.com
Thu Jun 15 13:02:30 UTC 2017
My memory-constrained application dumps core saying
Assertion failed: (!ret), function _cds_wfcq_init, file
./urcu/static/wfcqueue.h, line 107.
Abort
The function was called from the call_rcu thread, my app does not call
wfcqueue directly.
My operating system is FreeBSD-10.3, you won't reproduce the failure in
Linux.
Apparently developers assumed that pthread_mutex_init cannot fail. This
assumption is ok for Linux, but not so with FreeBSD, which allocates
mutexes with calloc.
Could you please add proper error handling so that (at least) call_rcu
threads could cope with memory allocation failures?
Cheers...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20170615/ee8096bd/attachment.html>
More information about the lttng-dev
mailing list