You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Pugachev Maxim (JIRA)" <ji...@apache.org> on 2012/05/12 13:07:49 UTC

[jira] [Created] (AVRO-1087) avro-c: invoking avro_file_writer_open() produces 100% crash bug

Pugachev Maxim created AVRO-1087:
------------------------------------

             Summary: avro-c: invoking avro_file_writer_open() produces 100% crash bug
                 Key: AVRO-1087
                 URL: https://issues.apache.org/jira/browse/AVRO-1087
             Project: Avro
          Issue Type: Bug
    Affects Versions: 1.7.0
            Reporter: Pugachev Maxim
            Priority: Blocker
         Attachments: AVRO-1087.patch, example2.c

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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-1087) avro-c: invoking avro_file_writer_open() produces 100% crash bug

Posted by "Pugachev Maxim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pugachev Maxim updated AVRO-1087:
---------------------------------

    Attachment: AVRO-1087.patch

Patch for this issue
                
> avro-c: invoking avro_file_writer_open() produces 100% crash bug
> ----------------------------------------------------------------
>
>                 Key: AVRO-1087
>                 URL: https://issues.apache.org/jira/browse/AVRO-1087
>             Project: Avro
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: Pugachev Maxim
>            Priority: Blocker
>         Attachments: AVRO-1087.patch, example2.c
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-1087) avro-c: invoking avro_file_writer_open() produces 100% crash bug

Posted by "Pugachev Maxim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pugachev Maxim updated AVRO-1087:
---------------------------------

    Component/s: c
    
> avro-c: invoking avro_file_writer_open() produces 100% crash bug
> ----------------------------------------------------------------
>
>                 Key: AVRO-1087
>                 URL: https://issues.apache.org/jira/browse/AVRO-1087
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.0
>            Reporter: Pugachev Maxim
>            Priority: Blocker
>         Attachments: AVRO-1087.patch, example2.c
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-1087) avro-c: invoking avro_file_writer_open() produces 100% crash bug

Posted by "Pugachev Maxim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pugachev Maxim updated AVRO-1087:
---------------------------------

    Attachment: example2.c

Crash dump example
                
> avro-c: invoking avro_file_writer_open() produces 100% crash bug
> ----------------------------------------------------------------
>
>                 Key: AVRO-1087
>                 URL: https://issues.apache.org/jira/browse/AVRO-1087
>             Project: Avro
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: Pugachev Maxim
>            Priority: Blocker
>         Attachments: AVRO-1087.patch, example2.c
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-1087) avro-c: invoking avro_file_writer_open() produces 100% crash bug

Posted by "Pugachev Maxim (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pugachev Maxim updated AVRO-1087:
---------------------------------

    Status: Patch Available  (was: Open)
    
> avro-c: invoking avro_file_writer_open() produces 100% crash bug
> ----------------------------------------------------------------
>
>                 Key: AVRO-1087
>                 URL: https://issues.apache.org/jira/browse/AVRO-1087
>             Project: Avro
>          Issue Type: Bug
>    Affects Versions: 1.7.0
>            Reporter: Pugachev Maxim
>            Priority: Blocker
>         Attachments: AVRO-1087.patch, example2.c
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-1087) avro-c: invoking avro_file_writer_open() produces 100% crash bug

Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280114#comment-13280114 ] 

Douglas Creager commented on AVRO-1087:
---------------------------------------

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.)
                
> avro-c: invoking avro_file_writer_open() produces 100% crash bug
> ----------------------------------------------------------------
>
>                 Key: AVRO-1087
>                 URL: https://issues.apache.org/jira/browse/AVRO-1087
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.0
>            Reporter: Pugachev Maxim
>            Priority: Blocker
>         Attachments: AVRO-1087.patch, example2.c
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-1087) avro-c: invoking avro_file_writer_open() produces 100% crash bug

Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-1087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Douglas Creager updated AVRO-1087:
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0
           Status: Resolved  (was: Patch Available)

Committed to SVN.  I added the example2.c file as a new test case.
                
> avro-c: invoking avro_file_writer_open() produces 100% crash bug
> ----------------------------------------------------------------
>
>                 Key: AVRO-1087
>                 URL: https://issues.apache.org/jira/browse/AVRO-1087
>             Project: Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.0
>            Reporter: Pugachev Maxim
>            Priority: Blocker
>             Fix For: 1.7.0
>
>         Attachments: AVRO-1087.patch, example2.c
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira