Avro
  1. Avro
  2. AVRO-1087

avro-c: invoking avro_file_writer_open() produces 100% crash bug

    Details

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

      Description

      Invoking avro_file_writer_open() produces 100% crash bug:

      #0 codec_null (codec=0x0, type=0xbfb11a0d "null") at /home/mpugachev/work/avro-trunk/lang/c/src/codec.c:36
      #1 avro_codec (codec=0x0, type=0xbfb11a0d "null") at /home/mpugachev/work/avro-trunk/lang/c/src/codec.c:404
      #2 0x0804971e in file_read_header (reader=0x9a986b0, writers_schema=0x9a88678, codec=0x0, sync=0x9a88684 "", synclen=16)
      at /home/mpugachev/work/avro-trunk/lang/c/src/datafile.c:279
      #3 0x08049e57 in file_writer_open (path=0x8067bf5 "test.db", writer=0xbfb11a9c) at /home/mpugachev/work/avro-trunk/lang/c/src/datafile.c:324
      #4 avro_file_writer_open (path=0x8067bf5 "test.db", writer=0xbfb11a9c) at /home/mpugachev/work/avro-trunk/lang/c/src/datafile.c:348
      #5 0x0804911d in main ()

      Moreover, append datums to log file is not working at all.

      1. AVRO-1087.patch
        2 kB
        Pugachev Maxim
      2. example2.c
        1 kB
        Pugachev Maxim

        Activity

        Hide
        Pugachev Maxim added a comment -

        Crash dump example

        Show
        Pugachev Maxim added a comment - Crash dump example
        Hide
        Pugachev Maxim added a comment -

        Patch for this issue

        Show
        Pugachev Maxim added a comment - Patch for this issue
        Hide
        Douglas Creager added a comment -

        Patch looks good; I like how the codec design means that we'll seamlessly append any new data using the existing codec without any extra effort. (Assuming that the existing codec is one that we know how to handle, of course.)

        Show
        Douglas Creager added a comment - Patch looks good; I like how the codec design means that we'll seamlessly append any new data using the existing codec without any extra effort. (Assuming that the existing codec is one that we know how to handle, of course.)
        Hide
        Douglas Creager added a comment -

        Committed to SVN. I added the example2.c file as a new test case.

        Show
        Douglas Creager added a comment - Committed to SVN. I added the example2.c file as a new test case.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development