linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.31k stars 1.01k forks source link

net.tirpc_tests tirpc_rpc_broadcast failed #686

Open ouyangkui opened 4 years ago

ouyangkui commented 4 years ago

./runltp -f net.tirpc_tests -s tirpc_rpc_broadcast .....

cmdline="rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast_exp -e "1 2"" contacts="" analysis=exit <<>> incrementing stop tirpc_rpc_broadcast_exp 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface tirpc_rpc_broadcast_exp 1 TINFO: set local addr 10.0.0.2/24 tirpc_rpc_broadcast_exp 1 TINFO: set local addr fd00:1:1:1::2/64 tirpc_rpc_broadcast_exp 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface tirpc_rpc_broadcast_exp 1 TINFO: set remote addr 10.0.0.1/24 tirpc_rpc_broadcast_exp 1 TINFO: set remote addr fd00:1:1:1::1/64 tirpc_rpc_broadcast_exp 1 TINFO: Network config (local -- remote): tirpc_rpc_broadcast_exp 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1 tirpc_rpc_broadcast_exp 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24 tirpc_rpc_broadcast_exp 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64 tirpc_rpc_broadcast_exp 1 TFAIL: tirpc_rpc_broadcast_exp 10.0.0.2 536875000 1 2 failed unexpectedly rpc_test.sh: line 31: 15508 Killed $SERVER $PROGNUMNOSVC <<>>

below testcases, failed, message is same with this issue ./runltp -f net.tirpc_tests -s tirpc_rpc_broadcast _exp ./runltp -f net.tirpc_tests -s tirpc_authdes_create
./runltp -f net.tirpc_tests -s tirpc_authdes_seccreate

run ns_exec failed,

./rpc_svc_1 536875000 & [3] 30371 ns_exec 15841 net,mnt sh -c ' tirpc_rpc_broadcast_exp 10.0.0.2 536875000 1 2 || echo RTERR' 1 RTERR tirpc_rpc_broadcast_exp 10.0.0.2 536875000 1 2 0

pevik commented 4 years ago

cc @yangx-jy

Thank you for your bug report. @yangx-jy reported it to me few days ago.

Yes, TI-RPC are in bad state (there are more bugs), which reflect the fact that this technology is fading out (used mainly in nfs-utils nowadays), thus LTP priority are low. But I'm slowly working on it. There are some problems with netns on glibc (https://sourceforge.net/p/libtirpc/mailman/message/37014992/), some tests, like this one are failing even when use libtirpc.

BTW you're not using master branch and not even the latest release (it's always best to test master) thus don't have 889d1cdfbada47cee2fc466b0dee3df08f5d4f55, e0af1d2797329f1fff12703569a13813b176674d, 1e5c2444c3ec07583d24aeefa3608f52fdd8b128), but C code hasn't been changed thus running binaries has the same result.

ouyangkui commented 4 years ago

Thank you so much! This issue block me long time:( I will sync the latest code and retry.

ouyangkui commented 4 years ago

Hi Pevik: I download the master zip and install. Find changed code like e0af1d2

But doesn't work yet. warning issue(889d1cd ) is fixed now

<<>> tag=tirpc_rpc_broadcast_exp stime=1590657965 cmdline="rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast_exp -e "1,2"" contacts="" analysis=exit <<>> incrementing stop rpc_test 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface rpc_test 1 TINFO: add local addr 10.0.0.2/24 rpc_test 1 TINFO: add local addr fd00:1:1:1::2/64 rpc_test 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface rpc_test 1 TINFO: add remote addr 10.0.0.1/24 rpc_test 1 TINFO: add remote addr fd00:1:1:1::1/64 rpc_test 1 TINFO: Network config (local -- remote): rpc_test 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1 rpc_test 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24 rpc_test 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64 rpc_test 1 TINFO: timeout per run is 0h 5m 0s rpc_test 1 TINFO: using rpcbind rpc_test 1 TINFO: using libtirpc: yes rpc_test 1 TFAIL: tirpc_rpc_broadcast_exp 10.0.0.2 536875000 1 2 failed unexpectedly 1

Summary: passed 0 failed 1 skipped 0 warnings 0 <<>> initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=16 cstime=11 <<>>

BTW, some cases failed similar yet. rpc_clnt_broadcast rpc_svc_destroy rpc_svfd_create rpc_svcfd

rpc_xprt_register":::: <<>> tag=rpc_xprt_register stime=1590658418 cmdline="rpc_test.sh -c rpc_xprt_register" contacts="" analysis=exit <<>> rpc_test 1 TINFO: initialize 'lhost' 'ltp_ns_veth2' interface rpc_test 1 TINFO: add local addr 10.0.0.2/24 rpc_test 1 TINFO: add local addr fd00:1:1:1::2/64 rpc_test 1 TINFO: initialize 'rhost' 'ltp_ns_veth1' interface rpc_test 1 TINFO: add remote addr 10.0.0.1/24 rpc_test 1 TINFO: add remote addr fd00:1:1:1::1/64 rpc_test 1 TINFO: Network config (local -- remote): rpc_test 1 TINFO: ltp_ns_veth2 -- ltp_ns_veth1 rpc_test 1 TINFO: 10.0.0.2/24 -- 10.0.0.1/24 rpc_test 1 TINFO: fd00:1:1:1::2/64 -- fd00:1:1:1::1/64 rpc_test 1 TINFO: timeout per run is 0h 5m 0s rpc_test 1 TINFO: using rpcbind rpc_test 1 TINFO: using libtirpc: yes rpc_test 1 TFAIL: rpc_xprt_register 10.0.0.2 536875000 failed unexpectedly rpc_xprt_register: svc_fd_create: could not retrieve local addr rpc_xprt_register: svc.c:96: xprt_register: Assertion `xprt != ((void *)0)' failed. sh: line 1: 13106 Aborted rpc_xprt_register 10.0.0.2 536875000

./rpc_pmap_set 10.0.0.2 536875000 0 rpcinfo 536875000 1 udp 0.0.0.0.2.88 - superuser