-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: TestRaiseException fails on windows server 2003 (amd64) #10162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
On windows 2003 32-bit, tip prints this for me for the given program above: Exception 0xbad 0x4086ce 0x427608 0x77e4bee7 syscall.Syscall6(0x77e4beab, 0x4, 0xbad, 0x1, 0x0, 0x0, 0x0, 0x0, 0x10a235a0, 0x |
Doh. |
I can repo on amd64 on XP/2003. This is not a problem on 386 OS or on amd64 OS running 386 code. This is not a problem on newer amd64 windows platform. This is a regression from the 1.4.2 release. In runtime/os1_windows_amd64.go func exception handler: |
Opened #10267 to track running a Windows Server 2003 builder. |
@kardianos thank you for looking into this. You say "This is a regression from the 1.4.2 release". Do you mean that the program above prints stack trace if compiled with go.1,4,2, but prints nothing with current tip? I suspect it prints nothing with any version. I think it is the way your Windows works. Does your Windows have AddVectoredContinueHandler API (see os_init function)? Perhaps it is environment combination I didn't see before: amd64 and no AddVectoredContinueHandler. Perhaps that combination does not work with current code as it is written. Alex |
@alexbrainman That is correct. With 1.4.2 it opens up a "report error" dialog, but then it prints the register dump. Yes, 2003/XP -64bit does have a AddVectoredContinueHandler API. If a don't disable Windows Error Reporting dialog, then the 1.4.2 behavior is restored: the dialog is displayed, but the dump is also displayed. I presume there is a bug in this version where the continue handler is not called if the dialog is not displayed. One option would be to detect the Windows version number and not use the AddVectoredContinueHandler in amd64 2003/XP as it appears to have a bug. -Daniel |
@kardianos I am confused, but it does not matter. I will try to find computer to debug this on. Alternatively, if you want to try and fix it yourself, I am fine with that. I think we have enough tests so we won't break any working OSes. Naturally any new tests are welcome. Alex |
Fair enough. I've got a change that works around the problem. Probably not On Fri, Mar 27, 2015 at 5:15 PM Alex Brainman notifications@github.com
|
This program:
when running standalone, doesn't output anything on windows server 2003.
however, when running inside gdb, it correct output unexpected signal during cgo execution
message.
Moreover, if I add a println statement before proc.Call, the program will also be working
as intended when running standalone.
/cc @alexbrainman
The text was updated successfully, but these errors were encountered: