<p>When I log into a remote machine using ssh X11 forwarding, Vista pops up a box complaining about a process that died unexpectedly.  Once I dismiss the box, everything is fine.  So I really don't care if some process died.  How do I get Vista to shut up about it?</p>

<hr>

<p>Specifically, the message reads:</p>

<pre><code>sh.exe has stopped working
</code></pre>

<p>So it's not ssh itself that died, but some sub-process.</p>

<p>The problem details textbox reads:</p>

<pre><code>Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: sh.exe
  Application Version:  0.0.0.0
  Application Timestamp:    48a031a1
  Fault Module Name:    comctl32.dll_unloaded
  Fault Module Version: 0.0.0.0
  Fault Module Timestamp:   4549bcb0
  Exception Code:   c0000005
  Exception Offset: 73dc5b17
  OS Version:   6.0.6000.2.0.0.768.3
  Locale ID:    1033
  Additional Information 1: fc4d
  Additional Information 2: d203a7335117760e7b4d2cf9dc2925f9
  Additional Information 3: 1bc1
  Additional Information 4: 7bc0b00964c4a1bd48f87b2415df3372

Read our privacy statement:
  http://go.microsoft.com/fwlink/?linkid=50163&amp;clcid=0x0409
</code></pre>

<p>I notice the problem occurs when I use the <strong>-Y</strong> option to enable X11 forwarding in an X terminal under Vista.</p>

<p>The dialog box that pops up doesn't automatically gain focus, so pressing Enter serves no purpose.  I have to wait for the box to appear, grab it with the mouse, and dismiss it.  Even forcing the error to receive focus would be a step in the right direction.</p>

<hr>

<p>Per DrPizza I have sent an <a href="http://cygwin.com/ml/cygwin/2008-08/msg00880.html" rel="nofollow noreferrer">email</a> to the Cygwin mailing list.  The trimmed down subject line represents my repeated attempts to bypass an over-aggressive spam filter and highlights the need for something like StackOverflow.</p>

[{'answer_id': 35324, 'author': 'Brad Wilson', 'author_id': 1554, 'author_profile': 'https://Stackoverflow.com/users/1554', 'pm_score': 1, 'selected': False, 'text': "<p>The problem is, the process didn't just die, it died unexpectedly. Sounds like there's a bug in your SSH client that Vista is pointing out.</p>\n"}, {'answer_id': 35368, 'author': 'Jeremy', 'author_id': 3657, 'author_profile': 'https://Stackoverflow.com/users/3657', 'pm_score': 0, 'selected': False, 'text': '<p>I know this is going to be heresy for a cygwin user, but you could just use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" rel="nofollow noreferrer">PuTTY</a> instead.</p>\n'}, {'answer_id': 35387, 'author': 'Jon Ericson', 'author_id': 1438, 'author_profile': 'https://Stackoverflow.com/users/1438', 'pm_score': 1, 'selected': True, 'text': '<p>Well, I don\'t know what the original problem was, but when I update Cygwin recently the error message stopped popping up.</p>\n\n<p>My guess it that <a href="http://sourceware.org/ml/cygwin/2006-11/msg00059.html" rel="nofollow noreferrer">rebasing</a> was necessary.</p>\n'}, {'answer_id': 35401, 'author': 'DrPizza', 'author_id': 2131, 'author_profile': 'https://Stackoverflow.com/users/2131', 'pm_score': 0, 'selected': False, 'text': '<blockquote>\n  <p>What does unexpectedly mean in this context? Does it mean it core dumped or just exited non-zero?</p>\n</blockquote>\n\n<p>It means it died with an unhandled exception, i.e. it crashed.</p>\n'}, {'answer_id': 1203513, 'author': 'Marsh Ray', 'author_id': 116270, 'author_profile': 'https://Stackoverflow.com/users/116270', 'pm_score': 0, 'selected': False, 'text': '<blockquote>\n  <p>Fault Module Name:    comctl32.dll_unloaded\n  Exception Code:   c0000005</p>\n</blockquote>\n\n<p>Something had triggered loading of comctl32.dll, but it was later unloaded.</p>\n\n<p>c0000005 means \'access violation\'. Probably something tried calling a function in the unloaded dll.</p>\n\n<p>I agree with one of the cygwin commentators that it\'s possibly a bug in some antivirus program or "desktop enhancement" software. Video card companies like to inject their stuff into every process, too. It\'s easy to use comctl32.dll for things without realizing it, however.</p>\n\n<p>Try downloading and installing WinDbg from Microsoft. <code>http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx</code> Set it as the default JIT debugger "windbg.exe -I". Next time this happens you should get the nice debugger window pop up. Type "kv100" to get a stack trace. Look at the dlls listed in the calling path, there\'s a good chance one of them is the culprit.</p>\n\n<p>If you see a dll that\'s not from Microsoft or Cygwin there, uninstall that application and see if the problem goes away. Otherwise, the Cygwin list might be interested in the stack trace.</p>\n'}]
['https://Stackoverflow.com/questions/35317', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1438/']