Skip to content

Communication over Erlang port does not work in release version #6166

@DerKastellan

Description

@DerKastellan

Precheck

  • Do not use the issues tracker for help or support (try Elixir Forum, Stack Overflow, IRC, etc.)
  • For proposing a new feature, please start a discussion on the Elixir Core mailing list
  • For bugs, do a quick search and make sure the bug has not yet been reported
  • Finally, be nice and have fun!

Done.

Environment

  • Elixir & Erlang versions (elixir --version):
    elixir --version
    Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:48:48] [async-threads:10] [hipe] [kernel-poll:false]

Elixir 1.3.4

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)

Current behavior

When I use my communication through an Erlang port in a escript or with mix run, it works. When I do a mix release with distillery (1.4), in the resulting application the communication over the pipe doesn't work anymore for no apparent reason. It simply hangs as soon when it writes to the pipe. The port application itself never receives anything over the pipe but starts up.

I wrote a sample application to replicate my problem: https://github.com/DerKastellan/release-weirdness

Expected behavior

Pipe communication to Erlang port should work whether in dev mode with mix or in released application.

I would appreciate any help with this. I'm at a loss why behavior changes when using distillery...

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