hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Assertion when tab-completing in the debugger

Open HRMsimon opened this issue 12 years ago • 2 comments

Steps to reproduce:

$ hhvm -a
hphpd> b /<tab>

Assertion:

hhvm: /tmp/tmp.kZqhd0K3cn/hphp/runtime/vm/class.cpp:2445: void HPHP::Class::getClassInfo(HPHP::ClassInfoVM*): Assertion `!strcmp(name->data(), "86ctor")' failed.

Stack trace:

Host: ee-hhvm
ProcessID: 21208
ThreadID: 7f9c399c5440
ThreadPID: 21208
Name: /usr/bin/hhvm
Type: Aborted
Runtime: hhvm
Version: heads/master-0-g2c22fff6dbb65b30f93c764a62369fb96892f437
DebuggerCount: 1

Arguments: 
ThreadType: CLI
IsDebugger: True

#0  ?? at hhvm:0
#1  raise at /lib/x86_64-linux-gnu/libc.so.6:0
#2  abort at /lib/x86_64-linux-gnu/libc.so.6:0
#3  __uselocale at /lib/x86_64-linux-gnu/libc.so.6:0
#4  __assert_fail at /lib/x86_64-linux-gnu/libc.so.6:0
#5  HPHP::Class::getClassInfo(HPHP::ClassInfoVM*) at hhvm:0
#6  HPHP::ExecutionContext::findClassInfo(HPHP::String const&) at hhvm:0
#7  HPHP::ClassInfo::FindClassInterfaceOrTrait(HPHP::String const&) at hhvm:0
#8  HPHP::ClassInfo::FindClass(HPHP::String const&) at hhvm:0
#9  HPHP::ClassInfo::GetClassSymbolNames(HPHP::Array const&, bool, bool, std::vector<HPHP::String, std::allocator<HPHP::String> >&, std::vector<HPHP::String, std::allocator<HPHP::String> >*, std::vector<HPHP::String, std::allocator<HPHP::String> >*, std::vector<HPHP::String, std::allocator<HPHP::String> >*) at hhvm:0
#10 HPHP::ClassInfo::GetSymbolNames(std::vector<HPHP::String, std::allocator<HPHP::String> >&, std::vector<HPHP::String, std::allocator<HPHP::String> >&, std::vector<HPHP::String, std::allocator<HPHP::String> >&, std::vector<HPHP::String, std::allocator<HPHP::String> >*, std::vector<HPHP::String, std::allocator<HPHP::String> >*, std::vector<HPHP::String, std::allocator<HPHP::String> >*) at hhvm:0
#11 HPHP::Eval::CmdInfo::onServer(HPHP::Eval::DebuggerProxy&) at hhvm:0
#12 HPHP::Eval::DebuggerProxy::processInterrupt(HPHP::Eval::CmdInterrupt&) at hhvm:0
#13 HPHP::Eval::DebuggerProxy::interrupt(HPHP::Eval::CmdInterrupt&) at hhvm:0
#14 HPHP::Eval::Debugger::Interrupt(int, char const*, HPHP::Eval::InterruptSite*, char const*) at hhvm:0
#15 HPHP::Eval::Debugger::InterruptSessionStarted(char const*, char const*) at hhvm:0
#16 HPHP::Eval::Debugger::DebuggerSession(HPHP::Eval::DebuggerClientOptions const&, bool) at hhvm:0
#17 ?? at hhvm:0
#18 HPHP::execute_program(int, char**) at hhvm:0
#19 main at hhvm:0
#20 __libc_start_main at /lib/x86_64-linux-gnu/libc.so.6:0
#21 ?? at hhvm:0

PHP Stacktrace:

A segfault occurs upon hitting enter (the tab-complete works) when on a release build. Tab completion was working (IIRC) in yesterday's nightly.

HRMsimon avatar Jun 25 '14 03:06 HRMsimon

@HRMsimon Are you still getting this behavior? I just tried tab completion and it worked correctly.

JoelMarcey avatar Nov 03 '14 21:11 JoelMarcey

Can't reproduce on 3.3.1 or nightly, so looks fixed to me.

HRMsimon avatar Nov 03 '14 22:11 HRMsimon