1. 14 Agu, 2006 16 kayıt (commit)
  2. 13 Agu, 2006 14 kayıt (commit)
  3. 12 Agu, 2006 10 kayıt (commit)
    • Neal Norwitz's avatar
      Fix a couple of bugs exposed by the new __index__ code. The 64-bit buildbots · 1872b1c0
      Neal Norwitz yazdı
      were failing due to inappropriate clipping of numbers larger than 2**31
      with new-style classes. (typeobject.c)  In reviewing the code for classic
      classes, there were 2 problems.  Any negative value return could be returned.
      Always return -1 if there was an error.  Also make the checks similar
      with the new-style classes.  I believe this is correct for 32 and 64 bit
      boxes, including Windows64.
      
      Add a test of classic classes too.
      1872b1c0
    • Neal Norwitz's avatar
      Patch #1538606, Patch to fix __index__() clipping. · 8a87f5d3
      Neal Norwitz yazdı
      I modified this patch some by fixing style, some error checking, and adding
      XXX comments.  This patch requires review and some changes are to be expected.
      I'm checking in now to get the greatest possible review and establish a
      baseline for moving forward.  I don't want this to hold up release if possible.
      8a87f5d3
    • Georg Brandl's avatar
      f3e30429
    • Tim Peters's avatar
      Ah, fudge. One of the prints here actually "shouldn't be" · 953c1897
      Tim Peters yazdı
      protected by "if verbose:", which caused the test to fail on
      all non-Windows boxes.
      
      Note that I deliberately didn't convert this to unittest yet,
      because I expect it would be even harder to debug this on Tru64
      after conversion.
      953c1897
    • Tim Peters's avatar
      test_signal: Signal handling on the Tru64 buildbot · 1742f333
      Tim Peters yazdı
      appears to be utterly insane.  Plug some theoretical
      insecurities in the test script:
      
      - Verify that the SIGALRM handler was actually installed.
      
      - Don't call alarm() before the handler is installed.
      
      - Move everything that can fail inside the try/finally,
        so the test cleans up after itself more often.
      
      - Try sending all the expected signals in
        force_test_exit(), not just SIGALRM.  Since that was
        fixed to actually send SIGALRM (instead of invisibly
        dying with an AttributeError), we've seen that sending
        SIGALRM alone does not stop this from hanging.
      
      - Move the "kill the child" business into the finally
        clause, so the child doesn't survive test failure
        to send SIGALRM to other tests later (there are also
        baffling SIGALRM-related failures in test_socket).
      
      - Cancel the alarm in the finally clause -- if the
        test dies early, we again don't want SIGALRM showing
        up to confuse a later test.
      
      Alas, this still relies on timing luck wrt the spawned
      script that sends the test signals, but it's hard to see
      how waiting for seconds can so often be so unlucky.
      
      test_threadedsignals:  curiously, this test never fails
      on Tru64, but doesn't normally signal SIGALRM.  Anyway,
      fixed an obvious (but probably inconsequential) logic
      error.
      1742f333
    • Neal Norwitz's avatar
      Verify verdat which is returned from malloc is not NULL. · ebcf8759
      Neal Norwitz yazdı
      Ensure we don't pass NULL to free.
      
      Klocwork #306 (at least the first part, checking malloc)
      ebcf8759
    • Neal Norwitz's avatar
      0f7dbf73
    • Neal Norwitz's avatar
      Check return of PyMem_MALLOC (garbage) is non-NULL. · b88cfad3
      Neal Norwitz yazdı
      Check seq in both portions of if/else.
      
      Klocwork #289-290.
      b88cfad3
    • Neal Norwitz's avatar
      Don't deref v if it's NULL. · 5f17d9a1
      Neal Norwitz yazdı
      Klocwork #214
      5f17d9a1
    • Neal Norwitz's avatar
      Whoops, how did that get in there. :-) Revert all the parts of 51227 that were… · 421c1319
      Neal Norwitz yazdı
      Whoops, how did that get in there. :-)  Revert all the parts of 51227 that were not supposed to go it.  Only Modules/_ctypes/cfields.c was supposed to be changed
      421c1319