Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 303DB9933 for ; Thu, 1 Mar 2012 04:02:26 +0000 (UTC) Received: (qmail 71708 invoked by uid 500); 1 Mar 2012 04:02:25 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 71655 invoked by uid 500); 1 Mar 2012 04:02:24 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 71642 invoked by uid 99); 1 Mar 2012 04:02:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 04:02:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 04:02:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1C570C8482 for ; Thu, 1 Mar 2012 04:02:01 +0000 (UTC) Date: Thu, 1 Mar 2012 04:02:00 +0000 (UTC) From: "Douglas Creager (Updated) (JIRA)" To: dev@avro.apache.org Message-ID: <354373704.6024.1330574521117.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <476111225.2555.1329882769005.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AVRO-1034) Avro C Resolved reader does not initialize children of arrays, resulting in segmentation faults MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AVRO-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Douglas Creager updated AVRO-1034: ---------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) Committed this to SVN to make sure it's ready for when Doug cuts the 1.6.3 release. > Avro C Resolved reader does not initialize children of arrays, resulting in segmentation faults > ----------------------------------------------------------------------------------------------- > > Key: AVRO-1034 > URL: https://issues.apache.org/jira/browse/AVRO-1034 > Project: Avro > Issue Type: Bug > Components: c > Affects Versions: 1.6.2 > Environment: GNU/Linux Ubuntu 11.10 64-bit > Reporter: Vivek Nadkarni > Fix For: 1.6.3 > > Attachments: 0001-AVRO-1034.-C-Resolved-reader-initializes-child-array.patch, 0001-AVRO-1034.-C-Resolved-reader-initializes-child-array.patch, AVRO-1034.patch, avro-1034-test-2.c, avro-1034-test.c > > Original Estimate: 168h > Remaining Estimate: 168h > > As I did in AVRO-984, I created a test program that creates an avro > value corresponding to the following schema: > {"type":"array", "items": {"type": "array", "items": "long"}} > The avro_value is then resolved using a resolved_reader, and an > attempt is made to read from the resolved_reader. This results in a > segmentation fault on Linux. > I believe this issue is similar to the issue in AVRO-984, in which > nested arrays did not work because avro_resolved_array_writer_init() > did not recursively call the init function on its children. In that > case the initialization had to be deferred until a new item was > appended to the array. > I believe that avro_resolved_array_reader_init() should also > recursively call the init function on its children, in a deferred > manner as in AVRO-984, but I don't know how to implement this yet. > I will attach a test program that shows the crash. > Thanks, > Vivek -- 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