https://bugs.linaro.org/show_bug.cgi?id=1851
Bug ID: 1851
Summary: odp_pool_destroy() failure
Product: OpenDataPlane - linux- generic reference
Version: 1.3
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: ---
Component: Buffers & Packets
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Overview: odp_pool_destroy() only works properly when the worker
threads/processes have exited and called odp_term_local() to flush the
thread/process local caches. Callig odp_pool_destroy() at runtime will mostly
fail if the thread local-caches contain buffers.
Steps to Reproduce:
1. create odp pool
2. launch and run the worker threads
3. use buffers from the pool, i.e. allocate and free
4. call odp_pool_destroy() from any odp thread/process before odp_term_local()
5. odp_pool_destroy() returns '-1' probably because only the local pool-cache
of the calling odp thread has been flushed.
Actual Results: odp_pool_destroy() returns -1 causing application failure
Expected Results: odp_pool_destroy() succeeds and the application can proceed.
Additional Information: Seems that odp_pool_destroy() only works properly when
called by the master(last remaining) thread during termination, i.e. when all
other threads have called odp_term_local(). Dynamic run-time usage is not
possible, neither is a termination sequence where odp_pool_destroy() is called
before odp_term_local().
Bug encountered using ODP-linux-generic git commit:
"
Commit: b575e753595284de911a1b7da18db7eaf08d429a [b575e75]
Parents: 2143920e6a
Author: Stuart Haslam <[email protected]>
Date: 14. lokakuuta 2015 12:28:20
Committer: Maxim Uvarov <[email protected]>
Commit Date: 15. lokakuuta 2015 12:51:27
Labels: HEAD, origin/master, origin/HEAD, master
validation: update README
Remove information that's now duplicated in the Implementers' Guide and
instead just refer to it.
"
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp