#46886 [NEW]: signal segmentation

From: Date: Wed, 17 Dec 2008 03:39:55 +0000
Subject: #46886 [NEW]: signal segmentation
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-3340@lists.php.net to get a copy of this message
From: zhangrui at pay1 dot com dot cn Operating system: qnx PHP version: Irrelevant PHP Bug Type: Website problem Bug description: signal segmentation Description: ------------ I was run a php script ,result in apache child pid coredumps. Reproduce code: --------------- function startTrans($GET){ echo PFAXS::PFAXS_startTransaction(); $GET['RESULT12'] = date("Y")."-".substr($GET['RESULT12'],0,2)."-".substr($GET['RESULT12'],2,2); $GET['RESULT13'] = substr($GET['RESULT13'],0,2).":".substr($GET['RESULT13'],2,2).":".substr($GET['RESULT13'],4,2); if(!$orderID = TFWUtil::getOrderID()){ TFWUtil::writeTFWLog(get_class(),$this->FUNCTION_START_TRANS,"getOrderID"); return $this->doStartCancel($GET); } $GET['ORDERCODE'] = $orderID; $GET['KIOSKID'] = substr($GET['ORDERCODE'],8,8); /*if(!TFWUtil::is_linked(TFW_SERVER_IP,TFW_SERVER_PORT,20)){ TFWUtil::writeTFWLog(get_class(),$this->FUNCTION_START_TRANS,"is_linked"); return $this->doStartCancel($GET); }*/ TFWUtil::writeTransData($GET); $args = explode(KW_SEPARATOR,urldecode($GET[KW_TARGS])); if(!TFWUtil::url_exist($args[5])){ TFWUtil::writeTFWLog(get_class(),$this->FUNCTION_START_TRANS,"url_exist(1)"); return $this->doStartCancel($GET); } $URLArray = parse_url($args[5]); parse_str($URLArray['query'],$URLParamArray); $GET = array_merge($GET,$URLParamArray); require_once(TFW_HTTP_CONTEXT.$URLArray['path']); if(!function_exists("TFW_endTransaction")){ TFWUtil::writeTFWLog(get_class(),$this->FUNCTION_START_TRANS,"function_exists"); return $this->doStartCancel($GET); } $GET = TFWUtil::array_sub($GET,KW_TARGS); $result = TFW_endTransaction($GET); $active = TFWUtil::getActiveData(); if($result['trans_status']==KW_RESULT_TRUE){ if(!TFWUtil::url_exist($result['succ_url'])){ TFWUtil::writeTFWLog(get_class(),$this->FUNCTION_START_TRANS,"url_exist(2)"); //return $this->doStartCancel($GET); } if($result['print_status']==KW_RESULT_TRUE){ $PRN[KW_TFCODE] = KW_TRANS_SUCC_CODE; $PRN[KW_SHOW_SUCC] = $result['succ_url']; $printURL = $this->getSUCCURL($PRN,ACTION_DO_EJECT_CARD); $TFWPrint = new TFWPrint(); if(!$printMD5 = $TFWPrint->doTFWPrint($printURL,$result['print_config_file'],$result['print_array'],$active)){ TFWUtil::writeTFWLog(get_class(),$this->FUNCTION_START_TRANS,"doTFWPrint"); //return $this->doStartCancel($GET); } $PUT[KW_PRINT_MD5_CODE] = $printMD5; } $PUT[KW_PRINT_STATUS] = $result['print_status']; $PUT[KW_SHOW_SUCC] = $result['succ_url']; $PUT[KW_EXCE_SIGN] = $result['exception_status']; $this->doPOSLog($result['log_array'],$active); $url = $this->getSUCCURL($PUT,ACTION_DO_SUCC_TRANS); return TFWUtil::script_forward($url); } return $this->doStartCancel($GET); } Expected result: ---------------- coninue next page Actual result: -------------- apache child pid coredump -- Edit bug report at http://bugs.php.net/?id=46886&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46886&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46886&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46886&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46886&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46886&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46886&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46886&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46886&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46886&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46886&r=support Expected behavior: http://bugs.php.net/fix.php?id=46886&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46886&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46886&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46886&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46886&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46886&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46886&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46886&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46886&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46886&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46886&r=mysqlcfg

« previous php.webmaster (#3340) next »