I'm using RHEL 6.5 and running into an issue using the very basic example
for HttpServer. When using the example for HttpServer, I see that it
listens on port 8000.
using HttpServer
http = HttpHandler() do req::Request, res::Response
Response( ismatch(r"^/hello/",req.resource) ? string("Hello ",
split(req.resource,'/')[3], "!") : 404 )end
http.events["error"] = ( client, err ) -> println( err )
http.events["listen"] = ( port ) -> println("Listening on $port...")
server = Server( http )run( server, 8000 )
However, when I simply do a curl command to localhost:8000/hello/name I get
a seg fault error.
signal (11): Segmentation fault
memcpy at /lib64/libc.so.6 (unknown line)
write at /usr/bin/../lib64/julia/sys.so (unknown line)
unknown function (ip: 936587280)
Memory fault(coredump)
I installed Julia last week using the RPM and nalimilan-julia-epel-6.repo
<https://copr.fedoraproject.org/coprs/nalimilan/julia/repo/epel-6/nalimilan-julia-epel-6.repo>
from
the downloads section. I also downloaded the tarball and did a 'make debug'
to attempt to get more information on the seg fault. However, when running
from the REPL of Julia from the made version I do not get a seg fault.
Instead the curl command just hangs and nothing is ever returned.
I originally thought this was an issue with Morsel and I posted an issue
here :https://github.com/JuliaWeb/Morsel.jl/issues/33
Thanks,
Joel