mirror of
https://github.com/danog/jit_bugs.git
synced 2024-11-26 12:04:52 +01:00
Update
This commit is contained in:
parent
b0d687f1b2
commit
46d5033166
11
Dockerfile
11
Dockerfile
@ -4,10 +4,6 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ENV CC=clang-16
|
||||
ENV CXX=clang++-16
|
||||
ENV CFLAGS='-g -fsanitize=address -shared-libasan -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC'
|
||||
ENV CPPFLAGS='-g -fsanitize=address -shared-libasan -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC'
|
||||
ENV CXXFLAGS='-g -fsanitize=address -shared-libasan -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC'
|
||||
ENV LDFLAGS='-g -fsanitize=address -shared-libasan -Wl,-rpath=/usr/lib/llvm-16/lib/clang/16/lib/linux/'
|
||||
|
||||
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib/llvm-16/lib/clang/16/lib/linux/"
|
||||
|
||||
@ -34,7 +30,7 @@ RUN true \
|
||||
systemtap-sdt-dev libssl-dev \
|
||||
libpcre2-dev libargon2-dev libedit-dev libsodium-dev llvm-16 \
|
||||
\
|
||||
&& git clone --depth 1 https://github.com/php/php-src -b PHP-8.2 && cd php-src \
|
||||
&& git clone --depth 1 https://github.com/php/php-src && cd php-src \
|
||||
\
|
||||
&& ./buildconf \
|
||||
&& ./configure --prefix=/usr \
|
||||
@ -50,6 +46,11 @@ RUN true \
|
||||
--with-password-argon2=/usr --with-external-pcre --with-mhash=/usr --with-libxml \
|
||||
--enable-session --with-sodium --with-zlib=/usr --with-zlib-dir=/usr \
|
||||
--enable-pcntl --with-libedit=shared,/usr \
|
||||
\
|
||||
&& export CFLAGS='-g -fsanitize=address -shared-libasan -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC' \
|
||||
&& export CPPFLAGS='-g -fsanitize=address -shared-libasan -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC' \
|
||||
&& export CXXFLAGS='-g -fsanitize=address -shared-libasan -fno-sanitize-recover -DZEND_TRACK_ARENA_ALLOC' \
|
||||
&& export LDFLAGS='-g -fsanitize=address -shared-libasan -Wl,-rpath=/usr/lib/llvm-16/lib/clang/16/lib/linux/' \
|
||||
\
|
||||
&& make -j100 \
|
||||
&& make install \
|
||||
|
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# A repo full of reproducer for PHP JIT bugs.
|
||||
|
||||
Run using `./run.sh`.
|
||||
|
||||
Edit the branch in `Dockerfile:33`
|
@ -10,6 +10,8 @@ export PSALM_ALLOW_XDEBUG=1
|
||||
|
||||
composer i --ignore-platform-reqs
|
||||
|
||||
echo "About to run phpunit"
|
||||
|
||||
php vendor/bin/phpunit --debug tests/MagicMethodAnnotationTest.php
|
||||
|
||||
echo "OK, no bugs!"
|
@ -10,8 +10,12 @@ git checkout 2789fdd689689b0c85f2c0ae9db50c8d2b39fb92
|
||||
|
||||
composer i --ignore-platform-reqs
|
||||
|
||||
echo "About to run the standalone test"
|
||||
|
||||
php /app/2_infection.php
|
||||
|
||||
echo "About to run the testsuite"
|
||||
|
||||
vendor/bin/phpunit
|
||||
|
||||
echo "OK, no bugs!"
|
@ -10,6 +10,8 @@ export PSALM_ALLOW_XDEBUG=1
|
||||
|
||||
composer i --ignore-platform-reqs
|
||||
|
||||
echo "About to run psalm"
|
||||
|
||||
./psalm --no-cache
|
||||
|
||||
echo "OK, no bugs!"
|
Loading…
Reference in New Issue
Block a user