https://github.com/javer/php-issue-7817
Reproducer for https://github.com/php/php-src/issues/7817
https://github.com/javer/php-issue-7817
Last synced: about 2 months ago
JSON representation
Reproducer for https://github.com/php/php-src/issues/7817
- Host: GitHub
- URL: https://github.com/javer/php-issue-7817
- Owner: javer
- Created: 2022-09-29T18:38:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-29T18:51:33.000Z (over 2 years ago)
- Last Synced: 2025-01-29T09:18:11.834Z (4 months ago)
- Language: PHP
- Size: 6.95 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Reproducer for https://github.com/php/php-src/issues/7817
1. Build PHP 8.1.10 debug image
```sh
docker build -t php:8.1.10-debug .
```2. Run in one terminal
```sh
docker run --rm -it -v "$(pwd)":/var/www --mount type=tmpfs,destination=/var/www/var,tmpfs-size=2000M -w /var/www --name jit-test php:8.1.10-debug gdb --args /usr/src/php/sapi/cli/php -S 127.0.0.1:8080 -t public public/index.php
run
```
or without tmpfs for cache folder:
```sh
docker run --rm -it -v "$(pwd)":/var/www -w /var/www --name jit-test php:8.1.10-debug gdb --args /usr/src/php/sapi/cli/php -S 127.0.0.1:8080 -t public public/index.php
run
```3. Run in another terminal
```sh
docker exec -it jit-test sh test.sh
```4. Wait for ~5 minutes or ~2000 requests
5. Crash should happen in terminal with gdb
6. Opcache stats dumps before each request can be found in docker container /tmp folder
```sh
docker exec -it jit-test ls /tmp
```