Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hhvm-3.0.1 core dump #3620

Closed
richardyao opened this issue Aug 29, 2014 · 7 comments
Closed

hhvm-3.0.1 core dump #3620

richardyao opened this issue Aug 29, 2014 · 7 comments

Comments

@richardyao
Copy link

I am using hhvm 3.0.1. hhvm core dump sometimes, here is the backstrace:

(gdb) bt
#0 0x00000000026c98db in HPHP::Func::validate (this=0x6e6f697472657373)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/func.h:144

#1 0x00000000029aeea5 in HPHP::JIT::(anonymous namespace)::isVMFrame (ec=0x7f769414d200,

ar=0x7f76a76d1280)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/fixup.cpp:67

#2 0x00000000029aefc9 in HPHP::JIT::FixupMap::fixupWork (this=0x7f76a5bdaa08,

ec=0x7f769414d200, rbp=0x7f76921732b0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/fixup.cpp:90

#3 0x00000000029af4ac in HPHP::JIT::FixupMap::fixup (this=0x7f76a5bdaa08, ec=0x7f769414d200)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/fixup.cpp:181

#4 0x0000000002bf6fa9 in HPHP::JIT::MCGenerator::syncWork (this=0x7f76a5bda700)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/mc-generator.cpp:1653

#5 0x0000000002c408be in HPHP::JIT::MCGenerator::sync (this=0x7f76a5bda700)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/mc-generator.h:237

#6 0x0000000002c3f8e7 in HPHP::JIT::translatorSync ()

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/translator-helpers.cpp:24

#7 0x0000000001ef145d in HPHP::JIT::VMRegAnchor::VMRegAnchor (this=0x7f76921715d0)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/translator-inline.h:84

#8 0x000000000267ba1b in HPHP::ExecutionContext::debugBacktrace (this=0x7f769414d200,

skip=false, withSelf=false, withThis=false, parserFrame=0x0, ignoreArgs=false, limit=0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/bytecode.cpp:2030

#9 0x0000000002316e83 in HPHP::debug_string_backtrace (skip=false, ignore_args=false,

limit=0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/ext/ext_error.cpp:79

#10 0x0000000001f6a15b in HPHP::bt_handler (sig=11)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/crash-reporter.cpp:78

#11
#12 0x00000000026c98db in HPHP::Func::validate (this=0x6e6f697472657373)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/func.h:144

#13 0x00000000029aeea5 in HPHP::JIT::(anonymous namespace)::isVMFrame (ec=0x7f769414d200,

ar=0x7f76a76d1280)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/fixup.cpp:67

#14 0x00000000029aefc9 in HPHP::JIT::FixupMap::fixupWork (this=0x7f76a5bdaa08,

ec=0x7f769414d200, rbp=0x7f76921732b0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/fixup.cpp:90

#15 0x00000000029af4ac in HPHP::JIT::FixupMap::fixup (this=0x7f76a5bdaa08, ec=0x7f769414d200)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/fixup.cpp:181

#16 0x0000000002bf6fa9 in HPHP::JIT::MCGenerator::syncWork (this=0x7f76a5bda700)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/mc-generator.cpp:1653

#17 0x0000000002c408be in HPHP::JIT::MCGenerator::sync (this=0x7f76a5bda700)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/mc-generator.h:237

#18 0x0000000002c3f8e7 in HPHP::JIT::translatorSync ()

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/translator-helpers.cpp:24

#19 0x0000000001ef145d in HPHP::JIT::VMRegAnchor::VMRegAnchor (this=0x7f7692172810)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/translator-inline.h:84

#20 0x000000000267ba1b in HPHP::ExecutionContext::debugBacktrace (this=0x7f769414d200,

skip=false, withSelf=false, withThis=false, parserFrame=0x0, ignoreArgs=false, limit=0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/bytecode.cpp:2030

#21 0x0000000002316e83 in HPHP::debug_string_backtrace (skip=false, ignore_args=false,

limit=0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/ext/ext_error.cpp:79

#22 0x0000000001f6a15b in HPHP::bt_handler (sig=6)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/crash-reporter.cpp:78

#23
#24 0x00007f76a759f3e9 in raise () from /home/map/hhvm/output/hhvm-3.0.1/lib64/libc-2.18.so
#25 0x00007f76a75a07e8 in abort () from /home/map/hhvm/output/hhvm-3.0.1/lib64/libc-2.18.so
#26 0x00007f76a7598516 in __assert_fail_base ()

from /home/map/hhvm/output/hhvm-3.0.1/lib64/libc-2.18.so
#27 0x00007f76a75985c2 in __assert_fail ()

from /home/map/hhvm/output/hhvm-3.0.1/lib64/libc-2.18.so
#28 0x000000000204403d in HPHP::cellIsPlausible (cell=...)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/tv-helpers.cpp:50

#29 0x0000000001ed56a6 in HPHP::cellDup (fr=..., to=...)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/tv-helpers.h:263

#30 0x0000000001f7454a in getArrayElm (keyOut=0x0, valOut=0x7f768d6bfbd0, pos=0,

this=0x7f768d712060)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/hphp-array-defs.h:95

#31 HPHP::new_iter_array (dest=0x7f768d6bfb80, ad=0x7f768d712060, valOut=0x7f768d6bfbd0)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/array-iterator.cpp:1045

#32 0x0000000007e23f85 in ?? ()
#33 0x0000000002f19ade in enterTCHelper ()

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/translator-asm-helpers.S:83

#34 0x0000000002bd3000 in HPHP::JIT::MCGenerator::enterTC (this=0x7f76a5bda700,

start=0x7e232ac "H\307\301\254\062\342\aH\211\357H\211\336H\307\302\241\032", data=0x0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/mc-generator.cpp:1187

#35 0x00000000026ca8aa in HPHP::JIT::MCGenerator::enterTCAfterPrologue (this=0x7f76a5bda700,

start=0x7e0822e "H\211\357H\211\336\350X\260\f\373\377\340\017\v\017\vUH\211\345\377w\b\377\067H\307\306")
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/jit/mc-generator.h:304

#36 0x0000000002679279 in HPHP::ExecutionContext::enterVMAtFunc (this=0x7f769414d200,

enterFnAr=0x7f768d6bffc0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/bytecode.cpp:1552

#37 0x0000000002679545 in HPHP::ExecutionContext::enterVM (this=0x7f769414d200,

ar=0x7f768d6bffc0)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/bytecode.cpp:1600

#38 0x000000000267a4fc in HPHP::ExecutionContext::invokeFunc (this=0x7f769414d200,

retval=0x7f76921747e0, f=0x7f7693c2aa60, args_=..., this_=0x0, cls=0x0, 
varEnv=0x7f76914067f8, invName=0x0, flags=HPHP::ExecutionContext::InvokePseudoMain)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/bytecode.cpp:1805

#39 0x000000000267b68c in HPHP::ExecutionContext::invokeUnit (this=0x7f769414d200,

retval=0x7f76921747e0, unit=0x7f7693c11480)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/vm/bytecode.cpp:1959

#40 0x000000000203080e in HPHP::invoke_file_impl (res=..., path=..., once=true,

currentDir=0x3994be2 "")
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/builtin-functions.cpp:853

#41 0x00000000020306db in HPHP::invoke_file (s=..., once=true, currentDir=0x3994be2 "")

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/builtin-functions.cpp:836

#42 0x0000000002030561 in HPHP::include_impl_invoke (file=..., once=true,

currentDir=0x3994be2 "")
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/builtin-functions.cpp:819

#43 0x0000000001f084f4 in HPHP::hphp_invoke (context=0x7f769414d200, cmd=..., func=false,

funcParams=..., funcRet=..., reqInitFunc=..., reqInitDoc=..., 
error=@0x7f7692174aaf: false, errorMsg=..., once=true, warmupOnly=false, 
richErrorMsg=false)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/base/program-functions.cpp:1691

#44 0x000000000258611a in HPHP::HttpRequestHandler::executePHPRequest (this=0x7f769e88a940,

transport=0x7f768d658d18, reqURI=..., sourceRootInfo=..., cachableDynamicContent=false)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/server/http-request-handler.cpp:360

#45 0x00000000025857fd in HPHP::HttpRequestHandler::handleRequest (this=0x7f769e88a940,

transport=0x7f768d658d18)
at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/server/http-request-handler.cpp:289

#46 0x000000000260fc57 in HPHP::ServerWorkerstd::shared_ptr<HPHP::FastCGIJob, HPHP::FastCGITransportTraits>::doJobImpl (this=0x7f76940c5b00, job=..., abort=false)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/server/server-worker.h:103

#47 0x000000000260f5fc in HPHP::ServerWorkerstd::shared_ptr<HPHP::FastCGIJob, HPHP::FastCGITransportTraits>::doJob (this=0x7f76940c5b00, job=...)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/runtime/server/server-worker.h:57

#48 0x0000000002607aec in HPHP::JobQueueWorkerstd::shared_ptr<HPHP::FastCGIJob, HPHP::Server*, true, false, HPHP::JobQueueDropVMStack>::start (this=0x7f76940c5b00)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/util/job-queue.h:409

#49 0x0000000002608d7d in HPHP::AsyncFuncHPHP::ServerWorker<std::shared_ptr<HPHP::FastCGIJob, HPHP::FastCGITransportTraits> >::run_ (obj=0x7f769411dd00)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/util/async-func.h:205

#50 0x00000000034d0e35 in HPHP::AsyncFuncImpl::threadFuncImpl (this=0x7f769411dd00)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/util/async-func.cpp:131

#51 0x00000000034d0a19 in HPHP::AsyncFuncImpl::ThreadFunc (obj=0x7f769411dd00)

at /mnt/huzhiguang/all_project/hhvm-3.0.1/public/hhvm/hhvm-src-301-debug/hhvm-HHVM-3.0.1/hphp/util/async-func.cpp:51

#52 0x00007f76a813b1c1 in start_thread ()

from /home/map/hhvm/output/hhvm-3.0.1/lib64/libpthread-2.18.so
#53 0x00007f76a76510ad in clone () from /home/map/hhvm/output/hhvm-3.0.1/lib64/libc-2.18.so

(gdb)

@simonwelsh
Copy link
Contributor

Do you still get this with 3.2.0? Or a 3.3.0 nightly?

@richardyao
Copy link
Author

have not tested in 3.2.0 or 3.3.0

@ghost
Copy link

ghost commented Aug 31, 2014

@richardyao : i doubt core dumps against 3.0.1 are going to be as useful useful to the hhvm team as a newer one would be

@richardyao
Copy link
Author

I am working on this bug, first reduce my php code base to a minimal to repuduce it.

@fredemmott
Copy link
Contributor

If you've not yet, you should try upgrading. Even with a minimal test case, we are not going to backport a fix to 3.0.x.

@fredemmott
Copy link
Contributor

marked as wishlist because of the extremely old version.

@richardyao
Copy link
Author

This core dump bug only exists in our internal code base, and it has been fixed.
The main line does not have this bug~~
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants