Re: [GHC] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-11-21 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
  Reporter:  maeder  |  Owner:  simonmar
  Type:  bug | Status:  closed  
  Priority:  highest |  Milestone:  7.6.2   
 Component:  Runtime System  |Version:  7.6.1   
Resolution:  fixed   |   Keywords:  
Os:  Solaris |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown| Difficulty:  Unknown 
  Testcase:  rts/T7227   |  Blockedby:  
  Blocking:  |Related:  
-+--
Changes (by PHO):

 * cc: pho@… (added)


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:17
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-10-11 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
  Reporter:  maeder  |  Owner:  simonmar
  Type:  bug | Status:  closed  
  Priority:  highest |  Milestone:  7.6.2   
 Component:  Runtime System  |Version:  7.6.1   
Resolution:  fixed   |   Keywords:  
Os:  Solaris |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown| Difficulty:  Unknown 
  Testcase:  rts/T7227   |  Blockedby:  
  Blocking:  |Related:  
-+--
Changes (by igloo):

  * status:  merge = closed
  * resolution:  = fixed


Comment:

 Merged as 4ea2263f584c4de94ff213d2288d6df78eb6e262

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:16
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-21 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  simonmar
Type:  bug   |  Status:  new 
Priority:  highest   |   Milestone:  7.6.2   
   Component:  Runtime System| Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by marlowsd@…):

 commit 5f01b6dd095955e9a52f5624213a7c54dc5e1a8c
 {{{
 Author: Simon Marlow marlo...@gmail.com
 Date:   Tue Sep 11 16:12:52 2012 +0200

 Fix off-by-one (#7227)

  rts/RtsFlags.c |1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:14
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-21 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  simonmar
Type:  bug   |  Status:  merge   
Priority:  highest   |   Milestone:  7.6.2   
   Component:  Runtime System| Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  rts/T7227   
   Blockedby:|Blocking:  
 Related:|  
-+--
Changes (by simonmar):

  * status:  new = merge
  * testcase:  = rts/T7227


-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:15
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-11 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--
Changes (by maeder):

  * architecture:  x86 = Unknown/Multiple


Comment:

 the same seq-faults occurs under sparc solaris

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:11
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-11 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  highest   |   Milestone:  7.6.2   
   Component:  Runtime System| Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--
Changes (by igloo):

  * priority:  normal = highest
  * component:  Compiler = Runtime System
  * milestone:  = 7.6.2


Comment:

 Sounds like an off-by-one error. Thanks for the diagnosis.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:12
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-11 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  simonmar
Type:  bug   |  Status:  new 
Priority:  highest   |   Milestone:  7.6.2   
   Component:  Runtime System| Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  Unknown/Multiple  | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--
Changes (by simonmar):

  * owner:  = simonmar


Comment:

 I see the problem, fix coming soon.  Thanks for all the debugging.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:13
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-10 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by maeder):

 inplace/bin/haddock works if called without the remaining +RTS flags +RTS
 -tlibraries/ghc-prim/dist-install/doc/html/ghc-prim/ghc-prim.haddock.t
 --machine-readable (this was not there in ghc-7.6.0.20120810)

 In fact, all my programs seg-fault if called with +RTS -t...

 {{{
 -bash-3.00$ cat W.hs
 main = putStrLn hello
 -bash-3.00$ ghc W.hs -rtsopts
 [1 of 1] Compiling Main ( W.hs, W.o )
 Linking W ...
 -bash-3.00$ gdb --args ./W +RTS -ttest
 GNU gdb (GDB) 7.2
 Copyright (C) 2010 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type show copying
 and show warranty for details.
 This GDB was configured as i386-pc-solaris2.10.
 For bug reporting instructions, please see:
 http://www.gnu.org/software/gdb/bugs/...
 Reading symbols from /local/home/maeder/haskell/W...done.
 (gdb) run
 Starting program: /local/home/maeder/haskell/W +RTS -ttest
 [Thread debugging using libthread_db enabled]
 [New Thread 1 (LWP 1)]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1 (LWP 1)]
 0xfecd63ec in strlen () from /lib/libc.so.1
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-10 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by igloo):

 Could you try with
 {{{
 ghc W.hs -rtsopts -debug
 }}}
 instead please? Then gdb should give you a useful backtrace.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-10 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by maeder):

 {{{
 (gdb) bt
 #0  0xfecd63ec in strlen () from /lib/libc.so.1
 #1  0xfed317a2 in _ndoprnt () from /lib/libc.so.1
 #2  0xfed34759 in vfprintf () from /lib/libc.so.1
 #3  0x080ee097 in stats_fprintf (f=0x814e970, s=0x81296e1 %s ) at
 rts/RtsFlags.c:1449
 #4  0x080ee1e6 in initStatsFile (f=0x814e970) at rts/RtsFlags.c:1503
 #5  0x080ecd63 in setupRtsFlags (argc=0x814b5a4, argv=0x80479cc,
 rtsOptsEnabled=RtsOptsAll, ghc_rts_opts=0x0)
 at rts/RtsFlags.c:556
 #6  0x080ec414 in hs_init_ghc (argc=0x814b5a4, argv=0x814b5a8,
 rts_config=...) at rts/RtsStartup.c:156
 #7  0x080defb9 in real_main () at rts/RtsMain.c:47
 #8  0x080df09d in hs_main (argc=3, argv=0x80479cc, main_closure=0x814682c,
 rts_config=...) at rts/RtsMain.c:114
 #9  0x080804d2 in main ()
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-10 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by maeder):

 it works without file name:
 {{{
 -bash-3.00$ ./W +RTS -t
 hello
 ghc: 47444 bytes, 1 GCs, 42632/42632 avg/max bytes residency (1
 samples), 1M in use, 0.00 INIT (0.00 elapsed), 0.00 MUT (0.00 elapsed),
 0.00 GC (0.00 elapsed) :ghc
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:8
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-10 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by maeder):

 The -t argument file is actually created, but remains empty.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:9
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-10 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by maeder):

 Under linux I see a trailing (null) in the printed command line within
 the -t file.

 {{{
  cat test
 ./Hello +RTS -ttest --machine-readable (null)
  [(bytes allocated, 47628)
  ,(num_GCs, 1)
  ,(average_bytes_used, 42632)
  ,(max_bytes_used, 42632)
  ,(num_byte_usage_samples, 1)
  ,(peak_megabytes_allocated, 1)
  ,(init_cpu_seconds, 0.00)
  ,(init_wall_seconds, 0.00)
  ,(mutator_cpu_seconds, 0.00)
  ,(mutator_wall_seconds, -0.00)
  ,(GC_cpu_seconds, 0.00)
  ,(GC_wall_seconds, 0.00)
  ]
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:10
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-07 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--
Changes (by simonmar):

  * difficulty:  = Unknown


Comment:

 You can put

 {{{
 HADDOCK_DOCS   = NO
 }}}

 in your `mk/build.mk` file. (for other things to put in `mk/build.mk`, see
 `mk/build.mk.sample`).

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#comment:1
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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-07 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by maeder):

 Right, this created a working ghc without haddock.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-07 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by simonmar):

 The next step would be to find a smaller test that is failing, and try to
 debug the cause.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#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] #7227: cannot build ghc-7.6.1 because haddock seg-faults

2012-09-07 Thread GHC
#7227: cannot build ghc-7.6.1 because haddock seg-faults
-+--
Reporter:  maeder|   Owner:  
Type:  bug   |  Status:  new 
Priority:  normal|   Milestone:  
   Component:  Compiler  | Version:  7.6.1   
Keywords:|  Os:  Solaris 
Architecture:  x86   | Failure:  None/Unknown
  Difficulty:  Unknown   |Testcase:  
   Blockedby:|Blocking:  
 Related:|  
-+--

Comment(by maeder):

 I tried to cabal install haddock resulting in

 {{{
 [31 of 31] Compiling Documentation.Haddock ( src/Documentation/Haddock.hs,
 dist/build/Documentation/Haddock.o )

 src/Documentation/Haddock.hs:73:21:
 Couldn't match type `GhcMonad.Ghc' with `IO'
 Expected type: IO
  ([(DocPaths, InterfaceFile)], [Interface], LinkEnv)
   Actual type: GhcMonad.Ghc
  ([(DocPaths, InterfaceFile)], [Interface], LinkEnv)
 In the return type of a call of `readPackagesAndProcessModules'
 In a stmt of a 'do' block:
   (_, ifaces, _) - readPackagesAndProcessModules flags modules
 In the expression:
   do { (_, ifaces, _) - readPackagesAndProcessModules flags modules;
return ifaces }
 cabal: Error: some packages failed to install:
 haddock-2.12.0 failed during the building phase. The exception was:
 ExitFailure 1
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7227#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