Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Segfault #665

Closed
sirsnyder opened this issue Jan 23, 2017 · 0 comments
Closed

Segfault #665

sirsnyder opened this issue Jan 23, 2017 · 0 comments
Labels

Comments

@sirsnyder
Copy link
Collaborator

Hi Joe,

my first test with php 7.1.2-dev and pthreads 3.1.7-dev on ubuntu crashed with a segfault.

coredump.txt

Segfault:

class SystemLoader extends \Threaded
    {
        private static $objConfig = null;

        public static function getConfig()
        {
            self::$objConfig = new SystemLoaderConfig();
        }
    }

    class SystemLoaderConfig extends \Threaded { }

    SystemLoader::getConfig();

    $objTestThread = new \Thread();
    $objTestThread->start();

Working:

class SystemLoaderConfig extends \Threaded {}

    class SystemLoader extends \Threaded
    {
        private static $objConfig = null;

        public static function getConfig()
        {
            self::$objConfig = new SystemLoaderConfig();
        }
    }
    
    SystemLoader::getConfig();

    $objTestThread = new \Thread();
    $objTestThread->start();

Thx

@krakjoe krakjoe added the bug label Jan 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants