Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r3:do(compile). kills embedded yaws service #307

Open
iambumblehead opened this issue May 15, 2017 · 4 comments
Open

r3:do(compile). kills embedded yaws service #307

iambumblehead opened this issue May 15, 2017 · 4 comments

Comments

@iambumblehead
Copy link

I'm humbly hoping someone here may advise or comment on this yaws-related ticket which involves rebar3 erlang/rebar3#1549

I'm using the latest versions of rebar3 and yaws 2.0.4

Because I cannot use rebar3's reloading behaviour I've been starting a new erl shell for every change I make, which is slow and cumbersome.

@vinoski
Copy link
Collaborator

vinoski commented May 15, 2017

I'm guessing you built Yaws with HiPE enabled? If so, try again without it.

@iambumblehead
Copy link
Author

I'll take a look later this evening and let you know if HiPE is enabled. I used rebar3 to include yaws and didn't explicitly include or disclude it myself.

There are some responses in the rebar3 issues link that include other hypotheses.

Thanks.

@iambumblehead
Copy link
Author

iambumblehead commented May 16, 2017

I'm not sure how rebar3 is managing the Yaws compilation but it appears that HiPE would need to be explicitly disabled with something like ./configure --disable-hipe. I will ask the rebar3 thread if there is a "rebar3 way" of doing this.

I compiled yaws from the location where it was downloaded by rebar3 and used ./configure --disable-hipe, and make shows this in the output

configure: WARNING: unrecognized options: --disable-hipe

I recompiled otp with --disable-hipe, removed _build/ directory where rebar3 kept the yaws sources and rebuilt everything with rebar3 but the same issue occurs

@ferd
Copy link

ferd commented Aug 10, 2017

In an attempt to move this forward, here's a repost of what I had on the rebar3 issue:


My bet there is on Yaws not coping with sequential hot-code loads and one of the modules getting killed. You can see process <0.320.0> getting killed (I assume this is gserv). The parent (I assume this is yaws_serv) is holding a reference to <0.320.0> in its state before terminating with reason restartme.

You can see this taking place here in the code: https://github.com/klacke/yaws/blob/b32f7d49eff120f7860453a488acbd358beb5763/src/yaws_server.erl#L421-L430

I don't know that too much can be done if this server dies.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants