大网数据广告活动
服务器运维问答

Segmentation fault when running nuttcp inside Docker

· 52CE 我爱测

I am measuring the UDP throughput between two Docker containers that are connected by Docker's native overlay network. I already used iperf but also want to measure the throughput with nuttcp . But when I am starting the server i…

问题原文

原帖链接 · arne.z · CC BY-SA 3.0

I am measuring the UDP throughput between two Docker containers that are connected by Docker's native overlay network. I already used iperf but also want to measure the throughput with nuttcp. But when I am starting the server instance and then start the client instance, the server instance crashes with the following error message: Segmentation fault (core dumped). This is how I started the server:

nuttcp -S -u --nofork

and this is how I started the client:

nuttcp -u -T 115 10.0.0.3

The server instance crashes directly after starting up the client. I used the same commands to run nuttcp outside of Docker without any problems.

Here is some additional informations about the versions I am using:

# inside the container:
$ uname -a
Linux 310d92462ac0 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Mar 18 19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ nuttcp -V
nuttcp-6.1.2

# outside the container:
$ uname -a
Linux libAMS 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Mar 18 19:05:43 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ docker -v
Docker version 1.10.3, build 20f81dd

Does anyone have an idea how to solve this?

已采纳解答

原帖链接 · stambata · CC BY-SA 3.0

The bug is in the Version: 6.1.2 of nuttcp For more information and fix read this link https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745051

My suggestion is to use a new version.

mkdir nuttcp
cd nuttcp/
wget http://nuttcp.net/nuttcp/beta/nuttcp-7.3.3.c

If you don’t have gcc

sudo apt-get install build-essential manpages-dev

compile program and run

cc nuttcp-7.3.3.c -o nuttcp-7
./nuttcp-7 –V
nuttcp-7.3.3

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。