Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672370

Summary: net-misc/iperf-2.0.12 compiled with sys-devel/clang - client hangs
Product: Gentoo Linux Reporter: Xuefer <xuefer>
Component: Current packagesAssignee: Sam James <sam>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: netmon
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge--info.txt

Description Xuefer 2018-12-02 07:40:50 UTC
iperf version 2.0.12 (25 June 2018) pthreads (same goes with 2.0.9)
compiled with clang never quit. but the one compiled with gcc works fine

Reproducible: Always

Actual Results:  
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   396 MBytes   332 Mbits/sec
[  4]  0.0-10.0 sec   390 MBytes   327 Mbits/sec
[SUM]  0.0-10.0 sec   786 MBytes   659 Mbits/sec
keep calling nanosleep but never quit the program

Expected Results:  
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   396 MBytes   332 Mbits/sec
[  4]  0.0-10.0 sec   390 MBytes   327 Mbits/sec
[SUM]  0.0-10.0 sec   786 MBytes   659 Mbits/sec
quit gracefully
Comment 1 Xuefer 2018-12-02 07:41:15 UTC
Created attachment 556902 [details]
emerge--info.txt
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-12-02 13:46:59 UTC
Just to be sure: you did mean the client hangs, right? Can you give us the actual command that produced that output?
Comment 3 Xuefer 2018-12-02 14:31:22 UTC
(In reply to Jeroen Roovers from comment #2)
> Just to be sure: you did mean the client hangs, right? Can you give us the
> actual command that produced that output?

yes it's the client
server side: iperf -s
client side: iperf -c peerip
(also tried strace -f iperf -c peerip, which ends up with tons of nanosleep)

i recompile client side switching compiler between clang and gcc. while server side ipref is always the same pre-compiled binary from openwrt running on:
Linux *** 4.14.63 #0 SMP Thu Aug 16 07:51:15 2018 armv7l GNU/Linux
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2018-12-02 14:59:02 UTC
I can't seem to reproduce that. What CFLAGS do you use?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2018-12-02 14:59:58 UTC
Comment on attachment 556902 [details]
emerge--info.txt

Oh wait. Those CFLAGS.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-08-11 00:52:11 UTC
Still happening?