#12164 NORM 13.1.0: XO-4 os5 yum Invalid GPG Key

Zarro Boogs per Child bugtracker at laptop.org
Fri Nov 9 16:03:02 EST 2012


#12164: XO-4 os5 yum Invalid GPG Key
---------------------------------+------------------------------------------
           Reporter:  Quozl      |       Owner:  dsd          
               Type:  defect     |      Status:  new          
           Priority:  normal     |   Milestone:  13.1.0       
          Component:  distro     |     Version:  not specified
         Resolution:             |    Keywords:               
        Next_action:  never set  |    Verified:  0            
Deployment_affected:             |   Blockedby:               
           Blocking:             |  
---------------------------------+------------------------------------------

Comment(by dsd):

 This is a bizarre bug. The following python code produces bad results on
 XO-4:

 {{{
 def crc24(msg) :
     crc24_init = 0xb704ce
     crc24_poly = 0x1864cfb

     crc = crc24_init
     for i in list(msg) :
         crc = crc ^ (ord(i) << 16)
         for j in range(0, 8) :
             crc = crc << 1
             if crc & 0x1000000 :
                 crc = crc ^ crc24_poly
     print "ret", crc
     return crc & 0xffffff

 print crc24("aaaaa")
 }}}

 If I insert a print statement anywhere in the loop, or make the following
 change, things start working.
 {{{
 -            if crc & 0x1000000 :
 +            if (crc & 0x1000000) != 0 :
 }}}

 Works on XO-1.75 on the same OS build (i.e. most binaries are identical).
 Very odd.

-- 
Ticket URL: <http://dev.laptop.org/ticket/12164#comment:8>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list