Visitar URL original
OOM killed when using headers with file with relative import · Issue #60 · dhall-lang/dhall-json · GitHub
Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

OOM killed when using headers with file with relative import #60

Closed
dhall-lang/dhall-haskell
#618

Description

@reactormonk

Reproduce:

Download https://gist.github.com/reactormonk/a8192fe784608f1f7515d5583c448095

dhall-to-yaml < local.dhall

Enjoy OOM!

Activity

  1. Gabriella439 commented on Oct 2, 2018

    @Gabriella439
    Collaborator

    I can reproduce:

    $ dhall <<< 'https://gist.githubusercontent.com/reactormonk/a8192fe784608f1f7515d5583c448095/raw/d46f5b9aea9eb56c4bdd92d187936ee87e9f4cf2/local.dhall'
    <Ctrl-C>
    ...
    
    ↳ https://gist.githubusercontent.com/reactormonk/a8192fe784608f1f7515d5583c448095/raw/d46f5b9aea9eb56c4bdd92d187936ee87e9f4cf2/local.dhall
      ↳ https://gist.githubusercontent.com/reactormonk/a8192fe784608f1f7515d5583c448095/raw/e8e5b14c2afe9acc342fe111bcf6e09b90dced9c/test.dhall using ./headers
        ↳ https://gist.githubusercontent.com/reactormonk/a8192fe784608f1f7515d5583c448095/raw/e8e5b14c2afe9acc342fe111bcf6e09b90dced9c/headers
    
    ↳ https://gist.githubusercontent.com/reactormonk/a8192fe784608f1f7515d5583c448095/raw/d46f5b9aea9eb56c4bdd92d187936ee87e9f4cf2/local.dhall
      ↳ https://gist.githubusercontent.com/reactormonk/a8192fe784608f1f7515d5583c448095/raw/e8e5b14c2afe9acc342fe111bcf6e09b90dced9c/test.dhall using ./headers
        ↳ https://gist.githubusercontent.com/reactormonk/a8192fe784608f1f7515d5583c448095/raw/e8e5b14c2afe9acc342fe111bcf6e09b90dced9c/headers
    

    I'm investigating why

  2. Gabriella439 commented on Oct 2, 2018

    @Gabriella439
    Collaborator

    Oh, so the issue here is due to custom headers being used to configure their own import, which triggers an infinite recursion. Let me see if this is simple to fix

  3. Gabriella439 commented on Oct 4, 2018

    @Gabriella439
    Collaborator

    I found the bug. The fix is up here: dhall-lang/dhall-haskell#618

  4. reactormonk commented on Oct 5, 2018

    @reactormonk
    Author

    Could you cut a new binary release?

  5. Gabriella439 commented on Oct 5, 2018

    @Gabriella439
    Collaborator

    @reactormonk: We're not ready to cut a release yet because there are some in-flight changes to the standard. However, you can download a prerelease build of dhall-json from here:

    http://hydra.dhall-lang.org/job/dhall-json/master/tarball/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions