runtime: unexpected return pc for runtime.asmstdcall when using syscall18 #45524
What version of Go are you using (
|// Check we have enough room for args.|
|CMPL CX, $maxargs|
|INT $3 // not enough room -> crash|
I am not savvy enough in assembly, but does this mean there is not enough room for all the 17 args I'm passing to the
The text was updated successfully, but these errors were encountered:
I managed to fix the crash by changing the value of
Thanks for reporting the issue and figuring out a solution!
I think it's reasonable that that's the problem. I've been digging around here lately and your solution seems plausible; we have all sorts of hard-coded limits for the various Windows syscall oddities. There could just be a discrepancy (but I have not looked into this yet). I probably won't have time to look into this for a few days so:
CC @alexbrainman ?