Right after posting I noticed an error in the code below where "scope" was not defined. I fixed it however the segfault remains.
On Friday, 13 March 2015 22:55:40 UTC-4, Jean-Philippe Déry wrote: > > Hi, > > I'm trying to use force garbage collection using > RequestGarbageCollectionForTesting > and for reasons unknown to me it's causing a segfault. Here's the sample > code I run in a GoogleTest test case: > > TEST_F(Test, FinalizeCallbackWithFreeValue) > { > > Isolate* isolate = Isolate::New(); > Isolate::Scope isolate_scope(isolate); > HandleScope handle_scope(isolate); > Local<Context> context = Context::New(isolate); > Context::Scope context_scope(context); > > LOGD("STARTING GC"); > > scope->isolate->RequestGarbageCollectionForTesting(v8::Isolate:: > kFullGarbageCollection); > > LOGD("DONE GC"); > > } > > > Here's what the console's showing me, if that's any help > > > 3-13 22:53:45.365 1059-1059/? A/libc﹕ Fatal signal 11 (SIGSEGV) at > 0x00000000 (code=1) > > > > 03-13 22:53:45.875 34-34/? I/DEBUG﹕ *** *** *** *** *** *** *** *** > *** *** *** *** *** *** *** *** > > 03-13 22:53:45.875 34-34/? I/DEBUG﹕ Build fingerprint: > 'generic/sdk/generic:4.0.4/MR1/302030:eng/test-keys' > > 03-13 22:53:45.875 34-34/? I/DEBUG﹕ pid: 1059, tid: 1059 >>> > /data/local/tmp/MetisCoreTests <<< > > 03-13 22:53:45.875 34-34/? I/DEBUG﹕ signal 11 (SIGSEGV), code 1 ( > SEGV_MAPERR), fault addr 00000000 > > 03-13 22:53:45.875 34-34/? I/DEBUG﹕ r0 0000000c r1 27f00000 r2 > 00000001 r3 002404d0 > > 03-13 22:53:45.875 34-34/? I/DEBUG﹕ r4 00054be0 r5 00050a68 r6 > 00000000 r7 406a67bd > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ r8 0006c7c0 r9 00000001 10 > 00000002 fp 00050a68 > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ ip 0006c7e8 sp bed45938 lr > 402fee44 pc 402fee54 cpsr 20000010 > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d0 74696d694c656361 d1 > 40623a013052fe1b > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d2 00082400000a69e8 d3 > 00000000000a69e8 > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d4 eaffffebe59a0014 d5 > 000a69ece7f000fc > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d6 000a69f04056e6f8 d7 > 3fe6a09e667f3bcd > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d8 0000000000000000 d9 > 0000000000000000 > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d10 0000000000000000 d11 > 0000000000000000 > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d12 0000000000000000 d13 > 0000000000000000 > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ d14 0000000000000000 d15 > 0000000000000000 > > 03-13 22:53:45.885 34-34/? I/DEBUG﹕ scr 22000010 > > 03-13 22:53:45.955 34-34/? I/DEBUG﹕ #00 pc 002fee54 > /data/local/tmp/libMetisCore.so (_ZN2v88internal20MarkCompactCollec > ... -- -- 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/d/optout.