Project

General

Profile

Bug #15875

motion_cntl has spurious fread errors

Added by Dennis Nicklaus almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Start date:
03/16/2017
Due date:
% Done:

0%

Estimated time:
Duration:

Description

The motion_cntl driver on clx56e occasionally (~ once/day for the last 2 days) prints out iolib:fread errors indicating it has read some unexpected packet. It has an open UDP port to listen to a NML goniometer, but I don't think that is even on currently. Examples are below. Note that some of the strings of numbers are ascii characters of IP addresses, for example the sequence 49,51,49,46, 50,50,53,46,49,50,54,46,56,49,44 is ascii for "131.225.126.81," which is adcryo118111 and 49,51,49,46,50,50,53,46,49,50,54,46,50,44 is "131.225.16.2. another one is the IP addr of crymes.

=WARNING REPORT==== 15-Mar-2017::01:20:14 ===
iolib:fread() error = {fread,integer} for [61,0,0,0,189,2,0,0,9,0,0,0,20,44]

=WARNING REPORT==== 15-Mar-2017::01:20:14 ===
iolib:fread() error = {fread,integer} for [255,255,255,255,255,255,255,255,
                                           255,255,68,0,0,31,0,0,49,51,49,46,
                                           50,50,53,46,49,50,54,46,50,44]

=WARNING REPORT==== 15-Mar-2017::01:20:14 ===
iolib:fread() error = {fread,integer} for "crymes," 

===== ALIVE Wed Mar 15 01:35:14 CDT 2017

===== ALIVE Wed Mar 15 01:50:15 CDT 2017

===== ALIVE Wed Mar 15 02:05:15 CDT 2017

===== ALIVE Wed Mar 15 02:20:15 CDT 2017

===== Wed Mar 15 02:25:43 CDT 2017

=WARNING REPORT==== 15-Mar-2017::02:25:43 ===
iolib:fread() error = {fread,integer} for [68,0,0,0,189,2,0,0,9,0,0,0,20,43,
                                           255,255,255,255,255,255,255,255,
                                           255,255,0,0,0,38,0,0,49,51,49,46,
                                           50,50,53,46,49,50,54,46,56,49,44]

=WARNING REPORT==== 15-Mar-2017::02:25:43 ===
iolib:fread() error = {fread,integer} for "adcryo118111," 

=WARNING REPORT==== 15-Mar-2017::02:25:43 ===
iolib:fread() error = {fread,integer} for [69,110,100,79,102,76,105,115,116,0]

=WARNING REPORT==== 15-Mar-2017::02:25:44 ===
iolib:fread() error = {fread,integer} for [61,0,0,0,189,2,0,0,9,0,0,0,20,44]

=WARNING REPORT==== 15-Mar-2017::02:25:44 ===
iolib:fread() error = {fread,integer} for [255,255,255,255,255,255,255,255,
                                           255,255,68,0,0,31,0,0,49,51,49,46,
                                           50,50,53,46,49,50,54,46,50,44]

=WARNING REPORT==== 15-Mar-2017::02:25:44 ===
iolib:fread() error = {fread,integer} for "crymes," 

=WARNING REPORT==== 15-Mar-2017::08:19:18 ===
iolib:fread() error = {fread,integer} for [61,0,0,0,189,2,0,0,9,0,0,0,20,44]

=WARNING REPORT==== 15-Mar-2017::08:19:18 ===
iolib:fread() error = {fread,integer} for [255,255,255,255,255,255,255,255,
                                           255,255,68,0,0,31,0,0,49,51,49,46,
                                           50,50,53,46,49,50,54,46,50,44]

=WARNING REPORT==== 15-Mar-2017::08:19:18 ===
iolib:fread() error = {fread,integer} for "crymes," 

=WARNING REPORT==== 15-Mar-2017::08:19:19 ===
iolib:fread() error = {fread,integer} for [68,0,0,0,189,2,0,0,9,0,0,0,20,43,
                                           255,255,255,255,255,255,255,255,
                                           255,255,68,0,0,38,0,0,49,51,49,46,
                                           50,50,53,46,49,50,54,46,56,49,44]

=WARNING REPORT==== 15-Mar-2017::08:19:19 ===
iolib:fread() error = {fread,integer} for "adcryo118111," 

=WARNING REPORT==== 15-Mar-2017::08:19:19 ===
iolib:fread() error = {fread,integer} for [69,110,100,79,102,76,105,115,116,0]

=WARNING REPORT==== 16-Mar-2017::02:37:41 ===
iolib:fread() error = {fread,integer} for [68,0,0,0,189,2,0,0,9,0,0,0,20,43,
                                           255,255,255,255,255,255,255,255,
                                           255,255,68,0,0,38,0,0,49,51,49,46,
                                           50,50,53,46,49,50,54,46,56,49,44]

=WARNING REPORT==== 16-Mar-2017::02:37:41 ===
iolib:fread() error = {fread,integer} for "adcryo118111," 

=WARNING REPORT==== 16-Mar-2017::02:37:41 ===
iolib:fread() error = {fread,integer} for [69,110,100,79,102,76,105,115,116,0]

=WARNING REPORT==== 16-Mar-2017::02:37:42 ===
iolib:fread() error = {fread,integer} for [61,0,0,0,189,2,0,0,9,0,0,0,20,44]

=WARNING REPORT==== 16-Mar-2017::02:37:42 ===
iolib:fread() error = {fread,integer} for [255,255,255,255,255,255,255,255,
                                           255,255,68,0,0,31,0,0,49,51,49,46,
                                           50,50,53,46,49,50,54,46,50,44]

=WARNING REPORT==== 16-Mar-2017::02:37:42 ===
iolib:fread() error = {fread,integer} for "crymes," 

===== ALIVE Thu Mar 16 02:52:42 CDT 2017

History

#1 Updated by Richard Neswold almost 3 years ago

  • Description updated (diff)

(I modified the description by putting the log output in a <pre> section.)

Could it be traffic from the security port scan?

If your driver is only talking to one goniometer, you can pattern-match to restrict traffic. I'm assuming your driver's message/2 callback is used to handle the UDP messages. Let's also assume the driver's state has the IP address of the goniometer:

message(#driver_state{addr=IpAddr}, {udp, _, IpAddr, _, Packet}) ->
    %% Packet can only be from goniometer.

This will ignore traffic from other machines.

#2 Updated by Richard Neswold over 2 years ago

Is this issue obsolete? I think the goniometer has been removed.

#3 Updated by Jerry Firebaugh over 2 years ago

  • Status changed from Assigned to Resolved

This was fixed several months ago, but I forgot to notify here. It does seem that motion_cntl is not used anymore.

#4 Updated by Jerry Firebaugh over 2 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF