[Date Prev][Date Next] [Chronological] [Thread] [Top]

core dump when load modules (ITS#1758)



Full_Name: maohua
Version: 0.4
OS: aix
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (210.72.231.162)


hi all
      i compiled freeradius on aix4.3.3 things goes ok after i read some faq,but
when i run ./radiusd -X it's coredumped. i debug the c code ,found that in
modules.c  there are some like:

/////////////////////////////////
	/*
	*	Call the module's instantiation routine.
	*/
	if ((node->entry->module->instantiate) &&
			((node->entry->module->instantiate)(inst_cs,
			&node->insthandle) < 0)) {
		radlog(L_ERR|L_CONS,
				"radiusd.conf[%d]: %s: Module instantiation failed.\n",
				cf_section_lineno(inst_cs), instname);
		free(node);
		return NULL;
	}
/////////////////////////////////

these code call a module for example rlm_ldap's ldap_instantiate,but as soon as
call rad_malloc ,it's coredumped. every module has the problem,so why? need your
help,thanks for any help,you are so kind