-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I3c58367eec2243fe19b75be78a175c5261863e9e Signed-off-by: Florin Coras <[email protected]>
- Loading branch information
1 parent
5da96a7
commit 3c2fed5
Showing
27 changed files
with
773 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
3c2fed5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, I recently discovered that using app_send_stream_raw and app_send_dgram_raw can lead to deadlock issues. Are these functions not supposed to be used in different threads? Here is the specific stack information:
Thread 3 (Thread 0x7fd055e98700 (LWP 43427)):
#0 0x00007fd15d23c5dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00007fd15e90e9a1 in svm_msg_q_wait_prod (mq=) at /usr/src/debug/vpp-21.06/src/svm/message_queue.c:549
#2 svm_msg_q_wait_prod (mq=mq@entry=0x7fd05d462f30) at /usr/src/debug/vpp-21.06/src/svm/message_queue.c:544
#3 0x00007fd05c688938 in app_send_io_evt_to_vpp (noblock=0 '\000', evt_type=, session_index=827, mq=0x7fd05d462f30) at /usr/src/debug/vpp-21.06/src/vnet/session/application_interface.h:656
#4 app_send_stream_raw (noblock=0 '\000', do_evt=1 '\001', evt_type=, len=, data=, vpp_evt_q=0x7fd05d462f30, f=0x7fd0626f4340) at /usr/src/debug/vpp-21.06/src/vnet/session/application_interface.h:761
Thread 1 (Thread 0x7fd15e8ee7c0 (LWP 43424)):
#0 0x00007fd15d23c5dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
--Type for more, q to quit, c to continue without paging--
#1 0x00007fd15e90e9a1 in svm_msg_q_wait_prod (mq=) at /usr/src/debug/vpp-21.06/src/svm/message_queue.c:549
#2 svm_msg_q_wait_prod (mq=mq@entry=0x7fd05d462f30) at /usr/src/debug/vpp-21.06/src/svm/message_queue.c:544
#3 0x00007fd05c696c50 in app_send_io_evt_to_vpp (evt_type=1 '\001', noblock=0 '\000', session_index=18596, mq=0x7fd05d462f30) at /usr/src/debug/vpp-21.06/src/vnet/session/application_interface.h:656
#4 app_send_dgram_raw (noblock=0 '\000', do_evt=1 '\001', evt_type=1 '\001', len=57, data=, vpp_evt_q=0x7fd05d462f30, at=, f=) at /usr/src/debug/vpp-21.06/src/vnet/session/application_interface.h:737