Re: [GHC] #7500: GHC: internal error: getMBlock: mmap: Operation not permitted

2013-01-09 Thread GHC
#7500: GHC: internal error: getMBlock: mmap: Operation not permitted
+---
  Reporter:  guest  |  Owner:  
  Type:  bug| Status:  new 
  Priority:  normal |  Milestone:  
 Component:  Compiler   |Version:  7.4.1   
Resolution: |   Keywords:  
Os:  Linux  |   Architecture:  Unknown/Multiple
   Failure:  Runtime crash  | Difficulty:  Unknown 
  Testcase: |  Blockedby:  
  Blocking: |Related:  
+---
Changes (by simonmar):

  * status:  closed = new
  * resolution:  invalid =


Comment:

 If this is a simple case of running out of memory, then we ought to emit
 the correct error message rather than a panic.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7500#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] #7500: GHC: internal error: getMBlock: mmap: Operation not permitted

2013-01-03 Thread GHC
#7500: GHC: internal error: getMBlock: mmap: Operation not permitted
+---
  Reporter:  guest  |  Owner:  
  Type:  bug| Status:  closed  
  Priority:  normal |  Milestone:  
 Component:  Compiler   |Version:  7.4.1   
Resolution:  invalid|   Keywords:  
Os:  Linux  |   Architecture:  Unknown/Multiple
   Failure:  Runtime crash  | Difficulty:  Unknown 
  Testcase: |  Blockedby:  
  Blocking: |Related:  
+---
Changes (by igloo):

  * status:  infoneeded = closed
  * difficulty:  = Unknown
  * resolution:  = invalid


Comment:

 I don't think there's a bug here: on a 32bit platform, a single process is
 still limited to 2G of memory.

 If you still think there's something wrong, please reopen and clarify what
 behaviour you were expecting.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7500#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] #7500: GHC: internal error: getMBlock: mmap: Operation not permitted

2012-12-15 Thread GHC
#7500: GHC: internal error: getMBlock: mmap: Operation not permitted
--+-
Reporter:  guest  |  Owner:  
Type:  bug| Status:  infoneeded  
Priority:  normal |  Component:  Compiler
 Version:  7.4.1  |   Keywords:  
  Os:  Linux  |   Architecture:  Unknown/Multiple
 Failure:  Runtime crash  |  Blockedby:  
Blocking: |Related:  
--+-
Changes (by ezyang):

  * status:  new = infoneeded


Comment:

 Returning EPERM from mmap when PROT_EXEC is not specified should be
 impossible on Linux. What is your kernel version?

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


[GHC] #7500: GHC: internal error: getMBlock: mmap: Operation not permitted

2012-12-14 Thread GHC
#7500: GHC: internal error: getMBlock: mmap: Operation not permitted
--+-
Reporter:  guest  |  Owner:  
Type:  bug| Status:  new 
Priority:  normal |  Component:  Compiler
 Version:  7.4.1  |   Keywords:  
  Os:  Linux  |   Architecture:  Unknown/Multiple
 Failure:  Runtime crash  |  Blockedby:  
Blocking: |Related:  
--+-
 Trying to calculate partition of a number using generating fuction with
 memoization, like this:


 {{{
 #!/usr/bin/runhaskell

 part'' :: Int - Integer
 part'' = ( map part' [0..] !!)

 part' :: Int - Integer
 part' 0 = 1
 part' 1 = 1
 part' n =
 sum $ map (\k -
 let kk = fromInteger(k); k1 = floor(1/2*kk*(3*kk-1)); k2 =
 floor(1/2*kk*(3*kk+1)) in
 (-1)^(k+1) * ( (part (n-k1)) + (part (n-k2))) ) [1..toInteger(n)]

 part n =
 if n  0 then 0 else part'' n

 main = print $ part 2

 }}}

 Then i watch how memory usage grows up to 2G (RES) and program stops:

 {{{
 ./bug.hs
 bug.hs: internal error: getMBlock: mmap: Operation not permitted
 (GHC version 7.4.1 for i386_unknown_linux)
 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportab
 }}}

 The kernel is compiled with PAE, and machine has 8G of RAM

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