Skip to content

Instantly share code, notes, and snippets.

Arjen arjenschol

Block or report user

Report or block arjenschol

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arjenschol
arjenschol / bt
Last active Jan 15, 2018
PHP 7.1.6 segfault
View bt
#0 zend_mm_alloc_small (bin_num=<optimized out>, size=<optimized out>, heap=0x7ffff3400040) at /php/src/php-7.1.6/Zend/zend_alloc.c:1261
#1 zend_mm_alloc_heap (size=<optimized out>, heap=0x7ffff3400040) at /php/src/php-7.1.6/Zend/zend_alloc.c:1332
#2 zend_mm_realloc_heap (heap=0x7ffff3400040, ptr=0x0, size=<optimized out>, copy_size=32) at /php/src/php-7.1.6/Zend/zend_alloc.c:1428
#3 0x0000000000579528 in spl_object_storage_get_gc (obj=0x7fffffffa9e0, table=0x7fffffffa9d8, n=0x7fffffffa9d4) at /php/src/php-7.1.6/ext/spl/spl_observer.c:333
#4 0x00000000006adf2d in gc_mark_grey (ref=<optimized out>) at /php/src/php-7.1.6/Zend/zend_gc.c:499
#5 0x00000000006aee60 in gc_mark_roots () at /php/src/php-7.1.6/Zend/zend_gc.c:598
#6 zend_gc_collect_cycles () at /php/src/php-7.1.6/Zend/zend_gc.c:1072
#7 0x00000000006aeaf6 in gc_possible_root (ref=0x7fffdadd94d0) at /php/src/php-7.1.6/Zend/zend_gc.c:286
#8 0x0000000000727815 in gc_check_possible_root (z=<optimized out>) at /php/src/php-7.1.6/Zend/zend_gc.h:149
#9
View bt full with debug symbols
#0 zend_mm_alloc_small (bin_num=<optimized out>, size=140737274445920, heap=0x7ffff3400040) at /home/arjen/packages/php/src/php-7.1.6/Zend/zend_alloc.c:1261
p = 0x40007fffd971f5df
#1 zend_mm_alloc_heap (size=140737274445920, heap=0x7ffff3400040) at /home/arjen/packages/php/src/php-7.1.6/Zend/zend_alloc.c:1332
No locals.
#2 _emalloc (size=size@entry=32) at /home/arjen/packages/php/src/php-7.1.6/Zend/zend_alloc.c:2417
No locals.
#3 0x00000000005f000f in zend_string_alloc (persistent=0, len=<optimized out>) at /home/arjen/packages/php/src/php-7.1.6/Zend/zend_string.h:122
ret = <optimized out>
#4 zend_string_init (persistent=0, len=<optimized out>, str=0x7fffd93dcddf "user\";s:17:\"") at /home/arjen/packages/php/src/php-7.1.6/Zend/zend_string.h:158
No locals.
View hugepages.php
<?php
/**
* JSMinPlus version 1.4
*
* Minifies a javascript file using a javascript parser
*
* This implements a PHP port of Brendan Eich's Narcissus open source javascript engine (in javascript)
* References: http://en.wikipedia.org/wiki/Narcissus_(JavaScript_engine)
* Narcissus sourcecode: http://mxr.mozilla.org/mozilla/source/js/narcissus/
View testcase.php
<?php
$host = 'tcp://php.net:443';
$chunkSize = 8192;
$fp = stream_socket_client($host, $errNumber, $errString, 5, STREAM_CLIENT_CONNECT);
stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
View testsuite.php
<?php
class A {
public static $a;
public static function setup()
{
self::$a = new A;
}
@arjenschol
arjenschol / PKGBUILD
Created Jun 4, 2014
HHVM 3.1.0 PKGBUILD
View PKGBUILD
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Spider.007 <aur.archlinux.org@spider007.net>
# Contributor: James Miller <james@pocketrent.com>
pkgname=hhvm
pkgver=3.1.0
pkgrel=1
pkgdesc="Virtual Machine, Runtime, and JIT for PHP"
arch=('x86_64')
url="http://hhvm.com"
View backtrace
Program received signal SIGSEGV, Segmentation fault.
0x00000000009bd702 in zval_scan (pz=0x45f059000) at /home/arjen/phpfarm/src/php-5.5.12/Zend/zend_gc.c:516
516 if (GC_ZVAL_GET_COLOR(pz) == GC_GREY) {
(gdb) bt full
#0 0x00000000009bd702 in zval_scan (pz=0x45f059000) at /home/arjen/phpfarm/src/php-5.5.12/Zend/zend_gc.c:516
p = 0x4d24ef8
#1 0x00000000009bd8ee in zval_scan (pz=0x45f059000) at /home/arjen/phpfarm/src/php-5.5.12/Zend/zend_gc.c:544
i = 0
n = 3
table = 0x4c8aaff
View PKGBUILD
# Maintainer: James Miller <james@pocketrent.com>
pkgname=hhvm
pkgver=2.3.0
pkgrel=1
epoch=
pkgdesc="Virtual Machine, Runtime, and JIT for PHP"
arch=('x86_64')
url="http://hhvm.com"
license=('PHP')
View backtrace
Fatal error: Cannot destroy active lambda function in /mnt/serve-a-lot_arjen/public_html/php/bug-ob-start-closure/test2.php on line 549
Program received signal SIGSEGV, Segmentation fault.
zend_mm_remove_from_free_list (heap=0xf43290, mm_block=0x7ffff6139d60) at /home/arjen/php/php-5.4/php-src/Zend/zend_alloc.c:805
warning: Source file is more recent than executable.
805 ZEND_MM_CHECK_TREE(mm_block);
(gdb) bt full
#0 zend_mm_remove_from_free_list (heap=0xf43290, mm_block=0x7ffff6139d60) at /home/arjen/php/php-5.4/php-src/Zend/zend_alloc.c:805
index = 14
rp = <optimized out>
View gist:5729158
(gdb) bt
#0 0x00007ffff5c8ce12 in ?? () from /usr/lib/libmemcached.so.11
#1 0x00007ffff5c8d665 in memcached_server_add_with_weight () from /usr/lib/libmemcached.so.11
#2 0x00007ffff5eb28c5 in zim_Memcached_addServer () from /usr/lib/php/modules/memcached.so
#3 0x00000000006d6e1c in ?? ()
#4 0x000000000065513f in execute ()
#5 0x000000000062fbd4 in zend_execute_scripts ()
#6 0x00000000005d1b1c in php_execute_script ()
#7 0x00000000006d8dcf in ?? ()
#8 0x000000000042615d in ?? ()
You can’t perform that action at this time.