[GHC] #15634: GHCi: Segmentation fault Data.List.sum large number
GHC
ghc-devs at haskell.org
Thu Sep 13 10:59:27 UTC 2018
#15634: GHCi: Segmentation fault Data.List.sum large number
-------------------------------------+-------------------------------------
Reporter: ksallberg | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: Research
| needed
Component: GHCi | Version: 8.0.1
Resolution: | Keywords: segfault
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Description changed by ksallberg:
Old description:
> Hello, first bug report here, so please let me know what I should
> provide. I tried to search for this but didn't find it.
>
> {{{
> kristian at snabbadatorn:~$ ghci
> GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
> Prelude> [1..100]
> [1,2,3,4,5,6,7,8,9,10,11,12... and so on
> Prelude> sum [1..10000000]
> 50000005000000
> Prelude> sum [1..100000000]
> Segmentation fault
> }}}
>
> Machine: Google compute engine, n1-highcpu-8 (8 vCPUs, 7.2 GB memory),
>
> uname -r: 4.9.0-8-amd64
>
> {{{
> kristian at snabbadatorn:~$ lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description: Debian GNU/Linux 9.5 (stretch)
> Release: 9.5
> Codename: stretch
> }}}
>
> {{{
> kristian at snabbadatorn:~$ ghci --version
> The Glorious Glasgow Haskell Compilation System, version 8.0.1
> }}}
New description:
Hello, first bug report here, so please let me know what I should provide.
I tried to search for this but didn't find it.
{{{
kristian at snabbadatorn:~$ ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
Prelude> [1..100]
[1,2,3,4,5,6,7,8,9,10,11,12... and so on
Prelude> sum [1..10000000]
50000005000000
Prelude> sum [1..100000000]
Segmentation fault
}}}
Machine: Google compute engine, n1-highcpu-8 (8 vCPUs, 7.2 GB memory),
uname -r: 4.9.0-8-amd64
{{{
kristian at snabbadatorn:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
}}}
{{{
kristian at snabbadatorn:~$ ghci --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1
}}}
-----------------------
Similar problem in older GHC version, although GHCi at least does not
exit:
Amazon ec2, r4.8xlarge, 32 cores:
{{{
GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help
Prelude> sum [1..100000000]
*** Exception: stack overflow
Prelude>
}}}
{{{
ubuntu at ip-172-31-21-176:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial
}}}
{{{
ubuntu at ip-172-31-21-176:~$ uname -r
4.4.0-1065-aws
}}}
--
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15634#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list