Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2007-01-30 Thread GHC
#942: Windows programs throw uncaught Invalid HANDLE exception on exit
+---
 Reporter:  [EMAIL PROTECTED] |  Owner:  igloo  
 Type:  bug | Status:  closed 
 Priority:  normal  |  Milestone:  6.6.1  
Component:  Runtime System  |Version:  6.6
 Severity:  major   | Resolution:  fixed  
 Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
 Testcase:  N/A |   Architecture:  x86
   Os:  Windows |  
+---
Changes (by igloo):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 I've now confirmed that it also works in the 6.6 branch.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2007-01-08 Thread GHC
#942: Windows programs throw uncaught Invalid HANDLE exception on exit
+---
 Reporter:  [EMAIL PROTECTED] |  Owner:  igloo  
 Type:  bug | Status:  new
 Priority:  normal  |  Milestone:  6.6.1  
Component:  Runtime System  |Version:  6.6
 Severity:  major   | Resolution: 
 Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
 Testcase:  N/A |   Architecture:  x86
   Os:  Windows |  
+---
Comment (by igloo):

 This seems to be fixed in the HEAD. The 6.6 branch isn't building for me
 on Windows at the moment, so I haven't checked it yet.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2007-01-08 Thread GHC
#942: Windows programs throw uncaught Invalid HANDLE exception on exit
+---
 Reporter:  [EMAIL PROTECTED] |  Owner:  igloo  
 Type:  bug | Status:  new
 Priority:  normal  |  Milestone:  6.6.1  
Component:  Runtime System  |Version:  6.6
 Severity:  major   | Resolution: 
 Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
 Testcase:  N/A |   Architecture:  x86
   Os:  Windows |  
+---
Changes (by igloo):

  * owner:  => igloo

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2006-10-31 Thread Sigbjorn Finne

Ought to (but don't sue me if it doesn't.)

--sigbjorn

Bulat Ziganshin wrote:

Hello Sigbjorn,

Tuesday, October 31, 2006, 10:04:52 PM, you wrote:

is that means that current 6.6 precompiled snapshots like
http://www.haskell.org/ghc/dist/stable/dist/ghc-6.6.20061031-i386-unknown-mingw32.tar.gz
should work fine? this problem is very important for me too


  
  

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re[2]: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2006-10-31 Thread Bulat Ziganshin
Hello Sigbjorn,

Tuesday, October 31, 2006, 10:04:52 PM, you wrote:

is that means that current 6.6 precompiled snapshots like
http://www.haskell.org/ghc/dist/stable/dist/ghc-6.6.20061031-i386-unknown-mingw32.tar.gz
should work fine? this problem is very important for me too



> I fixed this one a week or two ago on the 6.6 branch --

> http://www.haskell.org/pipermail/cvs-ghc/2006-October/032154.html

> Have not had the time&space to drag it over to HEAD since then.

> hth
> --sigbjorn

> GHC wrote:
>> #942: Windows programs throw uncaught Invalid HANDLE exception on exit
>> +---
>>  Reporter:  [EMAIL PROTECTED] |  Owner: 
>>  Type:  bug | Status:  new
>>  Priority:  normal  |  Milestone:  6.6.1  
>> Component:  Runtime System  |Version:  6.6
>>  Severity:  major   | Resolution: 
>>  Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
>>  Testcase:  N/A |   Architecture:  x86
>>Os:  Windows |  
>> +---
>> Changes (by [EMAIL PROTECTED]):
>>
>>   * severity:  normal => major
>>
>> Comment:
>>
>>  I've changed the severity to major because I feel this bug prevents me
>>  distributing any binaries compiled under ghc6.6 for Windows, since whether
>>  or not the bug is "visible" (ie if you choose to run the binary under a
>>  debugger), obviously something is very wrong indeed with the runtime or
>>  else it wouldn't be trying to use an invalid handle (or cause one of the
>>  windows DLLs to do so) at program exit.
>>
>>   
>> 
>>
>> ___
>> Glasgow-haskell-bugs mailing list
>> Glasgow-haskell-bugs@haskell.org
>> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
>>   
> ___
> Glasgow-haskell-bugs mailing list
> Glasgow-haskell-bugs@haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


-- 
Best regards,
 Bulatmailto:[EMAIL PROTECTED]

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2006-10-31 Thread Sigbjorn Finne

[Due to a somewhat inconvenient HD meltdown some weeks ago, I lost a bunch
of data/user settings amongst other things, including the password to 
GHC's Trac,

hence this lame response directly to the mailing list]

I fixed this one a week or two ago on the 6.6 branch --

   http://www.haskell.org/pipermail/cvs-ghc/2006-October/032154.html

Have not had the time&space to drag it over to HEAD since then.

hth
--sigbjorn

GHC wrote:

#942: Windows programs throw uncaught Invalid HANDLE exception on exit
+---
 Reporter:  [EMAIL PROTECTED] |  Owner: 
 Type:  bug | Status:  new
 Priority:  normal  |  Milestone:  6.6.1  
