Hello,

I'm working with the php-v8js module[1] and I'm getting occasional,
but repeatable crashes in v8::Context::New. I'm positive that there's
something wrong with the way the module is implemented... but I'm not
sure what is wrong.

I'm using V8 3.2.8.2 on x86_64 (tried both with snapshot on and off,
debug and release builds).

My backtrace is like this (same every time):

Program received signal SIGABRT, Aborted.
0x00007f0164e819a5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/
raise.c:64
64        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0  0x00007f0164e819a5 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/
linux/raise.c:64
#1  0x00007f0164e83185 in abort () at abort.c:92
#2  0x00007f01504b6391 in v8::internal::OS::Abort () at src/platform-
linux.cc:360
#3  0x00007f0150348372 in V8_Fatal (file=0x7f015068835a "src/
frames.cc", line=513, format=0x7f0150687d18 "CHECK(%s) failed")
    at src/checks.cc:58
#4  0x00007f0150399f90 in CheckHelper (file=0x7f015068835a "src/
frames.cc", line=513,
    source=0x7f01506884a3 "*state->pc_address != __null",
condition=false) at src/checks.h:60
#5  0x00007f015039bad3 in
v8::internal::ExitFrame::GetStateForFramePointer (fp=0x7fff5f7aba40 "p
\272z_\377\177", state=0x7fff5f7ab570)
    at src/frames.cc:513
#6  0x00007f015039a868 in v8::internal::StackFrameIterator::Reset
(this=0x7fff5f7ab5d0) at src/frames.cc:149
#7  0x00007f015039a198 in
v8::internal::StackFrameIterator::StackFrameIterator
(this=0x7fff5f7ab5d0) at src/frames.cc:78
#8  0x00007f0150570ac9 in v8::internal::PrintFrames
(accumulator=0x7fff5f7ab800, mode=v8::internal::StackFrame::OVERVIEW)
at src/top.cc:337
#9  0x00007f0150570c04 in v8::internal::Isolate::PrintStack
(this=0x7f01678f16b0, accumulator=0x7fff5f7ab800) at src/top.cc:361
#10 0x00007f01505709e3 in v8::internal::Isolate::PrintStack
(this=0x7f01678f16b0) at src/top.cc:315
#11 0x00007f015034836d in V8_Fatal (file=0x7f015068835a "src/
frames.cc", line=513, format=0x7f0150687d18 "CHECK(%s) failed")
    at src/checks.cc:55
#12 0x00007f0150399f90 in CheckHelper (file=0x7f015068835a "src/
frames.cc", line=513,
    source=0x7f01506884a3 "*state->pc_address != __null",
condition=false) at src/checks.h:60
#13 0x00007f015039bad3 in
v8::internal::ExitFrame::GetStateForFramePointer (fp=0x7fff5f7aba40 "p
\272z_\377\177", state=0x7fff5f7ab9c0)
    at src/frames.cc:513
#14 0x00007f015039a868 in v8::internal::StackFrameIterator::Reset
(this=0x7fff5f7aba48) at src/frames.cc:149
#15 0x00007f015039a30b in
v8::internal::StackFrameIterator::StackFrameIterator
(this=0x7fff5f7aba48, isolate=0x7f01678f16b0)
    at src/frames.cc:86
#16 0x00007f01502f47a3 in
v8::internal::JavaScriptFrameIteratorTemp<v8::internal::StackFrameIterator>::JavaScriptFrameIteratorTemp
(
    this=0x7fff5f7aba40, isolate=0x7f01678f16b0) at src/frames-inl.h:
178
#17 0x00007f0150338a3d in v8::internal::SaveContext::SaveContext
(this=0x7fff5f7abcc0, isolate=0x7f01678f16b0) at src/isolate.h:1147
#18 0x00007f0150336c0d in v8::internal::Genesis::Genesis
(this=0x7fff5f7abd50, global_object=..., global_template=...,
    extensions=0x7fff5f7abf10) at src/bootstrapper.cc:2067
#19 0x00007f015032e8e2 in
v8::internal::Bootstrapper::CreateEnvironment (this=0x7f016790b130,
global_object=..., global_template=...,
    extensions=0x7fff5f7abf10) at src/bootstrapper.cc:277
#20 0x00007f0150307a1b in v8::Context::New (extensions=0x7fff5f7abf10,
global_template=..., global_object=...) at src/api.cc:3709
#21 0x00007f0150ae42db in zim_V8Js___construct (ht=<value optimized
out>, return_value=<value optimized out>,
    return_value_ptr=<value optimized out>, this_ptr=0x7f01680a3208,
return_value_used=<value optimized out>) at /root/v8js/v8js.cc:610

Does anyone here have any tips what kind of error should I be looking
for?

1) http://pecl.php.net/package/v8js

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to