[erlang-bugs] More HiPE issues with binaries
Kostis Sagonas
kostis@REDACTED
Sun Mar 3 15:16:27 CET 2013
On 03/02/2013 09:17 PM, Loïc Hoguin wrote:
> Hello,
>
> Cowboy doesn't work when compiled with HiPE. When using curl on a simple
> hello world example, it sometimes work as expected, sometimes return a
> 408 timeout error. When using http_load
> (http://acme.com/software/http_load/) on the same example, it sometimes
> work and sometimes throws a weird function_clause error.
>
> ...
>
> Here are the steps to reproduce. Sorry it's not the smallest download, I
> can't isolate:
OK, I've spent two hours on this and was able to minimize down to file
cowboy_protocol.erl, which seems to be responsible for the behavior you
are reporting. With this file compiled to BEAM byte code and everything
else compiled to native code, cowboy seems to be working fine on my
tests. Can you please confirm?
If this file is the problematic one, perhaps you can disable native code
compilation just for it for the time being. Also, it would help me if
you trace all the calls to its functions and check whether their returns
differ between byte code and native code execution.
I will look more into it when I find some time...
Kostis
More information about the erlang-bugs
mailing list