Search Issue Tracker

Fixed in 2020.1.X

Fixed in 2019.3.X

Votes

0

Found in

2018.4.0f1

2019.2.0a1

2019.2.12f1

2019.3.0a1

2020.1.0a1

Issue ID

1199942

Regression

No

[IL2CPP] Crash on il2cpp::vm::Field::GetValueObjectForThread in build when MulticastOption is used inside SetSocketOption

IL2CPP

-

Steps to reproduce:
1. Open the attached project ("1199942.zip")
2. Build and run the project (File -> Build Settings... -> Build And Run)

Reproducible with: 2018.4.13f1, 2019.2.13f1, 2019.3.0b12, 2020.1.0a14
Couldn't test with 2017.4 because IL2CPP is not available on that stream.

First 5 lines of the stacktrace from Player log:
0x641FD07A (GameAssembly) [c:\program files\2019.2\2019.2.12f1_b1a7e1fb4fa5\editor\data\il2cpp\libil2cpp\vm\field.cpp:69] il2cpp::vm::Field::GetValueObjectForThread
0x641FD069 (GameAssembly) [c:\program files\2019.2\2019.2.12f1_b1a7e1fb4fa5\editor\data\il2cpp\libil2cpp\vm\field.cpp:64] il2cpp::vm::Field::GetValueObject
0x641E414B (GameAssembly) [c:\program files\2019.2\2019.2.12f1_b1a7e1fb4fa5\editor\data\il2cpp\libil2cpp\icalls\system\system.net.sockets\socket.cpp:1330] il2cpp::icalls::System::System::Net::Sockets::Socket::SetSocketOption
0x643B457A (GameAssembly) [c:\users\aurimas.pupsys\unity cases\crashes\1199942\case_1199942-demo_multicast_crash\temp\stagingarea\data\il2cppoutput\system.cpp:26843] Socket_SetSocketOption_internal_m4CD6A4EB2E6B43A654E7393C15E6339DA717699A
0x643B4783 (GameAssembly) [c:\users\aurimas.pupsys\unity cases\crashes\1199942\case_1199942-demo_multicast_crash\temp\stagingarea\data\il2cppoutput\system.cpp:26725] Socket_SetSocketOption_m18B869594DEEF6B857849E32352C652AE2380DF3

Notes
- Reproduces with .NET 4.x and .NET Standard 2.0
- Reproducible on Windows, macOS and according to the user, on PS4
- Not reproducible on the same platforms in Mono

Add comment

Log in to post comment