-
Notifications
You must be signed in to change notification settings - Fork 329
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
Segmentation Fault on TLS data types #208
Comments
Matt, what version fo the JOY software are you using? Also do you have a dump of the segfault? |
I am using version 3.0.0. When I did a backtrace it showed it was faulting on line 529 of nfv9.c. I will try and upload the segfault. I am not the most proficient with gdb, but it looked to me to be having an issue with the flowdata pointer. The pointer wasn’t null, and what it was pointing to in memory matched the contents of the netflow packet. So I was a bit stumped. It works fine on the IDP and SPLT field types. |
Matt, I tried to reproduce this issue with the pcap you sent along. The problem does not occur. I checked the code from 3.0.0 versus what is there now and there isn't any difference between latest and 3.0.0. Line 529 in nfv9.c is where it is processing TLS sequence of records, lengths and times. I looked at the packet capture for packet 20 and the templates seemed to be filled out correctly with the right field IDs. It would be great if you could provide the stack trace dump. As an aside, there has been a fair amount of cleanup done around memory handling. It might be worthwhile moving to 4.0.1 (latest) on master and retesting. |
Ok, I reproduced it with v4.0.0 This is what I did
I have attached the core dump file as well as the pcap file. When I looked at in gdb it looked to still be crashing in the same spot. So I don’t know if I am doing something wrong or what? |
Step 3 is not needed when using autotools.
I need to update the readme
…-Todd
From: Matt Tooley <notifications@github.com>
Reply-To: cisco/joy <reply@reply.github.com>
Date: Thursday, November 15, 2018 at 4:22 PM
To: cisco/joy <joy@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: Re: [cisco/joy] Segmentation Fault on TLS data types (#208)
Ok, I reproduced it with v4.0.0
This is what I did
1. git clone https://github.com/cisco/joy
2. git checkout v4.0.0
3. ./config.sh
4. /configure
5. make clean;make
6. ./bin/joy bidir=1 dist=1 classify=1 nfv9_port=4739 verbosity=2 crs1000.pcap
I have attached the core dump file as well as the pcap file. When I looked at in gdb it looked to still be crashing in the same spot. So I don’t know if I am doing something wrong or what?
coredump.zip<https://github.com/cisco/joy/files/2587080/coredump.zip>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#208 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AlkQDDm7acshGyFLkc7EoZ6vJI-OkGrpks5uvdsGgaJpZM4YbqPr>.
|
Matt, I will be out of the office tomorrow and all next week. I will take a look at it when I return after the holiday. |
Thanks.
Matt Tooley
NCTA - The Internet & Television Association
(M) (202) 361-5932
e mtooley@ncta.com<mailto:mtooley@ncta.com>
…Sent from my iPhone
On Nov 15, 2018, at 3:05 PM, bhudson33 <notifications@github.com<mailto:notifications@github.com>> wrote:
Matt, I will be out of the office tomorrow and all next week. I will take a look at it when I return after the holiday.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#208 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AQyB9oCRVE1ppz9xrJJoCE0DuYKG0kTAks5uveUTgaJpZM4YbqPr>.
|
Matt, I think I have it figured out. See if the changes I made in nfv9.c makes everything better for you. Here is the diff: diff --git a/src/nfv9.c b/src/nfv9.c
@@ -540,6 +550,16 @@ void nfv9_process_flow_record (flow_record_t *nf_record,
@@ -551,6 +571,16 @@ void nfv9_process_flow_record (flow_record_t *nf_record,
@@ -564,20 +594,60 @@ void nfv9_process_flow_record (flow_record_t *nf_record,
|
Thanks - I tested it and it seems to have fixed it. |
I am getting a segmentation fault in nfv9.c when processing a flow record with TLS data types in it. The net flow with et-analytics enabled was generated by a Cisco CSR1000v running on the AWS.
It takes a segmentation fault in nfv9_process_flow_record for any of the TLS types.
ip-10-0-0-106#show version
Cisco IOS XE Software, Version 16.09.01
Cisco IOS Software [Fuji], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Tue 17-Jul-18 16:57 by mcpre
See packets 20 & 22 in the attached file.
crs1000.pcap.zip
Matt
The text was updated successfully, but these errors were encountered: