guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mod_guile, Apache and regexps


From: Dale P . Smith
Subject: mod_guile, Apache and regexps
Date: Wed, 24 Jul 2002 22:17:24 -0400

Hello List,

I have an interesting problem, that I'm not at all sure how to resolve.

Clinton Ebadi pointed out that mod_guile gets segv's and memory
allocation errors when using regular expressions.  It turns out that
libguile is linked against glibc (my system is Debian Linux (sid) ) and
regcomp and regexec are resolved from there.  The apache executable
already provides functions with the exact same names, and when mod_guile
is loaded (and the regexec routines in libguile are called), regcomp and
regexc are resolved to the apache functions and not the libc ones.

Well, so what.  The problem is that the structures used are different.
When the code in libguile/regexp-posix.c accesses the ->re_nsub member,
it thinks it's accessing an int, but it's probably accessing the address
of a buffer or something. So instead of allocating a few bytes, it's
allocating 0x5a000084 * sizeof(struct regex_t) bytes.

So.  Is there a way to force libguile to resolve against glibc when it's
dynamically loaded into the running apache?

BTW: mod_guile is at http://savannah.gnu.org/projects/mod-guile/

Thanks!
  -Dale

-- 
Dale P. Smith
Senior Systems Consultant,      | Treasurer,
Altus Technologies Corporation  | Cleveland Linux Users Group
address@hidden            | http://cleveland.lug.net
440-746-9000 x339               |



reply via email to

[Prev in Thread] Current Thread [Next in Thread]