Skip to content

Instantly share code, notes, and snippets.

@sheki
Created March 28, 2014 06:28
Show Gist options
  • Save sheki/e3a057b13de3389f02bb to your computer and use it in GitHub Desktop.
Save sheki/e3a057b13de3389f02bb to your computer and use it in GitHub Desktop.
v8_failure.go
# github.com/mattn/go-v8
./v8wrap.cc:36:1: warning: 'from_json' has C-linkage specified, but returns user-defined type 'v8::Handle<v8::Value>' which is incompatible with C [-Wreturn-type-c-linkage]
./v8wrap.cc:56:14: warning: 'Locker' is deprecated [-Wdeprecated-declarations]
/usr/local/include/v8.h:5171:17: note: 'Locker' declared here
/usr/local/include/v8config.h:324:36: note: expanded from macro 'V8_DEPRECATED'
./v8wrap.cc:117:16: warning: 'Locker' is deprecated [-Wdeprecated-declarations]
/usr/local/include/v8.h:5171:17: note: 'Locker' declared here
/usr/local/include/v8config.h:324:36: note: expanded from macro 'V8_DEPRECATED'
./v8wrap.cc:199:14: warning: 'Locker' is deprecated [-Wdeprecated-declarations]
/usr/local/include/v8.h:5171:17: note: 'Locker' declared here
/usr/local/include/v8config.h:324:36: note: expanded from macro 'V8_DEPRECATED'
--- FAIL: TestAddFunc (0.01 seconds)
v8_test.go:83: Expected result from testFunc eval, received nil
SIGSEGV: segmentation violation
PC=0x7fff94fab732
signal arrived during cgo execution
runtime.cgocallbackg()
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/cgocall.c:267 +0x89 fp=0x5b7bc68
runtime.cgocallback_gofunc(0x4006c63, 0x4000ea0, 0x5b7bce0)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/asm_amd64.s:711 +0x67 fp=0x5b7bc78
runtime.asmcgocall(0x4000ea0, 0x5b7bce0)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/asm_amd64.s:618 +0x2d fp=0x5b7bc80
runtime.cgocall(0x4000ea0, 0x5b7bce0)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/cgocall.c:149 +0x133 fp=0x5b7bcc8
github.com/mattn/go-v8._Cfunc_v8_execute(0x58000d0, 0x5800330, 0x5800330)
github.com/mattn/go-v8/_test/_cgo_defun.c:93 +0x31 fp=0x5b7bce0
github.com/mattn/go-v8.(*V8Context).Eval(0xc210048960, 0x44a9870, 0x24, 0x44c8a88, 0x0, ...)
/Users/abhishekk/parse/hungry/go/src/github.com/mattn/go-v8/v8.go:187 +0xb7 fp=0x5b7bdb0
github.com/mattn/go-v8.TestAddFuncReturnObject(0xc2100676c0)
/Users/abhishekk/parse/hungry/go/src/github.com/mattn/go-v8/v8_test.go:183 +0x19a fp=0x5b7bf60
testing.tRunner(0xc2100676c0, 0x46da2d8)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/testing/testing.go:391 +0x8b fp=0x5b7bf90
runtime.goexit()
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1394 fp=0x5b7bf98
created by testing.RunTests
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/testing/testing.go:471 +0x8b2
goroutine 1 [chan receive]:
testing.RunTests(0x44c8ce8, 0x46da260, 0x9, 0x9, 0x4026c00)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/testing/testing.go:472 +0x8d5
testing.Main(0x44c8ce8, 0x46da260, 0x9, 0x9, 0x46d6a60, ...)
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/testing/testing.go:403 +0x84
main.main()
github.com/mattn/go-v8/_test/_testmain.go:67 +0x9c
goroutine 4 [syscall]:
runtime.goexit()
/usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/proc.c:1394
rax 0x70
rbx 0x7fff5fbff528
rcx 0x0
rdx 0x0
rdi 0x0
rsi 0x7fff5fbff528
rbp 0x7fff5fbff450
rsp 0x7fff5fbff450
r8 0x7fff5fbff598
r9 0x20
r10 0x7fff94ff32a8
r11 0x481
r12 0x7fff5fbff528
r13 0x5800360
r14 0x0
r15 0x0
rip 0x7fff94fab732
rflags 0x10246
cs 0x2b
fs 0x0
gs 0x0
exit status 2
FAIL github.com/mattn/go-v8 0.176s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment