#4199: createDirectoryIfMissing fails if directory exists on 32-bit windows
------------------------------------+---------------------------------------
Reporter: creswick | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/directory | Version: 6.12.1
Keywords: | Difficulty:
Os: Windows | Testcase:
Architecture: x86 | Failure: Runtime crash
------------------------------------+---------------------------------------
Comment(by creswick):
Replying to [comment:1 simonmar]:
> Does it make a difference whether you use `-threaded` or not? (I know
of one bug in this area)
`-threaded` does not appear to have any effect.
We've dug into this a bit more, and found that it's caused by a windows
error code 1006 (ERROR_FILE_INVALID: http://msdn.microsoft.com/en-
us/library/ms681383(VS.85).aspx ). This is (erroneously?) mapped to
`IllegalArgument`.
If we catch the exception, we can get the following details:
* getLastError: 1006
* ioe_type e: invalid argument
* ioe_errno e: Just 22
* typeOf e: GHC.IO.Exception.IOException
* ioe_description e: Cannot create a file when that file already exists.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4199#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs