peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.33k stars 202 forks source link

race condition; cctor caching property binder exception #1056

Closed jakubmisek closed 2 years ago

jakubmisek commented 2 years ago
Message: Index was outside the bounds of the array.
System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value):9

Pchp.Core.Dynamic.BinderFactory.GetField(String name, RuntimeTypeHandle classContext, RuntimeTypeHandle returnType, AccessMask access):62
..cctor()

PeachPie expects this is executed on a single thread, but is it?

jakubmisek commented 2 years ago

thread-safety for BinderFactory