[GHC] #7726: unexpected out of memory error on FreeBSD

GHC cvs-ghc at haskell.org
Sat Apr 13 18:04:21 CEST 2013


#7726: unexpected out of memory error on FreeBSD
-----------------------------------+----------------------------------------
    Reporter:  nejstastnejsistene  |       Owner:  pgj          
        Type:  bug                 |      Status:  new          
    Priority:  normal              |   Milestone:  7.8.1        
   Component:  Runtime System      |     Version:  7.4.2        
    Keywords:                      |          Os:  FreeBSD      
Architecture:  x86                 |     Failure:  Runtime crash
  Difficulty:  Unknown             |    Testcase:               
   Blockedby:                      |    Blocking:               
     Related:                      |  
-----------------------------------+----------------------------------------

Comment(by pgj):

 I could not reproduce this problem on FreeBSD/i386 9.1-RELEASE.  I
 followed the instructions from the submitter but the attached source did
 not cause any memory leak for me -- the memory usage stays constant for me
 even after 150,000 iterations when compiled with -O2.

 Here are my specs:

 {{{
 $ ghc --info
  [("Project name","The Glorious Glasgow Haskell Compilation System")
  ,("GCC extra via C opts"," -fwrapv")
  ,("C compiler command","gcc46")
  ,("C compiler flags"," -fno-stack-protector  -Wl,--hash-size=31 -Wl
 ,--reduce-memory
  ,("ar command","/usr/bin/ar")
  ,("ar flags","clqs")
  ,("ar supports at file","NO")
  ,("touch command","touch")
  ,("dllwrap command","/bin/false")
  ,("windres command","/bin/false")
  ,("perl command","/usr/bin/perl")
  ,("target os","OSFreeBSD")
  ,("target arch","ArchX86")
  ,("target word size","4")
  ,("target has GNU nonexec stack","True")
  ,("target has subsections via symbols","False")
  ,("Project version","7.4.2")
  ,("Booter version","7.4.1")
  ,("Stage","2")
  ,("Build platform","i386-portbld-freebsd")
  ,("Host platform","i386-portbld-freebsd")
  ,("Target platform","i386-portbld-freebsd")
  ,("Have interpreter","YES")
  ,("Object splitting supported","YES")
  ,("Have native code generator","YES")
  ,("Support SMP","YES")
  ,("Unregisterised","NO")
  ,("Tables next to code","YES")
  ,("RTS ways","l debug  thr thr_debug thr_l thr_p  dyn debug_dyn thr_dyn
 thr_debug_d
  ,("Leading underscore","NO")
  ,("Debug on","False")
  ,("LibDir","/usr/local/lib/ghc-7.4.2")
  ,("Global Package DB","/usr/local/lib/ghc-7.4.2/package.conf.d")
  ,("Gcc Linker flags","[\"-Wl,--hash-size=31\",\"-Wl,--reduce-memory-
 overheads\"]")
  ,("Ld Linker flags","[\"--hash-size=31\",\"--reduce-memory-overheads\"]")
  ]
 }}}

 There you can see I use {{{lang/ghc}}} from the Ports Collection that is
 built to invoke GCC 4.6 (perhaps this is the problem?):

 {{{
 $ gcc46 -v
 Using built-in specs.
 COLLECT_GCC=gcc46
 COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc46/gcc/i386-portbld-
 freebsd9.0/4.6.3/lto-wrapper
 Target: i386-portbld-freebsd9.0
 Configured with: ./../gcc-4.6.3/configure --disable-bootstrap --disable-
 nls --libdir=/usr/local/lib/gcc46 --libexecdir=/usr/local/libexec/gcc46
 --program-suffix=46 --with-as=/usr/local/bin/as --with-gmp=/usr/local
 --with-gxx-include-dir=/usr/local/lib/gcc46/include/c++/ --with-
 ld=/usr/local/bin/ld --with-libiconv-prefix=/usr/local --with-
 pkgversion='FreeBSD Ports Collection' --with-system-zlib --enable-
 languages=c,c++,objc,fortran,java --prefix=/usr/local
 --mandir=/usr/local/man --infodir=/usr/local/info/gcc46 --build=i386
 -portbld-freebsd9.0
 Thread model: posix
 gcc version 4.6.3 (FreeBSD Ports Collection)
 }}}

 I installed {{{http-conduit}}} version {{{1.9.0}}} from the Ports
 Collection ({{{www/hs-http-conduit}}}) to build your test program.

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



More information about the ghc-tickets mailing list