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

Segfault in HPHP::FixedStringMap #1010

Closed
mappu opened this issue Sep 1, 2013 · 1 comment
Closed

Segfault in HPHP::FixedStringMap #1010

mappu opened this issue Sep 1, 2013 · 1 comment

Comments

@mappu
Copy link

mappu commented Sep 1, 2013

Hi, i have a segfault with a very similar stack trace to #404 :

(gdb) bt
#0  0x0000000000d7a2e4 in HPHP::FixedStringMap<unsigned int, true>::find(HPHP::StringData const*) const ()
#1  0x0000000000d4ea67 in HPHP::Class::getDeclPropIndex(HPHP::Class*, HPHP::StringData const*, bool&) const ()
#2  0x0000000000ae5491 in HPHP::ObjectData::setProp(HPHP::Class*, HPHP::StringData const*, HPHP::TypedValue*, bool) ()
#3  0x0000000000cbd9e2 in void HPHP::SetProp<true, false, (HPHP::KeyType)0>(HPHP::Class*, HPHP::TypedValue*, HPHP::TypedValue*, HPHP::TypedValue*) ()
#4  0x0000000000d2fb7e in void HPHP::VMExecutionContext::dispatchImpl<4>(int) ()
#5  0x0000000000cb3d2d in HPHP::VMExecutionContext::enterVM(HPHP::TypedValue*, HPHP::ActRec*) ()
#6  0x0000000000cb47f7 in HPHP::VMExecutionContext::invokeFunc(HPHP::TypedValue*, HPHP::Func const*, HPHP::Array const&, HPHP::ObjectData*, HPHP::Class*, HPHP::VarEnv*, HPHP::StringData*, HPHP::VMExecutionContext::InvokeFlags) ()
#7  0x0000000000cb5505 in HPHP::VMExecutionContext::invokeUnit(HPHP::TypedValue*, HPHP::Unit*) ()
#8  0x0000000000b36027 in HPHP::invoke_file(HPHP::String const&, bool, char const*) ()
#9  0x0000000000b37032 in HPHP::include_impl_invoke(HPHP::String const&, bool, char const*) ()
#10 0x0000000000b29b69 in HPHP::hphp_invoke(HPHP::ExecutionContext*, std::string const&, bool, HPHP::Array const&, HPHP::VRefParamValue const&, std::string const&, std::string const&, bool&, std::string&, bool, bool, bool) ()
#11 0x0000000000c85b40 in HPHP::HttpRequestHandler::executePHPRequest(HPHP::Transport*, HPHP::RequestURI&, HPHP::SourceRootInfo&, bool) ()
#12 0x0000000000c87304 in HPHP::HttpRequestHandler::handleRequest(HPHP::Transport*) ()
#13 0x0000000000fab568 in HPHP::LibEventWorker::doJobImpl(boost::shared_ptr<HPHP::LibEventJob>, bool) ()
#14 0x0000000000fab7da in HPHP::LibEventWorker::doJob(boost::shared_ptr<HPHP::LibEventJob>) ()
#15 0x0000000000fa8d38 in HPHP::JobQueueWorker<boost::shared_ptr<HPHP::LibEventJob>, true, false, HPHP::JobQueueDropVMStack>::start() ()
#16 0x0000000000ea7917 in HPHP::AsyncFuncImpl::threadFuncImpl() ()
#17 0x0000000000ea7ab0 in HPHP::AsyncFuncImpl::ThreadFunc(void*) ()
#18 0x00007ffff2bdfe0e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#19 0x00007ffff0cb995d in clone () from /lib/x86_64-linux-gnu/libc.so.6

I'm using the binary from the "unofficial packages for Debian 7" github wiki page, so apologies if this has already been fixed:

# hhvm --version
HipHop VM v2.1.0-dev (rel)
Compiler: heads/master-0-g67aae187565a8f9e36afba6d54a0acfc48434193
Repo schema: c28428f6376c681bceb4bbb4984ba0533666bbd9

I'll see if i can get a minimal PHP sample to reproduce..

@mappu
Copy link
Author

mappu commented Sep 2, 2013

Duplicate of #990 as per #1012

@mappu mappu closed this as completed Sep 2, 2013
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

1 participant