Translated message

A translation of this page exists in English.

snmp エラーメッセージ "truncating unsigned value to 32 bits" が net-snmp-5.3.2.2-9.el5 以降ではデバッグメッセージとなった理由

Solution Verified - Updated -

Issue

  • RHEL5 システムは net-snmp-5.3.2.2-7.el5 を使用しており、システムが再起動した後にsnmp が以下のエラーを報告していました。
    truncating unsigned value to 32 bits (11)
  • このエラーメッセージは、BZ#528164 における以下のパッチにより、net-snmp-5.3.2.2-9.el5 以降ではデバッグメッセージになりました。

  • net-snmp-5.3.2.2-truncate-32.patch

    528164:Spurious "truncating unsigned value" errors

    Source: upstream, SVN rev. 16762

    --- net-snmp/snmplib/asn1.c     (revision 16761)
    +++ net-snmp/snmplib/asn1.c     (revision 16762)
    @@ -220,13 +220,13 @@
                 x = 0 - (x & 0xffffffff);
             }
             if (trunc)
    -            snmp_log(LOG_ERR,"truncating signed value to 32 bits (%d)\n",y); 
    +            DEBUGMSG(("asn","truncating signed value to 32 bits (%d)\n",y)); 
         } while(0)

     #  define CHECK_OVERFLOW_U(x,y) do { 
             if (x > UINT32_MAX) {
                 x &= 0xffffffff; 
    -            snmp_log(LOG_ERR,"truncating unsigned value to 32 bits (%d)\n",y); 
    +            DEBUGMSG(("asn","truncating unsigned value to 32 bits (%d)\n",y)); 
             }
         } while(0)
     #endif
  • デバッグメッセージに変更になったのはなぜですか?
  • 長さが 32 ビット上の値とは、たとえば何ですか?
  • メッセージの最後に記載されている括弧付き番号 ("(11)" など) は何を意味していますか?

Environment

  • Red Hat Enterprise Linux 5 Update 4
  • net-snmp-5.3.2.2-7.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content