[plt-scheme] Segfault in web server (due to missing library??)

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Thu Oct 29 17:02:17 EDT 2009

It doesn't segfault for me...

Can you run web-server/stuffers/hmac-sha1 from the repl and report what

libcrypto
EVP_SHA1

and

HMAC-SHA1/raw

are bound to?

Jay

On Thu, Oct 29, 2009 at 2:57 PM, David Storrs <david.storrs at gmail.com> wrote:
> The following test script segfaults Scheme on my Debian 5.0 server:
>
> #lang scheme
> (require web-server/stuffers/hmac-sha1)
> (HMAC-SHA1
>   (string->bytes/utf-8 "secret")
>   (string->bytes/utf-8 "foo bar baz"))
>
> I ran (enter! web-server/stuffers/hmac-sha1) from a scheme REPL, and
> verified that HMAC-SHA1/raw is the source of the segfault, but I don't know
> anything about FFI programming so I can't see how to go forward with it from
> there.
>
> This is a very bare-bones server, so it's probably just missing a library or
> such.  I do see that it's looking for libcrypto, and (IIUC) it will accept
> 0.9.8.  I have the following libcryptos:
>
> /usr/lib/libcrypto.a
> /usr/lib/libcrypto.so
> /usr/lib/libcrypto.so.0.9.8
> /usr/lib/pkgconfig/libcrypto.pc
>
> ...so I would have thought it would work.
>
> Any suggestions on where to look next?
>
> Dave
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.