Package: nuttcp Version: 6.1.2-4 Severity: important Tags: upstream Dear Maintainer, If nuttcp (server) is run under the docker debian 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) A fix is attached. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing'), (500, 'oldstable'), (50, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages nuttcp depends on: ii libc6 2.18-4 nuttcp recommends no packages. nuttcp suggests no packages. -- no debconf information *** /tmp/patch.txt diff --git a/nuttcp-6.1.2.c b/nuttcp-6.1.2.c index dfadfc8..cd911a9 100644 --- a/nuttcp-6.1.2.c +++ b/nuttcp-6.1.2.c @@ -3750,8 +3750,8 @@ doit: rcvwinval *= 2; if ((adv_ws = fopen(TCP_ADV_WIN_SCALE, "r"))) { fscanf(adv_ws, "%d", &winadjust); + fclose(adv_ws); } - fclose(adv_ws); if (winadjust < 0) { -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org