Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1082

Thrift::FramedTransport sometimes calls close() on an undefined value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9
    • Component/s: Perl - Library
    • Labels:
      None
    • Environment:

      CentOS release 5.4 (x86_64), perl 5.8.8

    • Patch Info:
      Patch Available

      Description

      The Thrift::FramedTransport module sometimes ends up calling the close() method on an undefined value inside its own close() method during global destruction. Events during global destruction are unordered, so it's difficult to reproduce this bug, but it does happen, producing error messages like this:

      (in cleanup) Can't call method "close" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/Thrift/FramedTransport.pm line 71 during global destruction.

      The attached patch is a simple workaround to the problem.

        Attachments

        1. FramedTransport.patch
          0.3 kB
          John Siracusa

          Activity

            People

            • Assignee:
              siracusa John Siracusa
              Reporter:
              siracusa John Siracusa
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: