Bug 1088932

Summary: nuttcp crashes if /proc/sys/net/ipv4/tcp_adv_win_scale does not exist
Product: [Fedora] Fedora Reporter: Nikos Mavrogiannopoulos <nmavrogi>
Component: nuttcpAssignee: Radek Vokál <rvokal>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nuttcp-6.1.2-10.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-15 02:41:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Nikos Mavrogiannopoulos 2014-04-17 13:04:27 UTC
Created attachment 887173 [details]
fix for the crash

If nuttcp (server) is run under the docker fedora image where /proc/sys/net/ipv4/tcp_adv_win_scale does not exist, it crashes.

The last lines of strace are shown below:
getsockopt(6, SOL_SOCKET, SO_RCVBUF, [374400], [4]) = 0
open("/proc/sys/net/ipv4/tcp_adv_win_scale", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)

Comment 2 Nikos Mavrogiannopoulos 2014-06-05 09:29:47 UTC
Can we have a fix for that in f20? Nuttcp is especially useful in docker images used for testing.

Comment 3 Fedora Update System 2014-08-01 12:37:32 UTC
nuttcp-6.1.2-10.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/nuttcp-6.1.2-10.fc20

Comment 4 Fedora Update System 2014-08-01 23:54:30 UTC
Package nuttcp-6.1.2-10.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing nuttcp-6.1.2-10.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-9094/nuttcp-6.1.2-10.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-08-15 02:41:18 UTC
nuttcp-6.1.2-10.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.