Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672370 - net-misc/iperf-2.0.12 compiled with sys-devel/clang - client hangs
Summary: net-misc/iperf-2.0.12 compiled with sys-devel/clang - client hangs
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Netmon Herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-02 07:40 UTC by Xuefer
Modified: 2018-12-02 14:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge--info.txt (emerge-info-clang.txt,8.99 KB, text/plain)
2018-12-02 07:41 UTC, Xuefer
Details

Note You need to log in before you can comment on or make changes to this bug.
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 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 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 gentoo-dev 2018-12-02 14:59:58 UTC
Comment on attachment 556902 [details]
emerge--info.txt

Oh wait. Those CFLAGS.