[GHC] #13433: Segmentation faults in profiled way
GHC
ghc-devs at haskell.org
Thu Mar 16 19:36:54 UTC 2017
#13433: Segmentation faults in profiled way
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: bgamari
Type: bug | Status: new
Priority: highest | Milestone: 8.2.1
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
Here is some gdb output from a crash,
{{{
$ ~/ghc-utils/debug-ghc ~/ghc/roots/8.2-profiled/bin/ghc -v -O2 Main.hs
-fforce-recomp +RTS -p
gdb --args /home/ben/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315/bin/ghc
-B/home/ben/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315 -v -O2 Main.hs
-fforce-recomp +RTS -p
GNU gdb (Debian 7.12-4) 7.12
Copyright (C) 2016 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
/home/ben/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315/bin/ghc...run
done.
(gdb) run
Starting program:
/mnt/work/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315/bin/ghc
-B/home/ben/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315 -v -O2 Main.hs
-fforce-recomp +RTS -p
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6853700 (LWP 19991)]
[New Thread 0x7ffff6052700 (LWP 19992)]
[New Thread 0x7ffff5851700 (LWP 19993)]
[New Thread 0x7ffff5050700 (LWP 19994)]
Glasgow Haskell Compiler, Version 8.2.0.20170315, stage 2 booted by GHC
version 8.0.2
Using binary package database:
/home/ben/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315/package.conf.d/package.cache
There is no package.cache in
/home/ben/.ghc/x86_64-linux-8.2.0.20170315/package.conf.d, checking if the
database is empty
There are no .conf files in
/home/ben/.ghc/x86_64-linux-8.2.0.20170315/package.conf.d, treating
package database as empty
package flags []
loading package database
/home/ben/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315/package.conf.d
loading package database
/home/ben/.ghc/x86_64-linux-8.2.0.20170315/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
wired-in package base mapped to base-4.10.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.12.0.0
wired-in package ghc mapped to ghc-8.2.0.20170315
wired-in package dph-seq not found.
wired-in package dph-par not found.
package flags []
loading package database
/home/ben/ghc/roots/8.2-profiled/lib/ghc-8.2.0.20170315/package.conf.d
loading package database
/home/ben/.ghc/x86_64-linux-8.2.0.20170315/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
wired-in package base mapped to base-4.10.0.0
wired-in package rts mapped to rts-1.0
wired-in package template-haskell mapped to template-haskell-2.12.0.0
wired-in package ghc mapped to ghc-8.2.0.20170315
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Chasing dependencies:
Chasing modules from: *Main.hs
!!! Chasing dependencies: finished in 0.94 milliseconds, allocated 0.503
megabytes
Stable obj: []
Stable BCO: []
Ready for upsweep
[NONREC
ModSummary {
ms_hs_date = 2017-03-07 08:43:42 UTC
ms_mod = Main,
ms_textual_imps = [(Nothing, Prelude)]
ms_srcimps = []
}]
*** Deleting temp files:
Deleting:
compile: input file Main.hs
*** Checking old interface for Main (use -ddump-hi-diffs for more
details):
[1 of 1] Compiling Main ( Main.hs, Main.o )
*** Parser [Main]:
!!! Parser [Main]: finished in 73.04 milliseconds, allocated 54.502
megabytes
*** Renamer/typechecker [Main]:
!!! Renamer/typechecker [Main]: finished in 572.66 milliseconds, allocated
398.957 megabytes
*** Desugar [Main]:
Result size of Desugar (after optimization)
= {terms: 11,856, types: 8,892, coercions: 0, joins: 0/0}
!!! Desugar [Main]: finished in 178.87 milliseconds, allocated 132.900
megabytes
*** Simplifier [Main]:
Thread 1 "ghc" received signal SIGSEGV, Segmentation fault.
0x00000000000002e1 in ?? ()
(gdb) bt
#0 0x00000000000002e1 in ?? ()
#1 0x0000000000000000 in ?? ()
(gdb) info reg
rax 0x64a8ec0 105549504
rbx 0x64a8ec0 105549504
rcx 0x64a8ec0 105549504
rdx 0x420acd6000 283649073152
rsi 0x420acd6fff 283649077247
rdi 0x54c96c8 88905416
rbp 0x420b84fbc0 0x420b84fbc0
rsp 0x7fffffff9fc8 0x7fffffff9fc8
r8 0x1 1
r9 0x420b84fc40 283661106240
r10 0x8 8
r11 0x420b84ffd0 283661107152
r12 0x420acd5ff8 283649073144
r13 0x64b0718 105580312
r14 0x64ad160 105566560
r15 0x420b8480d0 283661074640
rip 0x2e1 0x2e1
eflags 0x10207 [ CF PF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) x/32a 0x420b84fbc0
0x420b84fbc0: 0x54cb638 <stg_sel_6_upd_info+184> 0x64a8ec0
<CCS_DONT_CARE>
0x420b84fbd0: 0x54c98d8 <stg_upd_frame_info> 0x42018bde00
0x420b84fbe0: 0x0 0x6245070
0x420b84fbf0: 0x54d2590 <stg_restore_cccs_eval_info> 0x42018bde00
0x420b84fc00: 0x54c99c0 <stg_marked_upd_frame_info> 0x42018bde00
0x420b84fc10: 0x0 0x42095d8000
0x420b84fc20: 0x54d2590 <stg_restore_cccs_eval_info> 0x42018bde00
0x420b84fc30: 0x54c99c0 <stg_marked_upd_frame_info> 0x42018bde00
0x420b84fc40: 0x0 0x42095d8020
0x420b84fc50: 0x54d2590 <stg_restore_cccs_eval_info> 0x42018bde00
0x420b84fc60: 0x54c99c0 <stg_marked_upd_frame_info> 0x42018bde00
0x420b84fc70: 0x0 0x42095d8040
0x420b84fc80: 0x54d2590 <stg_restore_cccs_eval_info> 0x42018bde00
0x420b84fc90: 0x54c99c0 <stg_marked_upd_frame_info> 0x42018bde00
0x420b84fca0: 0x0 0x42095d8060
0x420b84fcb0: 0x54d2590 <stg_restore_cccs_eval_info> 0x42018bde00
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13433#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list