Skip to content

鸟哥大神请进,php-fpm进程被SIGSEGV信号杀掉的问题,已升级到最新版本 #521

Description

@phpseven

已升级到最新版本3.2.5,单独用一个文件执行控制内代码不会出问题

[24-Nov-2020 15:42:35] NOTICE: Failed implicitly binding to ::, retrying with 0.0.0.0
[24-Nov-2020 15:42:35] NOTICE: fpm is running, pid 30
[24-Nov-2020 15:42:35] NOTICE: ready to handle connections
[24-Nov-2020 15:42:40] WARNING: [pool www] child 31 exited on signal 11 (SIGSEGV) after 4.569154 seconds from start
[24-Nov-2020 15:42:40] NOTICE: [pool www] child 33 started

`<?php

/** 控制器文件
*
*/

class TestController extends \Yaf\Controller_Abstract
{

/**
 * CREATE TABLE `item` (

id int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (id) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=72992 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='***';
* @return false
*/
public function indexAction(){

    $dsn = 'mysql:dbname=pbox_psi;host=172.17.100.19;port=3306';
    $user = 'root';
    $password = '*******';

    try {
        $dbh = new PDO($dsn, $user, $password);
        $res = $dbh->query("select * from item limit 100000");
        $arr = $res->fetchAll();

        foreach($arr as $_k=> $product_item ) {
            if($_k % 100 ==1) {
                echo $_k . "<br />";
            }
        }    

    } catch (PDOException $e) {
        echo 'Connection failed: ' . $e->getMessage();
    }
    return false;
}

}

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions