Package: ghc
Version: 9.0.2-4
Severity: normal
Tags: upstream
X-Debbugs-Cc: [email protected]

Dear Maintainer,

GHCi seems to segfault randomly every now and then, after seemingly
failing to allocate memory for simple operations, e.g.:

 $ ghci                         
 GHCi, version 9.0.2: https://www.haskell.org/ghc/  :? for help
 ghci> 750+850
 1600
 ghc: mmap 4096 bytes at (nil): Cannot allocate memory
 ghc: Try specifying an address with +RTS -xm<addr> -RTS
 zsh: segmentation fault  ghci

Shortly afterwards, the same commands may work perfectly well. I've
observed this happen on two completely different machines, but have
been unable to consistently reproduce.

Upstream describes the issue at

 
https://discourse.haskell.org/t/facing-mmap-4096-bytes-at-nil-cannot-allocate-memory-youre-not-alone/6259

but it seems that the fix has not been backported to 9.0.x. I have no
idea how hard it would be to do.

Sorry for not catching this before Bookworm released. I do believe I
saw the segfault once or twice before the release, but I must have
chalked it up to a hardware fault or something :-/


-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/6 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ghc depends on:
ii  dpkg            1.21.22
ii  gcc             4:12.2.0-3
ii  libbsd-dev      0.11.7-2
ii  libc6           2.36-9
ii  libc6-dev       2.36-9
ii  libffi-dev      3.4.4-1
ii  libffi8         3.4.4-1
ii  libgmp-dev      2:6.2.1+dfsg1-1.1
ii  libgmp10        2:6.2.1+dfsg1-1.1
ii  libncurses-dev  6.4-4
ii  libtinfo6       6.4-4

ghc recommends no packages.

Versions of packages ghc suggests:
pn  ghc-doc      <none>
pn  ghc-prof     <none>
pn  haskell-doc  <none>
ii  llvm-13      1:13.0.1-11+b2
ii  perl         5.36.0-7

-- no debconf information

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Pkg-haskell-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-haskell-maintainers

Reply via email to