Avro
  1. Avro
  2. AVRO-1084

acvo-c: reference counting error in file_writer and file_reader code

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3, 1.7.0
    • Fix Version/s: 1.7.0
    • Component/s: c
    • Labels:
      None

      Description

      Missed incref/decref calls for writer_schema in file_writer_create() and avro_file_reader_get_writer_schema() functions. Crash dump example in the attached code.

      1. example.c
        1 kB
        Pugachev Maxim
      2. AVRO-1084.patch
        0.8 kB
        Pugachev Maxim

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        2m 40s 1 Pugachev Maxim 11/May/12 10:52
        Patch Available Patch Available Resolved Resolved
        9d 4h 5m 1 Douglas Creager 20/May/12 14:58
        Resolved Resolved Closed Closed
        22d 6h 3m 1 Doug Cutting 11/Jun/12 21:01
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Douglas Creager made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 1.7.0 [ 12318848 ]
        Resolution Fixed [ 1 ]
        Hide
        Douglas Creager added a comment -

        Committed to SVN. I updated the test case to include the standard copyright notice, and fixed it so that it will compile on Windows. Also, it now deletes the output file after running the test, rather than before. That way the source tree isn't cluttered with test output files.

        Show
        Douglas Creager added a comment - Committed to SVN. I updated the test case to include the standard copyright notice, and fixed it so that it will compile on Windows. Also, it now deletes the output file after running the test, rather than before. That way the source tree isn't cluttered with test output files.
        Pugachev Maxim made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Pugachev Maxim made changes -
        Attachment AVRO-1084.patch [ 12526505 ]
        Hide
        Pugachev Maxim added a comment -

        Patch for this issue

        Show
        Pugachev Maxim added a comment - Patch for this issue
        Pugachev Maxim made changes -
        Field Original Value New Value
        Attachment example.c [ 12526504 ]
        Hide
        Pugachev Maxim added a comment -

        Crash dump example

        Show
        Pugachev Maxim added a comment - Crash dump example
        Pugachev Maxim created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Pugachev Maxim
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development