Skip to content

Instantly share code, notes, and snippets.

@derickr
Created December 8, 2022 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derickr/4d175ae672fdf9ee2a7b5a276df73585 to your computer and use it in GitHub Desktop.
Save derickr/4d175ae672fdf9ee2a7b5a276df73585 to your computer and use it in GitHub Desktop.
reproduce-instructions.txt
Run in a terminal:
docker run -p 3306:3306 -e MYSQL_ROOT_PASSWORD=test mysql
Run in another terminal:
mkdir /tmp/test
cd /tmp/test
git checkout git@github.com:derickr/extension-skeleton.git
git checkout https://github.com/shopware/platform
cd extension-skeleton && phpize && ./configure && make install
cd platform
composer install
php -dmemory_limit=4G ./bin/console system:setup
Answers:
Application env: dev
URL to your /public folder: http://localhost
Blue Green: yes
Database user: root
Database password: test
Database host: 127.0.0.1 (NOT localhost)
Database port: 3306
Database name: shopware
Database SSL CA Path: <empty>
Database SSL Cert Path: <empty>
Database SSL Key Path: <empty>
Skip verification of SSL certificate: yes
Check if everything is ok. Write into "/tmp/test/platform/.env"?: yes
Then run this to segfault:
USE_ZEND_ALLOC=0 php -n -dmemory_limit=4G -d extension=skeleton ./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group needsWebserver,quarantined,slow,cache,review,skip-paratest --testsuite storefront --filter 'Framework\\Routing\\NotFound\\NotFoundSubscriberTest::testError'
This will take some minutes the first time, and then segfaults.
Subsequent requests will be fast, and then you can also run it with valgrind:
USE_ZEND_ALLOC=0 valgrind php -n -dmemory_limit=4G -d extension=skeleton
./vendor/bin/phpunit --configuration phpunit.xml.dist --exclude-group
needsWebserver,quarantined,slow,cache,review,skip-paratest --testsuite
storefront --filter
'Framework\\Routing\\NotFound\\NotFoundSubscriberTest::testError' 2>&1 | less
Use for host 127.0.0.1, user root, and password test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment