[Modules] [apr_memcache] Crash when calling apr_memcache_create
Edward Rudd
urkle at outoforder.cc
Wed Jul 30 09:37:14 EDT 2008
On Jul 30, 2008, at 1:29 AM, Jérôme Renard wrote:
> Good morning.
>
> I have been learning apr_memcache for 2 days now and I get a crash
> whenever
> I try to call the apr_memcache_create function [1].
> And the post_configuration hook :
>
> static int include_post_config(apr_pool_t *p, apr_pool_t *plog,
> apr_pool_t *ptemp, server_rec *s)
> {
> include_handlers = apr_hash_make(p);
>
> ssi_pfn_register =
> APR_RETRIEVE_OPTIONAL_FN(ap_register_memcached_include_handler);
>
> [...]
>
> include_server_config *conf;
> memcached_include_server_t *svr;
> apr_status_t rv;
> int i;
>
> conf = (include_server_config *)ap_get_module_config(s-
> >module_config, &memcached_include_module);
>
> rv = apr_memcache_create(p, conf->max_servers, 0, &(conf-
> >memcached));
>
> [...commented code here...]
>
> return OK;
> }
Can you log the value of conf->max_servers? Also log the value of
apr_memcache_create?
ie.
ap_log_error(APLOG_MARK, APLOG_INFO, 0, s, "Function: %pp,
max_servers: %d", apr_memcache_create, conf->max_servers);
from the stack trace it looks like the library isn't being linked in
correctly, and it's not finding the apr_memcache_create method.. What
OS are you running this on?
More information about the Modules
mailing list