You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (JIRA)" <ji...@apache.org> on 2011/01/24 17:13:44 UTC
[jira] Created: (AVRO-745) Segfault in avro_{bytes,sting,fixed}_set
Segfault in avro_{bytes,sting,fixed}_set
----------------------------------------
Key: AVRO-745
URL: https://issues.apache.org/jira/browse/AVRO-745
Project: Avro
Issue Type: Bug
Components: c
Reporter: Douglas Creager
Assignee: Douglas Creager
Attachments: 0001-Fixed-memory-bug-in-bytes-string-fixed-values.patch
The avro_bytes_set function (and its string and fixed counterparts) are supposed to save a copy of the value, which the avro_datum_t instance takes full control over. Unfortunately, we were making that copy but then saving the original pointer, which would lead to a segfault when freeing the datum. Whoops...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AVRO-745) Segfault in
avro_{bytes,sting,fixed}_set
Posted by "Bruce Mitchener (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruce Mitchener resolved AVRO-745.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
Thanks!
> Segfault in avro_{bytes,sting,fixed}_set
> ----------------------------------------
>
> Key: AVRO-745
> URL: https://issues.apache.org/jira/browse/AVRO-745
> Project: Avro
> Issue Type: Bug
> Components: c
> Reporter: Douglas Creager
> Assignee: Douglas Creager
> Fix For: 1.5.0
>
> Attachments: 0001-Fixed-memory-bug-in-bytes-string-fixed-values.patch
>
>
> The avro_bytes_set function (and its string and fixed counterparts) are supposed to save a copy of the value, which the avro_datum_t instance takes full control over. Unfortunately, we were making that copy but then saving the original pointer, which would lead to a segfault when freeing the datum. Whoops...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AVRO-745) Segfault in avro_{bytes,sting,fixed}_set
Posted by "Douglas Creager (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Douglas Creager updated AVRO-745:
---------------------------------
Attachment: 0001-Fixed-memory-bug-in-bytes-string-fixed-values.patch
> Segfault in avro_{bytes,sting,fixed}_set
> ----------------------------------------
>
> Key: AVRO-745
> URL: https://issues.apache.org/jira/browse/AVRO-745
> Project: Avro
> Issue Type: Bug
> Components: c
> Reporter: Douglas Creager
> Assignee: Douglas Creager
> Attachments: 0001-Fixed-memory-bug-in-bytes-string-fixed-values.patch
>
>
> The avro_bytes_set function (and its string and fixed counterparts) are supposed to save a copy of the value, which the avro_datum_t instance takes full control over. Unfortunately, we were making that copy but then saving the original pointer, which would lead to a segfault when freeing the datum. Whoops...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.