Search Unity

IL2CPP 100% crash in System.Security.Cryptography.RNGCryptoServiceProvider

Discussion in 'Scripting' started by ValidUsername, Aug 24, 2016.

  1. ValidUsername

    ValidUsername

    Joined:
    Aug 24, 2016
    Posts:
    2
    I created a small (relatively) test project that demonstrates the issue. Submitted as bug (Case 825650).

    Project reproduces 100% a crash calling the finalizer of RNGCryptoServiceProvider when using IL2CPP as the scripting engine.

    There are several calls to post https requests to a server. This works fine with one request but, crashes when there are several. Each request spawns a thread which makes the call and waits for a response from the server.

    When there are multiple requests active at once it seems as though a pointer to a RNGCryptoServiceProvider is freed twice, causing the abort.

    Works as expected under the mono scripting engine.
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,936
    @ValidUsername

    Thanks for reporting this bug. Based on the details in the bug report, it looks like it may have been corrected today, actually. I would expect that you will hear about the status via the bug report soon.
     
  3. ValidUsername

    ValidUsername

    Joined:
    Aug 24, 2016
    Posts:
    2
    Fantastic, thanks Josh!