#46886 [Opn->Bgs]: signal segmentation

From: Date: Wed, 17 Dec 2008 08:54:41 +0000
Subject: #46886 [Opn->Bgs]: signal segmentation
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-3341@lists.php.net to get a copy of this message
ID: 46886 Updated by: bjori@php.net Reported By: zhangrui at pay1 dot com dot cn -Status: Open +Status: Bogus Bug Type: Website problem Operating System: qnx PHP Version: Irrelevant New Comment: This is not a problem with one of our websites. Please file another bug report choosing better category and filling out the version field correctly. Furthermore, your reproduce script is not a standalone reproduce example. A gdb backtrace would also help in fixing this bug. Previous Comments: ------------------------------------------------------------------------ [2008-12-17 03:39:55] zhangrui at pay1 dot com dot cn 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 this bug report at http://bugs.php.net/?id=46886&edit=1

« previous php.webmaster (#3341) next »