Skip to content

Instantly share code, notes, and snippets.

Yogurt:~ simon$ ab -c 50 -n 1000 http://hhvm.pocketrent.com:8000/index.php/contact-us/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking hhvm.pocketrent.com (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
StaticFile {
Extensions {
123 = application/vnd.lotus-1-2-3
3dml = text/vnd.in3d.3dml
3ds = image/x-3ds
3g2 = video/3gpp2
3gp = video/3gpp
7z = application/x-7z-compressed
aab = application/x-authorware-bin
aac = audio/x-aac
Host: local-hhvm
ProcessID: 1884
ThreadID: 18837700
ThreadPID: 2346
Name: /usr/bin/hhvm
Type: Segmentation fault
Runtime: hhvm
Version: heads/bcmath_hni-0-g86db8b953c0f5211a7e9a4a56b747717d7317d66
DebuggerCount: 0
class standard_mathExtension : public Extension {
public:
standard_mathExtension() : Extension("standard_math") {}
virtual void moduleInit() {
HHVM_FE(is_finite);
HHVM_FE(is_infinite);
HHVM_FE(is_nan);
HHVM_FE(ceil);
HHVM_FE(floor);
HHVM_FE(round);
# 0 HPHP::bt_handler(int) at crash-reporter.cpp:0
# 1 killpg at /lib/x86_64-linux-gnu/libc.so.6:0
# 2 HPHP::JIT::HhbcTranslator::emitFCallBuiltin(unsigned int, unsigned int, int, bool) at ./hphp/hhvm/hhvm:0
# 3 HPHP::JIT::IRTranslator::translateInstr(HPHP::JIT::NormalizedInstruction const&) at ./hphp/hhvm/hhvm:0
# 4 HPHP::JIT::TranslatorX64::translateTracelet(HPHP::JIT::Tracelet&) at ./hphp/hhvm/hhvm:0
# 5 HPHP::JIT::TranslatorX64::translateWork(HPHP::JIT::TranslArgs const&) at ./hphp/hhvm/hhvm:0
# 6 HPHP::JIT::TranslatorX64::translate(HPHP::JIT::TranslArgs const&) at ./hphp/hhvm/hhvm:0
# 7 HPHP::JIT::TranslatorX64::retranslate(HPHP::JIT::TranslArgs const&) at ./hphp/hhvm/hhvm:0
# 8 HPHP::JIT::TranslatorX64::createTranslation(HPHP::JIT::TranslArgs const&) at ./hphp/hhvm/hhvm:0
# 9 HPHP::JIT::TranslatorX64::bindJmp(unsigned char*, HPHP::SrcKey, HPHP::JIT::ServiceRequest, bool&) at ./hphp/hhvm/hhvm:0
Variant HHVM_FUNCTION(rand, ActRec* ar) {
int64_t min, max;
if (ar->numArgs() == 0) {
min = 0;
max = HHVM_FN(getrandmax)();
} else {
min = ar->getExtraArg(0)->m_data.num;
max = ar->getExtraArg(1)->m_data.num;
}
if (!s_rand_is_seeded) {
<?php
class MongoSession implements SessionHandlerInterface {
protected $collection;
protected $obj = array();
public function close() {
// syslog(LOG_WARNING, 'close');
return true;
TypedValue* HHVM_FUNCTION(max, ActRec *ar) {
TypedValue* rv;
Variant ret;
int32_t count = ar->numArgs();
if (LIKELY(count >= 1)) {
Variant value(getArg<KindOfAny>(ar, 1));
if (count == 1) {
if (LIKELY(isContainer(value))) {
ArrayIter iter(value);
root@local-hhvm:/hphp/hiphop-php# gdb hphp/hhvm/hhvm
...
(gdb) r
...
HipHop Notice: Nothing to do. Either pass a .php file to run, or use -m server
src/tcmalloc.cc:289] Attempt to free invalid pointer 0x7ffff7f45d18
Program received signal SIGABRT, Aborted.
0x00007fffef1b51d5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
root@local-hhvm:/hphp/hiphop-php# hphp/hhvm/hhvm
HipHop Notice: Nothing to do. Either pass a .php file to run, or use -m server
*** Error in `hphp/hhvm/hhvm': free(): invalid pointer: 0x00007f21e29da500 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7aa16)[0x7f21d9ed3a16]
/lib/x86_64-linux-gnu/libc.so.6(+0x7b793)[0x7f21d9ed4793]
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0(+0x28b4d)[0x7f21d78c5b4d]
/lib64/ld-linux-x86-64.so.2(+0xefcf)[0x7f21e2873fcf]
/lib/x86_64-linux-gnu/libc.so.6(+0x39a91)[0x7f21d9e92a91]
/lib/x86_64-linux-gnu/libc.so.6(+0x39b15)[0x7f21d9e92b15]