[GHC] #5014: canonicalizePath throws exception on paths that do not exist

GHC cvs-ghc at haskell.org
Fri Mar 11 12:01:18 CET 2011


#5014: canonicalizePath throws exception on paths that do not exist
---------------------------------+------------------------------------------
    Reporter:  hesselink         |       Owner:                     
        Type:  bug               |      Status:  new                
    Priority:  normal            |   Component:  libraries/directory
     Version:  7.0.2             |    Keywords:                     
    Testcase:                    |   Blockedby:                     
          Os:  Unknown/Multiple  |    Blocking:                     
Architecture:  Unknown/Multiple  |     Failure:  Runtime crash      
---------------------------------+------------------------------------------
 Assume path `foo` exists, but `foo/bar` doesn't. On GHC 6.12,
 `canonicalizePath "foo/bar"` gave back a result. On GHC 7.02, I get an
 exception:

 {{{
 *** Exception: foo/bar: canonicalizePath: does not exist (No such file or
 directory)
 }}}

 The behavior is not defined by the documentation, or at all (see #4215)
 but it would be nice if it didn't crash.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5014>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list