Hi,
I have this strange behaviour in Apache post_config handler :
int setup_module(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,server_rec *s)
{
//1
my_config_t *config = ap_get_module_config(s->module_config, &my_module);
//2
log_me(config->logfp, apr_psprintf(ptemp, "My module version %s\n", MY_VERSION));
//3
log_me(config->logfp, "Starting the batch job");
return OK;
}
log_me is a custom function declared in another file and declared in the header (it is resolved at compile time).
In the step2 I can see that config has a valid value, however step 3 fails with a SEGSEGV and if I try to debug it I can see this :
//step 2 gdb: print config $1 = (my_config_t *)0x7a8098
//step 3 gdb: print config Cannot access memory at address 0x38