Hello, libuver

I have a 3 threads program, one is data-recv thread(A), another two is
data-process threads(B,C). In (A,B) I use
uv_rwlock_wrlock/uv_rwlock_wrunlock, and in (C) I use
uv_rwlock_rdlock/uv_rwlock_rdunlock.

I tested and failed to run it on 2 libuv versions: v1.7.5 and v1.9.1

I cannot run it successfully, I get some log as below:
do you have any advice?



------- This is the last snppit of strace log with killall  ---------------

futex(0x8c82bb4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8c82bb0, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
recvmsg(9, 0xbf8deb90, 0)               = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(5, [{EPOLLIN, {u32=9, u64=9}}], 1024, 235) = 1
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
msg_iov(1)=[{"
\0\0\0\21\0\t\0\n\5\0\0\0\0\0\0\0PV\300\0\1\0\f)\330\337\232p\21\21\0",
4096}], msg_controllen=0, msg_flags=0}, 0) = 32
futex(0x8c82bb4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8c82bb0, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
recvmsg(9, 0xbf8deb90, 0)               = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(5, [{EPOLLIN, {u32=9, u64=9}}], 1024, 180) = 1
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
msg_iov(1)=[{"
\0\0\0\21\0\t\0\v\5\0\0\0\0\0\0\0PV\300\0\1\0\f)\330\337\232q\21\21\0",
4096}], msg_controllen=0, msg_flags=0}, 0) = 32
futex(0x8c82bb4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8c82bb0, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
recvmsg(9, 0xbf8deb90, 0)               = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(5, [{EPOLLIN, {u32=9, u64=9}}], 1024, 125) = 1
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
msg_iov(1)=[{"
\0\0\0\21\0\t\0\f\5\0\0\0\0\0\0\0PV\300\0\1\0\f)\330\337\232r\21\21\0",
4096}], msg_controllen=0, msg_flags=0}, 0) = 32
futex(0x8c82bb4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8c82bb0, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
recvmsg(9, 0xbf8deb90, 0)               = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(5, [{EPOLLIN, {u32=9, u64=9}}], 1024, 75) = 1
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
msg_iov(1)=[{"
\0\0\0\21\0\t\0\r\5\0\0\0\0\0\0\0PV\300\0\1\0\f)\330\337\232s\21\21\0",
4096}], msg_controllen=0, msg_flags=0}, 0) = 32
futex(0x8c82bb4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8c82bb0, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
recvmsg(9, 0xbf8deb90, 0)               = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(5, [{EPOLLIN, {u32=9, u64=9}}], 1024, 73) = 1
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
msg_iov(1)=[{"
\0\0\0\21\0\t\0\16\5\0\0\0\0\0\0\0PV\300\0\1\0\f)\330\337\232t\21\21\0",
4096}], msg_controllen=0, msg_flags=0}, 0) = 32
futex(0x8c82bb4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8c82bb0, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
recvmsg(9, 0xbf8deb90, 0)               = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(5, [{EPOLLIN, {u32=9, u64=9}}], 1024, 70) = 1
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000},
msg_iov(1)=[{"
\0\0\0\21\0ot\17\5\0\0\0\0\0\0\0PV\300\0\1\0\f)\330\337\232u\21\21\0",
4096}], msg_controllen=0, msg_flags=0}, 0) = 32
futex(0x8c82bb4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x8c82bb0, {FUTEX_OP_SET, 0,
FUTEX_OP_CMP_GT, 1}) = 1
recvmsg(9, 0xbf8deb90, 0)               = -1 EAGAIN (Resource temporarily
unavailable)
epoll_wait(5, [], 1024, 16)             = 0
futex(0x8c82b18, FUTEX_WAIT_PRIVATE, 2, NULL


) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=15068, si_uid=1000}
---
+++ killed by SIGTERM +++

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to