Component:  Runtime System  |Version:  6.6
 Severity:  major   | Resolution: 
 Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
 Testcase:  N/A |   Architecture:  x86
   Os:  Windows |  
+---

Changes (by [EMAIL PROTECTED]):

  * severity:  normal => major

Comment:

 I've changed the severity to major because I feel this bug prevents me
 distributing any binaries compiled under ghc6.6 for Windows, since whether
 or not the bug is "visible" (ie if you choose to run the binary under a
 debugger), obviously something is very wrong indeed with the runtime or
 else it wouldn't be trying to use an invalid handle (or cause one of the
 windows DLLs to do so) at program exit.

  



___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
  

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2006-10-31 Thread GHC
#942: Windows programs throw uncaught Invalid HANDLE exception on exit
+---
 Reporter:  [EMAIL PROTECTED] |  Owner: 
 Type:  bug | Status:  new
 Priority:  normal  |  Milestone:  6.6.1  
Component:  Runtime System  |Version:  6.6
 Severity:  major   | Resolution: 
 Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
 Testcase:  N/A |   Architecture:  x86
   Os:  Windows |  
+---
Changes (by [EMAIL PROTECTED]):

  * severity:  normal => major

Comment:

 I've changed the severity to major because I feel this bug prevents me
 distributing any binaries compiled under ghc6.6 for Windows, since whether
 or not the bug is "visible" (ie if you choose to run the binary under a
 debugger), obviously something is very wrong indeed with the runtime or
 else it wouldn't be trying to use an invalid handle (or cause one of the
 windows DLLs to do so) at program exit.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2006-10-22 Thread GHC
#942: Windows programs throw uncaught Invalid HANDLE exception on exit
+---
 Reporter:  [EMAIL PROTECTED] |  Owner: 
 Type:  bug | Status:  new
 Priority:  normal  |  Milestone:  6.6.1  
Component:  Runtime System  |Version:  6.6
 Severity:  normal  | Resolution: 
 Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
 Testcase:  N/A |   Architecture:  x86
   Os:  Windows |  
+---
Comment (by [EMAIL PROTECTED]):

 If there is no Debug context menu in Windows Explorer when you navigate to
 main.exe, another way to get VS 2003 to debug the program is by creating a
 new C++ project in VS 2003, removing the source and header files from the
 project (and the project directory), then create a Debug sub directory in
 the project folder and copy main.exe into it. You need to rename main.exe
 to have the same name as the project. Then hit F5 in VS 2003 and VS will
 debug the program.
 I assume this technique should also work in VS 2005 but unfortunately I
 only have VS 2003 on my computer.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2006-10-21 Thread GHC
#942: Windows programs throw uncaught Invalid HANDLE exception on exit
+---
 Reporter:  [EMAIL PROTECTED] |  Owner: 
 Type:  bug | Status:  new
 Priority:  normal  |  Milestone:  6.6.1  
Component:  Runtime System  |Version:  6.6
 Severity:  normal  | Resolution: 
 Keywords:  uncaught exception HANDLE exit  | Difficulty:  Unknown
 Testcase:  N/A |   Architecture:  x86
   Os:  Windows |  
+---
Changes (by igloo):

  * milestone:  => 6.6.1
  * testcase:  => N/A

Comment:

 Can anyone tell me how to reproduce this with VS 2005 please (I don't have
 the Debug menu mentioned)?

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #942: Windows programs throw uncaught Invalid HANDLE exception on exit

2006-10-15 Thread GHC
#942: Windows programs throw uncaught Invalid HANDLE exception on exit
--+-
  Reporter:  [EMAIL PROTECTED]  |  Owner:   
 
  Type:  bug  | Status:  new
   
  Priority:  normal   |  Milestone: 
   
 Component:  Runtime System   |Version:  6.6
   
  Severity:  normal   |   Keywords:  uncaught exception HANDLE 
exit
Difficulty:  Unknown  |   Architecture:  x86
   
Os:  Windows  |  
--+-
If I compile the following program
 {{{
 module Main where

 main = return ()
 }}}
 on Windows XP with the command line
 {{{
 ghc --make Main.hs
 }}}
 and then run the program inside Microsoft Visual Studio 2003 (by right
 clicking main.exe and selecting Debug -> MS VS 2003 from the context menu)
 I get the following output in the Visual Studio output pane (full path to
 main.exe elided for clarity):
 {{{
 'main.exe': Loaded 'C:\...\main.exe', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
 'main.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
 The thread 'Win32 Thread' (0x630) has exited with code 0 (0x0).
 First-chance exception at 0x7c90eb74 in main.exe: 0xC008: An invalid
 HANDLE was specified.
 Unhandled exception at 0x7c90eb74 in main.exe: 0xC008: An invalid
 HANDLE was specified.
 The program '[1540] main.exe: Native' has exited with code 0 (0x0).
 }}}
 If the program is run outside Visual Studio no problems are visible (ie
 the program exits silently as expected) but presumably the same behaviour
 is happening internally.
 My first guess is that perhaps the RTS exit code is trying to use a handle
 to the thread that has already exited, but this is only a wild guess.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs