 |
vtiger The Honest Open Source CRM
|
| Previous topic :: Next topic |
| Author |
Message |
Scott Marlin
Guest
|
| Posted: Thu Dec 14, 2006 3:18 pm Post subject: Segmentation fault installing vtiger 5.0.2 |
|
|
Hello,
I am getting a segmentation fault when running step 5 of the installation of vtigercrm502 over php 5.0.5. on OpenBSD 3.9.
Once I click Next on step 4 it executes step 5 php script.
Step 5 has many require statements to include other php scripts.
I have done some digging into this problem and have found that the segmentation fault occurs when a a class method(function) is called and asked to return a reference to some other instance of another class.
It seems to crash when it gets to the logging.php code.
snippet of code from logging.php.
require_once('config.php');
define('LOG4PHP_DIR', 'log4php');
define('LOG4PHP_DEFAULT_INIT_OVERRIDE', true);
require_once(LOG4PHP_DIR.'/LoggerManager.php');
require_once(LOG4PHP_DIR.'/LoggerPropertyConfigurator.php');
$config = new LoggerPropertyConfigurator();
it seems to crash on the execution of this statement:
$config->configure('log4php.properties');
which references to the configure method(function) within the LoggerPropertyConfigurator class.
snippet of code - configure method(function) in LoggerPropertyConfigurator.php:
function configure($url = '')
{
$configurator = new LoggerPropertyConfigurator();
' debugging print statement that I added to determine where the segmentation fault was occurring. Code executes up to this point.
before prints on the screen.
print "before";
exit;
Segmentation fault seems to occur because of the '&' by reference operator in the following statement.
$repository = &LoggerManager::getLoggerRepository();
' debugging print statement that I added to determine where the segmentation fault was occurring. Code does not get to this point.
after does not print on the screen.
print "after";
exit;
return $configurator->doConfigure($url, $repository);
}
snippet of code - getLoggerRepository method(function) in LoggerManager.php:
notice the '&' by reference operator in function declaration.
function &getLoggerRepository()
{
return LoggerHierarchy::singleton();
}
Any clues ? |
|
| Back to top |
|
| |
|