You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/05 08:48:00 UTC

[jira] [Work logged] (AVRO-2722) impl/DataFile.cc use of boost::mt19937 for DataFileWriteBase::makeSync is not thread safe

     [ https://issues.apache.org/jira/browse/AVRO-2722?focusedWorklogId=703815&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-703815 ]

ASF GitHub Bot logged work on AVRO-2722:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Jan/22 08:47
            Start Date: 05/Jan/22 08:47
    Worklog Time Spent: 10m 
      Work Description: martin-g merged pull request #1365:
URL: https://github.com/apache/avro/pull/1365


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 703815)
    Time Spent: 40m  (was: 0.5h)

> impl/DataFile.cc use of boost::mt19937 for DataFileWriteBase::makeSync is not thread safe
> -----------------------------------------------------------------------------------------
>
>                 Key: AVRO-2722
>                 URL: https://issues.apache.org/jira/browse/AVRO-2722
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: c++
>    Affects Versions: 1.9.1
>         Environment: Issue can be reproduced in Linux with clang and on Android arm64 and armeabi with android NDK r19c.
>            Reporter: Dan Schmitt
>            Assignee: Martin Tzvetanov Grigorov
>            Priority: Critical
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> The single instance of random is not thread safe, and can seg fault.
> It can be fixed with a global std::mutex next to the global boost::mt19937 generator and a std::unique_lock in the method, or by creating the mersenne_twister_engine as a local variable in the function.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)