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

segfault in tcpliveplay on x86_64 #132

Closed
sh-vi opened this issue Sep 26, 2014 · 2 comments
Closed

segfault in tcpliveplay on x86_64 #132

sh-vi opened this issue Sep 26, 2014 · 2 comments
Assignees
Milestone

Comments

@sh-vi
Copy link

sh-vi commented Sep 26, 2014

When I try to launch a tcpliveplay on x86_64 systems it always crashes:

[root@rhel6 ~]# tcpliveplay eth2 /root/test.pcap 192.168.1.4 12:34:01:87:92:F4 random
new source port:: 63170
Random Local SEQ: 1438605248
Segmentation fault (core dumped)

I've tried this on Fedora 20 (libpcap-1.5.3), RHEL6 (libpcap-1.0.0) and RHEL5 (libpcap-0.9.4). And I've also compiled tcpliveplay with the latest libpcap-1.6.2. Crash occurres here:

(gdb) p sched[i].tcphdr
$9 = (tcp_hdr *) 0x601000015
(gdb) p *sched[i].tcphdr
Cannot access memory at address 0x601000015

i386-i686 version works fine.

@fklassen fklassen self-assigned this Sep 26, 2014
@fklassen
Copy link
Member

Thanks for the bug report. Scheduled for 4.0.6.

@fklassen fklassen added this to the 4.1.0beta1 milestone Oct 8, 2014
@fklassen fklassen added 4.1.0 and removed 4.0.6 labels Oct 8, 2014
@fklassen fklassen modified the milestones: 4.1.0beta2, 4.1.0beta1 Oct 14, 2014
fklassen added a commit that referenced this issue Oct 17, 2014
…amed struct inet_addr so that higher level inet_aton() could be called. Corrected mix of tabs and spaces
fklassen added a commit that referenced this issue Oct 17, 2014
#132 removed raw file routines and replaced with PCAP api calls
@fklassen
Copy link
Member

Found issue with copying raw pcap files instead of using libpcap APIs. This should also fix issues with using pcapng files, provided that installed libpcap file is up-to-date.

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

2 participants