Martin Boeker | 1 Mar 2006 01:41
Picon
Favicon

getDirectoryContents: failed (No error)

Hello,

this error has been reported before and was fixed in ghc 6.4.1 but has 
been revived in ghc 6.4.2:

test3.exe: .: getDirectoryContents: failed (No error)

module Main where

import System.Directory

main =	do s <- getDirectoryContents "."
            putStr (concat s)

This works fine for ghc 6.4.1 bld1. The error is encountered in 6.4.2 
snapshots from Feb. 25 and newer (elder ones have not tested), and the 
same snapshots with the MinGW files from afore mentioned ghc 6.4.1 (it's 
not the MinGW).

My system is: Cygwin (WinXP) and ghc 6.4.1 bld1 or 6.4.2 (Cajal works 
better).

I would like to add a wish: could we have a native Cygwin port?

Thank you

Martin

--

-- 
_________________________________________________________________________
(Continue reading)

GHC | 1 Mar 2006 13:25
Favicon

Re: [GHC] #470: build fails on Linux/sparc (genprimopcode: parse error at)

#470: build fails on Linux/sparc (genprimopcode: parse error at)
-----------------------+----------------------------------------------------
  Reporter:  arekm     |          Owner:  nobody  
      Type:  bug       |         Status:  assigned
  Priority:  normal    |      Milestone:  6.4.2   
 Component:  Compiler  |        Version:  6.4.1   
  Severity:  normal    |     Resolution:  None    
  Keywords:            |             Os:  Linux   
Difficulty:  Unknown   |   Architecture:  sparc   
-----------------------+----------------------------------------------------
Changes (by simonmar):

  * difficulty:  => Unknown
  * milestone:  => 6.4.2

Comment:

 See also:

 http://www.haskell.org//pipermail/glasgow-haskell-users/2006-

 March/009765.html

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/470>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs <at> haskell.org
(Continue reading)

GHC | 1 Mar 2006 14:26
Favicon

Re: [GHC] #658: DEPRECATED doesn't work for data constructors

#658: DEPRECATED doesn't work for data constructors
--------------------------+-------------------------------------------------
  Reporter:  ijones       |          Owner:  simonpj
      Type:  bug          |         Status:  closed 
  Priority:  normal       |      Milestone:  6.4.2  
 Component:  Compiler     |        Version:  6.4.1  
  Severity:  minor        |     Resolution:  fixed  
  Keywords:               |             Os:  Unknown
Difficulty:  Easy (1 hr)  |   Architecture:  Unknown
--------------------------+-------------------------------------------------
Changes (by simonmar):

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

Comment:

 It's quite a large patch, I'm punting on this for 6.4.2.  6.6 has it,
 anyway.

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/658>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
(Continue reading)

GHC | 1 Mar 2006 14:28
Favicon

Re: [GHC] #696: segmentation fault in ./genprimopcode (x86_64)

#696: segmentation fault in ./genprimopcode (x86_64)
-----------------------------+----------------------------------------------
  Reporter:  taral           |          Owner:  simonmar      
      Type:  bug             |         Status:  new           
  Priority:  normal          |      Milestone:  6.4.2         
 Component:  Compiler (NCG)  |        Version:  6.4.1         
  Severity:  normal          |     Resolution:                
  Keywords:                  |             Os:  Linux         
Difficulty:  Unknown         |   Architecture:  x86_64 (amd64)
-----------------------------+----------------------------------------------
Comment (by simonmar):

 taral - does the -fasm version of the null program crash for you?

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/696>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC | 1 Mar 2006 17:21
Favicon

Re: [GHC] #696: segmentation fault in ./genprimopcode (x86_64)

#696: segmentation fault in ./genprimopcode (x86_64)
-----------------------------+----------------------------------------------
  Reporter:  taral           |          Owner:  simonmar      
      Type:  bug             |         Status:  new           
  Priority:  normal          |      Milestone:  6.4.2         
 Component:  Compiler (NCG)  |        Version:  6.4.1         
  Severity:  normal          |     Resolution:                
  Keywords:                  |             Os:  Linux         
Difficulty:  Unknown         |   Architecture:  x86_64 (amd64)
-----------------------------+----------------------------------------------
Comment (by taral):

 Yup. It crashes at:

 movq $GHCziTopHandler_topHandler_closure,8(%rbx)

 because rbx points into code, if I remember correctly.

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/696>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC | 1 Mar 2006 17:34
Favicon

Re: [GHC] #696: segmentation fault in ./genprimopcode (x86_64)

#696: segmentation fault in ./genprimopcode (x86_64)
-----------------------------+----------------------------------------------
  Reporter:  taral           |          Owner:  simonmar      
      Type:  bug             |         Status:  new           
  Priority:  normal          |      Milestone:  6.4.2         
 Component:  Compiler (NCG)  |        Version:  6.4.1         
  Severity:  normal          |     Resolution:                
  Keywords:                  |             Os:  Linux         
Difficulty:  Unknown         |   Architecture:  x86_64 (amd64)
-----------------------------+----------------------------------------------
Comment (by simonmar):

 null.s looks like it is unregisterised, whereas null.fasm.s is
 registerised.  This would explain the crash: if the default RTS is
 unregisterised, linking registerised code against it will fail.

 So I guess your Debian build of GHC 6.4.1 is unregisterised.  This is
 something you should probably look into - there's no reason to have an
 unregisterised build of 6.4.1 for x86_64, registerised works fine and is a
 lot faster (and -fasm works).

 It is usual to disable the native code generator for a registerised build.
 I guess the Debian folks didn't do this.  I'll look into providing more
 safety checks in GHC to make sure you get a sensible error message rather
 than a crash in the future.

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/696>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
(Continue reading)

Ian Lynagh | 1 Mar 2006 17:50
Picon
Gravatar

Re: [GHC] #696: segmentation fault in ./genprimopcode (x86_64)

On Wed, Mar 01, 2006 at 04:34:53PM -0000, GHC wrote:
> 
>  So I guess your Debian build of GHC 6.4.1 is unregisterised.  This is
>  something you should probably look into - there's no reason to have an
>  unregisterised build of 6.4.1 for x86_64, registerised works fine and is a
>  lot faster (and -fasm works).

amd64 is already set to be registerised in the next version, but I
haven't managed to upload it yet due to the various problems discussed
elsewhere. Will hopefully happen RSN though...

>  It is usual to disable the native code generator for a registerised build.
>  I guess the Debian folks didn't do this.

Currently I have this for most arches:

    echo "GhcUnregisterised=YES" >> mk/build.mk
    echo "SplitObjs=NO" >> mk/build.mk

I'll add

    echo "GhcWithNativeCodeGen=NO" >> mk/build.mk

Is there anything else you'd recommend?

Thanks
Ian
GHC | 1 Mar 2006 17:49
Favicon

Re: [GHC] #696: segmentation fault in ./genprimopcode (x86_64)

#696: segmentation fault in ./genprimopcode (x86_64)
-----------------------------+----------------------------------------------
  Reporter:  taral           |          Owner:  simonmar      
      Type:  bug             |         Status:  new           
  Priority:  normal          |      Milestone:  6.4.2         
 Component:  Compiler (NCG)  |        Version:  6.4.1         
  Severity:  normal          |     Resolution:                
  Keywords:                  |             Os:  Linux         
Difficulty:  Unknown         |   Architecture:  x86_64 (amd64)
-----------------------------+----------------------------------------------
Comment (by taral):

 I'll file a Debian bug then. Thanks!

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/696>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
GHC | 1 Mar 2006 17:51
Favicon

Re: [GHC] #696: segmentation fault in ./genprimopcode (x86_64)

#696: segmentation fault in ./genprimopcode (x86_64)
-----------------------------+----------------------------------------------
  Reporter:  taral           |          Owner:  simonmar      
      Type:  bug             |         Status:  closed        
  Priority:  normal          |      Milestone:  6.4.2         
 Component:  Compiler (NCG)  |        Version:  6.4.1         
  Severity:  normal          |     Resolution:  invalid       
  Keywords:                  |             Os:  Linux         
Difficulty:  Unknown         |   Architecture:  x86_64 (amd64)
-----------------------------+----------------------------------------------
Changes (by taral):

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

Comment:

 From the 6.4.1-2 changelog (not published yet?):

   * On the list of arches we build registerised:
     * Add amd64.

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/696>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs <at> haskell.org
(Continue reading)

GHC | 1 Mar 2006 19:53
Favicon

Re: [GHC] #637: Ctrl-Break handler doesn't work in forked threads in "-threaded" RTS

#637: Ctrl-Break handler doesn't work in forked threads in "-threaded" RTS
--------------------------------+-------------------------------------------
  Reporter:  bulatz <at> HotPOP.com  |          Owner:  simonmar
      Type:  bug                |         Status:  new     
  Priority:  normal             |      Milestone:  6.6     
 Component:  Runtime System     |        Version:  6.4.1   
  Severity:  normal             |     Resolution:          
  Keywords:                     |             Os:  Windows 
Difficulty:  Moderate (1 day)   |   Architecture:  Unknown 
--------------------------------+-------------------------------------------
Changes (by guest):

  * cc:  => Bulat.Ziganshin <at> gmail.com

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/637>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs <at> haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Gmane