Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Floating point exception - reported in Tcpreplay mailing list #667

Closed
fklassen opened this issue Jun 2, 2021 · 1 comment
Closed

Comments

@fklassen
Copy link
Member

fklassen commented Jun 2, 2021

Floating point exception:

VirtualBox:~/$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

To Reproduce

VirtualBox:~/$ sudo tcpreplay --version
tcpreplay version: 4.3.2 (build git:v4.3.2) (debug)
Copyright 2013-2018 by Fred Klassen - AppNeta
Copyright 2000-2012 by Aaron Turner
The entire Tcpreplay Suite is licensed under the GPLv3
Cache file supported: 04
Not compiled with libdnet.
Compiled against libpcap: 1.9.1
64 bit packet counters: enabled
Verbose printing via tcpdump: enabled
Packet editing: disabled
Fragroute engine: disabled
Injection method: PF_PACKET send()
Not compiled with netmap

VirtualBox:~/$ sudo tcpreplay -v -d 5 -i enp0s3 -pps=100 --loop 5000 webcaster_data.pcap
DEBUG1 in sendpacket.c:sendpacket_open_pf() line 888: sendpacket: using PF_PACKET
DEBUG5 in utils.c:_our_safe_malloc() line 60: Malloc'd 1248 bytes in sendpacket.c:sendpacket_open_pf() line 963
DEBUG5 in tcpdump.c:tcpdump_open() line 219: Opening tcpdump debug file: tcpdump.debug
DEBUG2 in tcpdump.c:tcpdump_open() line 229: Prepping tcpdump options...
DEBUG2 in tcpdump.c:tcpdump_fill_in_options() line 372: [child] Will execute: tcpdump -n -l -r -
DEBUG5 in utils.c:_our_safe_malloc() line 60: Malloc'd 3 bytes in tcpdump.c:tcpdump_fill_in_options() line 380
DEBUG5 in utils.c:_our_safe_malloc() line 60: Malloc'd 3 bytes in tcpdump.c:tcpdump_fill_in_options() line 394
DEBUG5 in utils.c:_our_safe_malloc() line 60: Malloc'd 3 bytes in tcpdump.c:tcpdump_fill_in_options() line 394
DEBUG2 in tcpdump.c:tcpdump_open() line 232: Starting tcpdump...
DEBUG2 in tcpdump.c:tcpdump_open() line 242: tcpdump pid: 20184
DEBUG2 in tcpdump.c:tcpdump_open() line 248: [parent] closing child read/write fd 8/7
DEBUG2 in send_packets.c:send_packets() line 539: packet 1 caplen 932
DEBUG4 in send_packets.c:send_packets() line 584: This packet time: 1618236067s 66264usec
DEBUG2 in tcpdump.c:tcpdump_open() line 242: tcpdump pid: 0
DEBUG2 in tcpdump.c:tcpdump_open() line 270: [child] started the kid
DEBUG2 in tcpdump.c:tcpdump_open() line 287: [child] closing in fds 8/7/6/9
DEBUG2 in tcpdump.c:tcpdump_open() line 295: [child] Exec'ing tcpdump...
reading from file -, link-type LINUX_SLL (Linux cooked v1)
DEBUG4 in tcpdump.c:tcpdump_print() line 188: read 83 byte from tcpdump
07:01:07.1618236067 IP 192.168.99.100.45827 > 192.168.99.101.3939: UDP, length 888
DEBUG2 in send_packets.c:send_packets() line 641: Sending packet #1
DEBUG2 in send_packets.c:send_packets() line 539: packet 2 caplen 932
DEBUG4 in send_packets.c:send_packets() line 584: This packet time: 1618236067s 76256usec
Floating point exception

System (please complete the following information):

  • OS: Ubuntu in Virtual Box
  • OS version: 20.04.02
  • Tcpreplay Version 4.3.2
@fklassen
Copy link
Member Author

This is most likely a duplicate of #679 which had an invalid calculation when using --pps with long-running executions. Fix available in 4.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant