|
Re: [GHC] #732: Error in shutdownHaskell() in Win32 DLL: msg#00012lang.haskell.glasgow.bugs
#732: Error in shutdownHaskell() in Win32 DLL -------------------------------+-------------------------------------------- Reporter: cschmidt@xxxxxxx | Owner: Type: bug | Status: new Priority: normal | Milestone: 6.4.2 Component: Runtime System | Version: 6.4.1 Severity: normal | Resolution: Keywords: | Os: Windows Difficulty: Easy (1 hr) | Architecture: Unknown -------------------------------+-------------------------------------------- Comment (by simonmar): I've made the error a warning instead. Basically the situation is this: it is your responsibility to include exception handlers in foreign exported functions and to return appropriate error values. The only thing that the runtime can do in the event that a foreign exported function raises an exception is to terminate with a fatal error; there's no way to return a value to the caller, because we don't know what value to return. In your example, the runtime had terminated, and your DLL code attempted to shut it down again. There's no reason this really has to be a fatal error, though. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/732> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler_______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [GHC] #699: GHCi doesn't implement foreign import on amd64 when interpreting., GHC |
|---|---|
| Next by Date: | Re: [GHC] #732: Error in shutdownHaskell() in Win32 DLL, GHC |
| Previous by Thread: | Re: [GHC] #699: GHCi doesn't implement foreign import on amd64 when interpreting., GHC |
| Next by Thread: | Re: [GHC] #732: Error in shutdownHaskell() in Win32 DLL, GHC |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |