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
        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-]                  8.0.2-11
ii  libc6                                                       2.27-1
pn  libghc-base-dev-                               <none>
pn  libghc-bytestring-dev-                        <none>
pn  libghc-deepseq-dev-                            <none>
ii  libghc-foundation-dev [libghc-foundation-dev-0.0.17-14e77]  0.0.17-1
pn  libghc-ghc-prim-dev-                           <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

Attachment: signature.asc
Description: PGP signature

Pkg-haskell-maintainers mailing list

Reply via email to