#7319: +RTS -xc sometimes results in segfault ---------------------------------+------------------------------------------ Reporter: edsko | Owner: Type: bug | Status: new Priority: high | Milestone: 7.6.2 Component: Runtime System | Version: 7.6.1 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------
Comment(by edsko): With ghc 7.6.1, built with BuildFlavour = quick and {{{ GhcRTSWays += thr_debug_p GhcLibWays += p }}} and my program compiled with {{{ /Users/ghc761src/local/bin/ghc --make -fbuilding-cabal-package -O -prof -osuf p_o -hisuf p_hi -odir dist/build/TestTCP/TestTCP-tmp -hidir dist/build/TestTCP/TestTCP-tmp -stubdir dist/build/TestTCP/TestTCP-tmp -i -idist/build/TestTCP/TestTCP-tmp -itests -idist/build/autogen -Idist/build/autogen -Idist/build/TestTCP/TestTCP-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -hide-all-packages -no-user-package-db -package-db /Users/ghc761src/wt/distributed-process/network- transport-tcp/cabal-dev/packages-7.6.1.conf -package-db dist/package.conf.inplace -package-id base-4.6.0.0-d39b00b5e4b05de79ae2b5613c172a94 -package-id network-2.4.0.1-72159ce0d6b117cafd37466cda4aaba8 -package-id network- transport-0.3.0-f4373e453d0b1f3262127e4e25aab6a8 -package-id network-transport- tests-0.1.0.1-0b39541e2389961bf7419cf39451169c -package-id network-transport-tcp-0.3.1-inplace -XHaskell98 -XCPP -XOverloadedStrings tests/TestTCP.hs -o dist/build/TestTCP/TestTCP -threaded -rtsopts -with-rtsopts=-N -fprof-auto -debug }}} gdb invoked with {{{ gdb --args dist/build/TestTCP/TestTCP +RTS -xc }}} I get the stack trace {{{ Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000001006db0 [Switching to process 34875 thread 0x1203] 0x0000000100bf29ae in fprintCCS_stderr (ccs=0x101d88700, exception=0x101d512e1, tso=0x101d09db0) at Profiling.c:1071 1071 switch (info->type) { (gdb) bt #0 0x0000000100bf29ae in fprintCCS_stderr (ccs=0x101d88700, exception=0x101d512e1, tso=0x101d09db0) at Profiling.c:1071 #1 0x0000000100c40797 in stg_raisezh () #2 0x00000001001220e8 in sgg1_info_dsp () Previous frame inner to this frame (gdb could not unwind past this frame) }}} Hope that helps. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7319#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