Le lundi 16 février 2015 à 10:31 -0800, Joel Nelson a écrit :
> The issue was found to be with HttParser and more specifically the
> shared library libhttp-parser. In the deps.jl file under HttpParser
> the @checked_lib was pointing to /usr/lib64/libhttp_parser.so.
> However, our libhttp_parser.so in lib64 had a symbolic link to
> libhttp_parser.so.2.0. We figured we were running into an issue with
> the versions of libhttp_parser, so we decided to manually build
> libhttp_parser following the steps in build.jl and update the
> @checked_lib within deps.jl to point to the libhttp_parser.so under
> HttpParser/deps/usr/lib. After making those updates we were able to
> run as expected.
(Copying the comment I added on GitHub:)

Indeed, distribution packages never ship unversioned .so files, only
the .so.2.0 version: you need to install -devel packages for the former.
Looks like HttpParser should use the .so.2.0 file, it would also make it
easier to handle ABI breaks and parallel installation of different
versions.


Regards

> On Friday, February 13, 2015 at 9:39:18 AM UTC-5, Joel Nelson wrote:
>         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 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

Reply via email to