https://bugs.linaro.org/show_bug.cgi?id=1879

--- Comment #12 from Carl Wallen <carl.wal...@nokia.com> ---
(In reply to Bill Fischofer from comment #11)
> Patch series http://patches.opendataplane.org/patch/3661/ through
> http://patches.opendataplane.org/patch/3666/ posted to fully resolve this
> bug.

This patch series causes deadlock in my test when run on more cores than one.
Applied the patch series on api-next latest: [e82e065]
When the same test is run without the patch set on [e82e065] I do not see a
deadlock.


Run on two cores (using pthreads), application gets stuck after a while:

(gdb) info thr
  Id   Target Id         Frame 
  3    Thread 0x7ffff6371700 (LWP 8471) "test" 0x00007ffff7bc33e8 in
odp_ticketlock_lock (ticketlock=0x7ffff7f6ca80) at
../../../platform/linux-generic/odp_ticketlock.c:32
  2    Thread 0x7ffff5b70700 (LWP 8472) "test" 0x00007ffff7bc33e8 in
odp_ticketlock_lock (ticketlock=0x7ffff7f6ca80) at
../../../platform/linux-generic/odp_ticketlock.c:32
* 1    Thread 0x7ffff7fda840 (LWP 8467) "test" 0x00007ffff73bd8ed in
pthread_join (threadid=140737324194256, thread_return=0x0) at pthread_join.c:90


(gdb) t 2
[Switching to thread 2 (Thread 0x7ffff5b70700 (LWP 8472))]
#0  0x00007ffff7bc33e8 in odp_ticketlock_lock (ticketlock=0x7ffff7f6ca80) at
../../../platform/linux-generic/odp_ticketlock.c:32
32              while (ticket !=
_odp_atomic_u32_load_mm(&ticketlock->cur_ticket,
(gdb) bt
#0  0x00007ffff7bc33e8 in odp_ticketlock_lock (ticketlock=0x7ffff7f6ca80) at
../../../platform/linux-generic/odp_ticketlock.c:32
#1  0x00007ffff7bbeb42 in release_order (origin_qe=0x7ffff7f6ca80, order=390,
pool=0x0, enq_called=1) at ../../../platform/linux-generic/odp_queue.c:956
#2  0x00007ffff7bc00db in odp_schedule_release_context () at
../../../platform/linux-generic/odp_schedule.c:412
#3  0x00007ffff7bc027f in schedule (out_queue=0x7ffff5b6fd28,
out_ev=0x7ffff5b6fd00, max_num=1, max_deq=4) at
../../../platform/linux-generic/odp_schedule.c:455
#4  0x00007ffff7bc07f7 in schedule_loop (out_queue=0x7ffff5b6fd28, wait=0,
out_ev=0x7ffff5b6fd00, max_num=1, max_deq=4) at
../../../platform/linux-generic/odp_schedule.c:595
#5  0x00007ffff7bc08a0 in odp_schedule (out_queue=0x7ffff5b6fd28, wait=0) at
../../../platform/linux-generic/odp_schedule.c:628

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to