Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phpseven opened this issue Nov 24, 2020 · 2 comments
Labels

Comments

@phpseven
Copy link

已升级到最新版本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;
}

}

`
@phpseven phpseven changed the title 鸟哥大神请进,另外一个php-fpm进程被SIGSEGV信号杀掉 鸟哥大神请进,php-fpm进程被SIGSEGV信号杀掉的问题,已升级到最新版本 Nov 24, 2020
@phpseven
Copy link
Author

3.1.4 没有此问题

@laruence
Copy link
Owner

laruence commented Jan 5, 2021

能有coredump文件,看看backtrace么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants