Re: [GHC] #5639: Computing the sum of all the primes below two million leads to a runtime system crash

2011-11-18 Thread GHC
#5639: Computing the sum of all the primes below two million leads to a runtime
system crash
---+
Reporter:  manzyuk |Owner:   
Type:  bug |   Status:  new  
Priority:  normal  |Milestone:   
   Component:  Runtime System  |  Version:  7.0.3
Keywords:  | Testcase:   
   Blockedby:  |   Difficulty:   
  Os:  Linux   | Blocking:   
Architecture:  x86_64 (amd64)  |  Failure:  Runtime crash
---+

Comment(by simonmar):

 Prime suspect is a hardware bug, I'm afraid.  Try taking a binary created
 on the desktop machine to the laptop and see if it works there.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5639#comment:3
GHC http://www.haskell.org/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] #4900: DEPENDS pragma

2011-11-18 Thread GHC
#4900: DEPENDS pragma
--+-
  Reporter:  cdsmith  |  Owner:  
  Type:  feature request  | Status:  new 
  Priority:  high |  Milestone:  7.4.1   
 Component:  Build System |Version:  
Resolution:   |   Keywords:  
  Testcase:  TH_Depends   |  Blockedby:  
Difficulty:   | Os:  Unknown/Multiple
  Blocking:   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown |  
--+-

Comment(by simonmar):

 I'm looking at doing the changes to track `#include`s (see also #3589).

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4900#comment:34
GHC http://www.haskell.org/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] #5639: Computing the sum of all the primes below two million leads to a runtime system crash

2011-11-18 Thread GHC
#5639: Computing the sum of all the primes below two million leads to a runtime
system crash
---+
Reporter:  manzyuk |Owner:   
Type:  bug |   Status:  new  
Priority:  normal  |Milestone:   
   Component:  Runtime System  |  Version:  7.0.3
Keywords:  | Testcase:   
   Blockedby:  |   Difficulty:   
  Os:  Linux   | Blocking:   
Architecture:  x86_64 (amd64)  |  Failure:  Runtime crash
---+

Comment(by manzyuk):

 The binary created on the desktop machine doesn't work on the laptop
 because of a missing shared library dependency:

 {{{
 manzyuk@paddy:~$ ./euler-10
 ./euler-10: error while loading shared libraries: libgmp.so.10: cannot
 open shared object file: No such file or directory
 manzyuk@paddy:~$ ldd euler-10
 linux-vdso.so.1 =  (0x7fffdb5ff000)
 libgmp.so.10 = not found
 libm.so.6 = /lib/libm.so.6 (0x7f619dc07000)
 librt.so.1 = /lib/librt.so.1 (0x7f619d9fe000)
 libdl.so.2 = /lib/libdl.so.2 (0x7f619d7fa000)
 libc.so.6 = /lib/libc.so.6 (0x7f619d477000)
 libpthread.so.0 = /lib/libpthread.so.0 (0x7f619d259000)
 /lib64/ld-linux-x86-64.so.2 (0x7f619deae000)
 }}}

 The binary built on the laptop is linked against `libgmp.so.3`, not
 `libgmp.so.10`:

 {{{
 manzyuk@paddy:~/tmp$ ldd euler-10
 linux-vdso.so.1 =  (0x7fff881ff000)
 libgmp.so.3 = /usr/lib/libgmp.so.3 (0x7febe2833000)
 libm.so.6 = /lib/libm.so.6 (0x7febe25b)
 librt.so.1 = /lib/librt.so.1 (0x7febe23a7000)
 libdl.so.2 = /lib/libdl.so.2 (0x7febe21a3000)
 libc.so.6 = /lib/libc.so.6 (0x7febe1e2)
 libpthread.so.0 = /lib/libpthread.so.0 (0x7febe1c02000)
 /lib64/ld-linux-x86-64.so.2 (0x7febe2ab7000)
 }}}

 The desktop has both `libgmp.so.10` and `libgmp.so.3`, so I copied the
 binary built on the laptop to the desktop and ran it:

 {{{
 manzyuk@pandora:~$ ./euler-10
 euler-10: internal error: scavenge_stack: weird activation record found on
 stack: 2
 (GHC version 7.0.3 for x86_64_unknown_linux)
 Please report this as a GHC bug:
 http://www.haskell.org/ghc/reportabug
 Aborted
 }}}

 Since this doesn't happen on the laptop, I am leaning towards accepting
 that this is a hardware bug and closing the ticket.  Apologies for making
 noise.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5639#comment:4
GHC http://www.haskell.org/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] #5403: LLVM's llc pass does not print all the error messages to the console.

2011-11-18 Thread GHC
#5403: LLVM's llc pass does not print all the error messages to the console.
+---
Reporter:  kgardas  |   Owner:  dterei
Type:  bug  |  Status:  infoneeded
Priority:  normal   |   Component:  Compiler  
 Version:  7.3  |Keywords:
Testcase:   |   Blockedby:
  Os:  Linux|Blocking:
Architecture:  arm  | Failure:  Other 
+---
Changes (by dterei):

  * status:  new = infoneeded
  * component:  Compiler (LLVM) = Compiler


Comment:

 Can you provide me with a means to reproduce on X86? Since LLVM includes
 all backends if you give me a file that crashes under ARM I should still
 be able to reproduce on x86. I can't really tackle this without a testcase
 though.

 If you are able to look yourself at the code, place to look I think is
 compiler/main/SysTools.lhs function 'builderMainLoop'.

 This also isn't just an LLVM issue but all tools run by GHC.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5403#comment:3
GHC http://www.haskell.org/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] #5163: LLVM: profthreaded failures when GHC built with llvm

2011-11-18 Thread GHC
#5163: LLVM: profthreaded failures when GHC built with llvm
+---
Reporter:  dterei   |Owner:  dterei   
Type:  bug  |   Status:  new  
Priority:  normal   |Milestone:  7.4.1
   Component:  Compiler (LLVM)  |  Version:  7.0.3
Keywords:   | Testcase:   
   Blockedby:   |   Difficulty:   
  Os:  Linux| Blocking:   
Architecture:  x86_64 (amd64)   |  Failure:  Runtime crash
+---

Comment(by dterei):

 So I solved a mangler issue on x64 recently that only seemed to trigger
 with profiling mode. Hopefully this solved the problem, testing now.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5163#comment:4
GHC http://www.haskell.org/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] #3589: Recompilation checker doesn't take into account CPP headers

2011-11-18 Thread GHC
#3589: Recompilation checker doesn't take into account CPP headers
-+--
Reporter:  simonmar  |   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  7.4.1   
   Component:  Compiler  | Version:  6.10.4  
Keywords:|Testcase:  
  Difficulty:  Unknown   |  Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
-+--

Comment(by marlowsd@…):

 commit 3f34e0913efcc82dd90be56d04c5e57ec60d3677
 {{{
 Author: Simon Marlow marlo...@gmail.com
 Date:   Fri Nov 18 12:46:01 2011 +

 Track #included files for recompilation checking (#4900, #3589)

 This was pretty straightforward: collect the filenames in the lexer,
 and add them in to the tcg_dependent_files list that the typechecker
 collects.

 Note that we still don't get #included files in the ghc -M output.
 Since we don't normally lex the whole file in ghc -M, this same
 mechanism can't be used directly.

  compiler/main/GHC.hs  |   11 ++---
  compiler/main/HscMain.hs  |   41
 +---
  compiler/main/HscTypes.lhs|   21 +++
  compiler/parser/Lexer.x   |6 +
  compiler/typecheck/TcRnDriver.lhs |   16 ++---
  compiler/typecheck/TcRnMonad.lhs  |6 +
  compiler/typecheck/TcRnTypes.lhs  |2 +-
  7 files changed, 86 insertions(+), 17 deletions(-)
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3589#comment:6
GHC http://www.haskell.org/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] #4900: DEPENDS pragma

2011-11-18 Thread GHC
#4900: DEPENDS pragma
--+-
  Reporter:  cdsmith  |  Owner:  
  Type:  feature request  | Status:  new 
  Priority:  high |  Milestone:  7.4.1   
 Component:  Build System |Version:  
Resolution:   |   Keywords:  
  Testcase:  TH_Depends   |  Blockedby:  
Difficulty:   | Os:  Unknown/Multiple
  Blocking:   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown |  
--+-

Comment(by marlowsd@…):

 commit 3f34e0913efcc82dd90be56d04c5e57ec60d3677
 {{{
 Author: Simon Marlow marlo...@gmail.com
 Date:   Fri Nov 18 12:46:01 2011 +

 Track #included files for recompilation checking (#4900, #3589)

 This was pretty straightforward: collect the filenames in the lexer,
 and add them in to the tcg_dependent_files list that the typechecker
 collects.

 Note that we still don't get #included files in the ghc -M output.
 Since we don't normally lex the whole file in ghc -M, this same
 mechanism can't be used directly.

  compiler/main/GHC.hs  |   11 ++---
  compiler/main/HscMain.hs  |   41
 +---
  compiler/main/HscTypes.lhs|   21 +++
  compiler/parser/Lexer.x   |6 +
  compiler/typecheck/TcRnDriver.lhs |   16 ++---
  compiler/typecheck/TcRnMonad.lhs  |6 +
  compiler/typecheck/TcRnTypes.lhs  |2 +-
  7 files changed, 86 insertions(+), 17 deletions(-)
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4900#comment:35
GHC http://www.haskell.org/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] #3589: Recompilation checker doesn't take into account CPP headers

2011-11-18 Thread GHC
#3589: Recompilation checker doesn't take into account CPP headers
---+
  Reporter:  simonmar  |  Owner:  
  Type:  bug   | Status:  closed  
  Priority:  normal|  Milestone:  7.4.1   
 Component:  Compiler  |Version:  6.10.4  
Resolution:  fixed |   Keywords:  
  Testcase:|  Blockedby:  
Difficulty:  Unknown   | Os:  Unknown/Multiple
  Blocking:|   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---+
Changes (by simonmar):

  * status:  new = closed
  * resolution:  = fixed


Comment:

 Mostly fixed, see also #4900.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3589#comment:7
GHC http://www.haskell.org/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] #4900: DEPENDS pragma

2011-11-18 Thread GHC
#4900: DEPENDS pragma
--+-
  Reporter:  cdsmith  |  Owner:  
  Type:  feature request  | Status:  new 
  Priority:  high |  Milestone:  7.4.1   
 Component:  Build System |Version:  
Resolution:   |   Keywords:  
  Testcase:  TH_Depends   |  Blockedby:  
Difficulty:   | Os:  Unknown/Multiple
  Blocking:   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown |  
--+-

Comment(by simonmar):

 Still to do:

  * the DEPENDS pragma itself (although I think we've covered the important
 use cases with `qAddDependentFile` and the `#include` support I just
 added)

  * Support for tracking `#include` files in `ghc -M`, covered by #3588

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4900#comment:36
GHC http://www.haskell.org/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] #5198: -ddump-to-file should deposit files in target not source directory

2011-11-18 Thread GHC
#5198: -ddump-to-file should deposit files in target not source directory
-+--
Reporter:  ezyang|Owner:  igloo   
Type:  bug   |   Status:  new 
Priority:  normal|Milestone:  7.4.1   
   Component:  Compiler  |  Version:  7.1 
Keywords:| Testcase:  
   Blockedby:|   Difficulty:  
  Os:  Unknown/Multiple  | Blocking:  
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown
-+--

Comment(by igloo@…):

 commit 668c860b361f16c71d23dd41af2eeb97f6716360
 {{{
 Author: Ian Lynagh ig...@earth.li
 Date:   Fri Nov 18 02:06:57 2011 +

 Add -dumpdir flag; fixes trac #5198

 -ddump-* files are put in the given directory.

 -outputdir also sets the dumpdir.

  compiler/main/DynFlags.hs |9 ++-
  compiler/main/ErrUtils.lhs|   31
 
  docs/users_guide/flags.xml|8 ++-
  docs/users_guide/separate_compilation.xml |   15 +-
  4 files changed, 46 insertions(+), 17 deletions(-)
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5198#comment:2
GHC http://www.haskell.org/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] #5198: -ddump-to-file should deposit files in target not source directory

2011-11-18 Thread GHC
#5198: -ddump-to-file should deposit files in target not source directory
---+
  Reporter:  ezyang|  Owner:  igloo   
  Type:  bug   | Status:  closed  
  Priority:  normal|  Milestone:  7.4.1   
 Component:  Compiler  |Version:  7.1 
Resolution:  fixed |   Keywords:  
  Testcase:|  Blockedby:  
Difficulty:| Os:  Unknown/Multiple
  Blocking:|   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---+
Changes (by igloo):

  * status:  new = closed
  * resolution:  = fixed


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5198#comment:3
GHC http://www.haskell.org/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] #5097: mailing list mail dropping

2011-11-18 Thread GHC
#5097: mailing list mail dropping
---+
  Reporter:  igloo |  Owner:  igloo   
  Type:  task  | Status:  closed  
  Priority:  normal|  Milestone:  7.4.1   
 Component:  None  |Version:  7.0.3   
Resolution:  fixed |   Keywords:  
  Testcase:|  Blockedby:  
Difficulty:| Os:  Unknown/Multiple
  Blocking:|   Architecture:  Unknown/Multiple
   Failure:  None/Unknown  |  
---+
Changes (by igloo):

  * status:  new = closed
  * resolution:  = fixed


Comment:

 I did this a while ago: `/srv/local/mailman/{mailmanwrap,procmail}` on
 lambda.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5097#comment:3
GHC http://www.haskell.org/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] #4385: Type-level natural numbers

2011-11-18 Thread GHC
#4385: Type-level natural numbers
+---
Reporter:  diatchki |Owner:  diatchki
Type:  feature request  |   Status:  new 
Priority:  normal   |Milestone:  7.4.1   
   Component:  Compiler (Type checker)  |  Version:  
Keywords:   | Testcase:  
   Blockedby:   |   Difficulty:  
  Os:  Unknown/Multiple | Blocking:  
Architecture:  Unknown/Multiple |  Failure:  None/Unknown
+---
Changes (by nathanhowell):

 * cc: nathanhowell@… (added)


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4385#comment:47
GHC http://www.haskell.org/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] #3693: Show stack traces

2011-11-18 Thread GHC
#3693: Show stack traces
--+-
  Reporter:  jpet |  Owner:  
  Type:  feature request  | Status:  new 
  Priority:  normal   |  Milestone:  7.4.1   
 Component:  Runtime System   |Version:  6.10.4  
Resolution:   |   Keywords:  
  Testcase:   |  Blockedby:  
Difficulty:   | Os:  Unknown/Multiple
  Blocking:   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown |  
--+-
Changes (by nathanhowell):

 * cc: nathanhowell@… (added)


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3693#comment:40
GHC http://www.haskell.org/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] #5163: LLVM: profthreaded failures when GHC built with llvm

2011-11-18 Thread GHC
#5163: LLVM: profthreaded failures when GHC built with llvm
--+-
  Reporter:  dterei   |  Owner:  dterei
  Type:  bug  | Status:  closed
  Priority:  normal   |  Milestone:  7.4.1 
 Component:  Compiler (LLVM)  |Version:  7.0.3 
Resolution:  fixed|   Keywords:
  Testcase:   |  Blockedby:
Difficulty:   | Os:  Linux 
  Blocking:   |   Architecture:  x86_64 (amd64)
   Failure:  Runtime crash|  
--+-
Changes (by dterei):

  * status:  new = closed
  * resolution:  = fixed


Comment:

 GHC built with LLVM using llvm 3.0 and GHC 7.2.2 works perfectly! Must
 have been #4211 or llvm itself.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/5163#comment:5
GHC http://www.haskell.org/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] #4916: make clean broken

2011-11-18 Thread GHC
#4916: make clean broken
-+--
Reporter:  kgardas   |Owner:  igloo  
Type:  bug   |   Status:  new
Priority:  normal|Milestone:  7.4.1  
   Component:  Build System  |  Version:  7.1
Keywords:| Testcase: 
   Blockedby:|   Difficulty: 
  Os:  Solaris   | Blocking: 
Architecture:  x86   |  Failure:  Building GHC failed
-+--

Comment(by igloo@…):

 commit 80e9070c77718b7ff0e913182e54842754726ce8
 {{{
 Author: Ian Lynagh ig...@earth.li
 Date:   Sat Nov 19 01:29:05 2011 +

 Improve the way we call rm in the build system; fixes trac #4916

 We avoid calling rm -rf with no file arguments; this fixes cleaning
 on Solaris, where that fails.

 We also check for suspicious arguments: anything containing ..,
 starting /, or containing a * (you need to call $(wildcard ...)
 yourself now if you really want globbing). This should make things
 a little safer.

  compiler/ghc.mk|6 +-
  docs/man/ghc.mk|2 +-
  driver/ghci/ghc.mk |6 +-
  ghc.mk |   91
 ---
  ghc/ghc.mk |4 +-
  includes/ghc.mk|2 +-
  libffi/ghc.mk  |   16 
  mk/tree.mk |   21 +
  rules/build-dependencies.mk|6 +-
  rules/build-package-way.mk |4 +-
  rules/build-package.mk |4 +-
  rules/build-perl.mk|2 +-
  rules/clean-target.mk  |2 +-
  rules/docbook.mk   |2 +-
  rules/manual-package-config.mk |2 +-
  rules/shell-wrapper.mk |4 +-
  utils/ghc-pkg/ghc.mk   |   10 ++--
  utils/mkdirhier/ghc.mk |2 +-
  utils/runghc/ghc.mk|2 +-
  19 files changed, 106 insertions(+), 82 deletions(-)
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/4916#comment:3
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler

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