a.exe has stopped working

331 views
Skip to first unread message

Brad Fitzpatrick

unread,
Nov 14, 2014, 5:33:08 PM11/14/14
to golang-dev
The Windows builder is full of these dialogs.

I seem to recall some process-wide option to suppress them. Is that mechanism no longer in use?

a.png

brainman

unread,
Nov 14, 2014, 5:44:25 PM11/14/14
to golan...@googlegroups.com
On Saturday, 15 November 2014 09:33:08 UTC+11, Brad Fitzpatrick wrote:
The Windows builder is full of these dialogs.

It would be nice to understand why these program have crashed. I suspect they are from one of non default branches. They are not from dev-cc because it does not build at all. Normally our exception handler handles these, but if runtime is completely stuffed then ...
 
I seem to recall some process-wide option to suppress them. Is that mechanism no longer in use?

I don't know how to do it. I don't know if it is possible. I will search for it.

Alex 

Brad Fitzpatrick

unread,
Nov 14, 2014, 6:14:35 PM11/14/14
to brainman, golang-dev
I found http://stackoverflow.com/questions/396369/how-do-i-disable-the-debug-close-application-dialog-on-windows-vista

Which says:

DWORD dwMode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
SetErrorMode(dwMode | SEM_NOGPFAULTERRORBOX);



--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

minux

unread,
Nov 14, 2014, 6:46:35 PM11/14/14
to Brad Fitzpatrick, brainman, golang-dev
On Fri, Nov 14, 2014 at 6:14 PM, Brad Fitzpatrick <brad...@golang.org> wrote:
> I found
> http://stackoverflow.com/questions/396369/how-do-i-disable-the-debug-close-application-dialog-on-windows-vista
> Which says:
>
> DWORD dwMode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
> SetErrorMode(dwMode | SEM_NOGPFAULTERRORBOX);
Yes, we have similar code in lib9/main.c for the toolchain.
http://tip.golang.org/src/lib9/main.c#L52

Perhaps we should add those calls to Go runtime too.

I assume it's too late to send a CL for 1.4? How about add this to
dev.cc branch?

Russ Cox

unread,
Nov 14, 2014, 6:49:13 PM11/14/14
to minux, Brad Fitzpatrick, brainman, golang-dev
Please wait. The dev.cc branch is not just a dumping ground for 1.5. There is enough going on. These aren't coming from dev.cc anyway. Also, we install our own exception handler, so normal programs shouldn't even get this far. Something worse is wrong.

Russ

brainman

unread,
Nov 14, 2014, 7:49:56 PM11/14/14
to golan...@googlegroups.com, alex.b...@gmail.com
On Saturday, 15 November 2014 10:14:35 UTC+11, Brad Fitzpatrick wrote:

DWORD dwMode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
SetErrorMode(dwMode | SEM_NOGPFAULTERRORBOX);


That will probably work. I will try it. But, like rsc said, it would be nice to understand why it is happening. I will try different repo branches - maybe I can reproduce these ...

Alex

brainman

unread,
Nov 14, 2014, 8:08:11 PM11/14/14
to golan...@googlegroups.com, mi...@golang.org, brad...@golang.org, alex.b...@gmail.com
On Saturday, 15 November 2014 10:49:13 UTC+11, rsc wrote:
... Also, we install our own exception handler, so normal programs shouldn't even get this far. Something worse is wrong.


It is dev.garbage branch https://code.google.com/p/go/issues/detail?id=9106. Do you want me to investigate that? Or it does not matter yet.

Alex 

Russ Cox

unread,
Nov 14, 2014, 9:08:39 PM11/14/14
to brainman, golang-dev, Minux Ma, Brad Fitzpatrick
That'd be great, but if you can wait until Tuesday or so, I'm about to check in the "runtime completely in Go" changes on that branch (probably Monday), which will stir everything up some more.

Thanks very much.
Russ

brainman

unread,
Nov 15, 2014, 3:03:32 AM11/15/14
to golan...@googlegroups.com, alex.b...@gmail.com, mi...@golang.org, brad...@golang.org
On Saturday, 15 November 2014 13:08:39 UTC+11, rsc wrote:
... if you can wait until Tuesday or so, ...

Sure.
 
I'm about to check in the "runtime completely in Go" changes on that branch (probably Monday), ...

I am converting more windows runtime to Go. Hopefully I will have most of it done by then. I fear it won't work out of the box - so you would have to fix it.

Alex

Russ Cox

unread,
Nov 15, 2014, 7:45:42 AM11/15/14
to brainman, golang-dev, Minux Ma, Brad Fitzpatrick
Thanks very much. I'm happy to help as needed.

Russ
Reply all
Reply to author
Forward
0 new messages