You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[x86 Windows] GC stackwalking crash with R2R PInvoke frames #31809
@jkotas Ok thanks. I'll take a look at it. Quite interesting... I've been running a couple of instances of gcstress tests with the fix for a couple of days, and none of them crashed
This may be the type of issue that gc stress is not good at catching. Let me know if you need to help with a repro. I think running Guid.NewGuid and some allocations, on multiple threads, with release build, and tiered compilation disabled should reproduce it reliably.
@jkotas I tried to repro this with a multi-threaded test that calls Guid.NewGuid() and does a bunch of allocations, and GC.Collect calls in parallel, but couldn't get it to fail (tested with the pinvoke changes that you reverted). Tried both release and checked builds, with tiered compilation disabled as you suggested to keep using the R2R code.
I'll leave the test running for a while longer, maybe it would get luck and fail...
I think at this point, it would be more useful to investigated a dump file but looks like the one mentioned in this issue is no longer available.
Any suggestions? Create a PR with the changes and keep running CI until it fails?
I am not able to reproduce it either. Yes, create PR and try to rerun x86 legs on it a few times. If you are not able to hit it after a day of trying, commit it and hopefully we are going to get a dump eventually.
Activity
jkotas commentedon Feb 5, 2020
We crash during GC while stackwalking
GetFullPathNameW:jkotas commentedon Feb 5, 2020
#31659 hit it as well. That one crashes under:
[-]System.Xml.Xsl.XslTransformApi.Tests crashing[/-][+][x86 Windows] GC stackwalking crash with R2R PInvoke frames[/+]jkotas commentedon Feb 5, 2020
@fadimounir This is most likely caused by #26834. I am going to revert it. Sorry...
jkotas commentedon Feb 5, 2020
Revert in #31811
fadimounir commentedon Feb 5, 2020
@jkotas Ok thanks. I'll take a look at it. Quite interesting... I've been running a couple of instances of gcstress tests with the fix for a couple of days, and none of them crashed
jkotas commentedon Feb 5, 2020
This may be the type of issue that gc stress is not good at catching. Let me know if you need to help with a repro. I think running Guid.NewGuid and some allocations, on multiple threads, with release build, and tiered compilation disabled should reproduce it reliably.
fadimounir commentedon Mar 5, 2020
@jkotas I tried to repro this with a multi-threaded test that calls
Guid.NewGuid()and does a bunch of allocations, andGC.Collectcalls in parallel, but couldn't get it to fail (tested with the pinvoke changes that you reverted). Tried both release and checked builds, with tiered compilation disabled as you suggested to keep using the R2R code.I'll leave the test running for a while longer, maybe it would get luck and fail...
I think at this point, it would be more useful to investigated a dump file but looks like the one mentioned in this issue is no longer available.
Any suggestions? Create a PR with the changes and keep running CI until it fails?
jkotas commentedon Mar 5, 2020
I am not able to reproduce it either. Yes, create PR and try to rerun x86 legs on it a few times. If you are not able to hit it after a day of trying, commit it and hopefully we are going to get a dump eventually.
jkotas commentedon Apr 17, 2020
Duplicate of #34279