http://dpaste.com/hold/1310462/ - here small example

Example sometime works, sometime crash............ What i am doing wrong?




Compiling: 
g++ -I./deps/v8/src/ -Iinclude main.cc  -o hello_world 
deps/v8/out/x64.release/libv8_{base.x64,snapshot}.a -lpthread && 
./hello_world


GDB

(gdb) run
Starting program: /Users/h0x91b/Desktop/v8/hello_world 
RedisV8()
RedisV8()

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
v8::internal::HeapObject::GetHeap () at spaces.h:622
622 spaces.h: No such file or directory.
in spaces.h

(gdb) backtrace 
#0  v8::internal::HeapObject::GetHeap () at spaces.h:622
#1  v8::internal::MemoryChunk::FromAddress () at spaces.h:1188
#2  0x000000010000538e in v8::Context::Enter (this=0x10105ec00) at 
../src/api.cc:745
#3  0x0000000100001ac3 in RedisV8::run ()
#4  0x00000001000013b0 in main ()
Current language:  auto; currently c++


OS: Mac OS X 10.8.4
V8: 3.20.6 from git

build x64.native


суббота, 13 июля 2013 г., 12:33:44 UTC+3 пользователь Arseniy Pavlenko 
написал:
>
> How to correctly kill the V8 and run it again?
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to