Menu

#4587 xcatd unitialized value $line in length

2.9.1
pending
None
unknown
5
2015-03-09
2015-03-03
No

xcatd will occasional log the following errors:

Use of uninitialized value $line in length at /opt/xcat/sbin/xcatd line 2167.



   =========================== console log - AIX 7100-03-04 - xCAT 2.9 =====================
   0 Fri Feb 20 07:32:52 PST 2015 updateschema: Running ALTER TABLE storage ADD type TEXT
         0 Fri Feb 20 07:32:52 PST 2015 updateschema: Running ALTER TABLE storage ADD controller TEXT
         0 Fri Feb 20 07:32:54 PST 2015 xCATd: service starting
         0 Fri Feb 20 07:33:05 PST 2015 xCAT: Allowing tabdump site for root from localhost
         0 Fri Feb 20 07:33:05 PST 2015 Use of uninitialized value $line in length at /opt/xcat/sbin/xcatd line 2167.

         0 Fri Feb 20 07:35:54 PST 2015 xCAT: Allowing lsxcatd -a for root from localhost
         0 Fri Feb 20 07:35:54 PST 2015 Use of uninitialized value $line in length at /opt/xcat/sbin/xcatd line 2167.

         0 Fri Feb 20 07:36:19 PST 2015 xCAT: Allowing lsdef -t site -l for root from localhost

         0 Fri Feb 20 07:44:55 PST 2015 xCAT: Allowing rvitals to all all for root from localhost
         0 Fri Feb 20 07:45:10 PST 2015 Use of uninitialized value $line in length at /opt/xcat/sbin/xcatd line 2167.

         0 Fri Feb 20 07:48:37 PST 2015 xCAT: Allowing rvitals to hf01n02csb all for root from localhost
         0 Fri Feb 20 07:48:39 PST 2015 Use of uninitialized value $line in length at /opt/xcat/sbin/xcatd line 2167.

Investigating the code, this seems to occur when there are TCP retries on the socket connection with the xCAT client.

Need to add a check if $line is undefined, and set it to a null string if it is.

Discussion

  • Anonymous

    Anonymous - 2015-03-09

    Fixed:
    03c8d63 2.9
    85f758b master

     
  • Anonymous

    Anonymous - 2015-03-09
    • status: open --> pending
     
MongoDB Logo MongoDB