Skip to content

[Android] Out of memory crashes in System.Security.Cryptography tests #62547

Open
@steveisok

Description

@steveisok

In the past, we've seen occasional out of memory crashes in this suite only on emulator runs. However, routine emulator and devices OOM crashes have started happening on the rolling build.

Example build: https://dev.azure.com/dnceng/public/_build/results?buildId=1502707&view=ms.vss-test-web.build-test-results-tab&runId=42840396&resultId=164170&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

12-08 00:54:16.914  3670  3849 I DOTNET  : 	[PASS] System.Security.Cryptography.Dsa.Tests.DSAKeyFileTests.ReadWriteDsa1024EncryptedPkcs8_PasswordBytes
12-08 00:54:23.623  3670  3691 I ptography.Test: Background young concurrent copying GC freed 897592(40MB) AllocSpace objects, 0(0B) LOS objects, 7% free, 145MB/157MB, paused 67us total 2.319s
12-08 00:54:26.496  3670  3691 I ptography.Test: Background concurrent copying GC freed 3324289(96MB) AllocSpace objects, 0(0B) LOS objects, 51% free, 88MB/184MB, paused 73us total 1.963s
12-08 00:54:35.828  3670  3691 I ptography.Test: Background young concurrent copying GC freed 899946(41MB) AllocSpace objects, 0(0B) LOS objects, 7% free, 171MB/184MB, paused 29us total 2.730s
12-08 00:54:38.876  3670  3691 I ptography.Test: Background concurrent copying GC freed 4886860(137MB) AllocSpace objects, 0(0B) LOS objects, 57% free, 70MB/166MB, paused 403us total 1.683s
12-08 00:54:40.789  3670  3693 I scudo   : Scudo ERROR: out of memory trying to allocate 64 bytes
--------- beginning of crash
12-08 00:54:40.810  3670  3693 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3693 (FinalizerDaemon), pid 3670 (ptography.Tests)

Are there any good options to reduce memory pressure?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions