Package: libghc-cryptonite-dev Version: 0.23-2+b3 Severity: normal {-# LANGUAGE OverloadedStrings, PackageImports #-}
import "cryptonite" Crypto.Hash import Data.ByteString.Lazy main = print $ blake foo where blake :: ByteString -> Digest Blake2bp_512 blake = hashlazy foo :: ByteString foo = "foo" When run in ghci, this program segfaults. When compiled with ghc and run, it prints out a bunch of zeros which is not the correct hash. I tried installing cryptonite-0.25 with cabal, and did not have the problem with that build of the library. Reproduced the problem on my Lenovo Yoga 710 laptop, and on a Linode VPS, both running Debian unstable amd64. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libghc-cryptonite-dev depends on: ii ghc [libghc-integer-gmp-dev-1.0.0.1-b34f3] 8.0.2-11 ii libc6 2.27-1 pn libghc-base-dev-4.9.1.0-d28d6 <none> pn libghc-bytestring-dev-0.10.8.1-45b2c <none> pn libghc-deepseq-dev-1.4.2.0-fb727 <none> ii libghc-foundation-dev [libghc-foundation-dev-0.0.17-14e77] 0.0.17-1 pn libghc-ghc-prim-dev-0.5.0.0-a46b8 <none> ii libghc-memory-dev [libghc-memory-dev-0.14.11-1fadd] 0.14.11-1 ii libgmp10 2:6.1.2+dfsg-2 libghc-cryptonite-dev recommends no packages. Versions of packages libghc-cryptonite-dev suggests: pn libghc-cryptonite-doc <none> pn libghc-cryptonite-prof <none> -- no debconf information -- see shy jo
signature.asc
Description: PGP signature
_______________________________________________ Pkg-haskell-maintainers mailing list Pkg-haskell-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-haskell-maintainers