Status: New
Owner: ----
New issue 2848 by [email protected]: cctest:
TestJSONStringifyAccessCheck() fails with empty handle in r16208
http://code.google.com/p/v8/issues/detail?id=2848
$ uname -a
Darwin hermes.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1
17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
$ git log HEAD^..HEAD | awk '/git-svn-id/ { print $2 }'
https://v8.googlecode.com/svn/branches/bleeding_edge@16208
$ make x64.debug extrachecks=on
<snip>
$ cd out && gdb --args x64.debug/cctest test-api
Reading symbols for shared libraries ... done
(gdb) r
Starting program: /Users/bnoordhuis/src/v8/out/x64.debug/cctest test-api
Reading symbols for shared libraries ++.............................. done
Named access blocked.
Access check failed. Error thrown.
Named access blocked.
Access check failed. Error thrown.
Error: cross context
Indexed access blocked.
<snip>
Error: cross context
Named access blocked.
Access check failed. Error thrown.
<unknown>:5: Uncaught Error: cross context
#
# Fatal error in ../src/api.h, line 402
# CHECK(allow_empty_handle || that != __null) failed
#
==== C stack trace ===============================
1: ??
2: ??
3: ??
4: ??
5: ??
6: ??
7: ??
8: ??
9: ??
10: ??
11: ??
Program received signal SIGTRAP, Trace/breakpoint trap.
v8::internal::OS::DebugBreak () at ../src/platform-posix.cc:252
252 }
(gdb) bt
#0 v8::internal::OS::DebugBreak () at ../src/platform-posix.cc:252
#1 0x00000001007334c9 in v8::internal::OS::Abort ()
at ../src/platform-posix.cc:230
#2 0x000000010026535e in V8_Fatal (file=0x100ae6b86 "../src/api.h",
line=402, format=0x100b0ab62 "CHECK(%s) failed") at ../src/checks.cc:61
#3 0x00000001000b7edd in v8::Utils::OpenHandle (that=0x0,
allow_empty_handle=false) at api.h:402
#4 0x00000001001f25ef in v8::Value::FullIsString (this=0x0)
at ../src/api.cc:2685
#5 0x00000001000bc585 in v8::Value::IsString (this=0x0) at v8.h:6249
#6 0x0000000100087cd1 in ExpectString
(code=0x100aeb719 "JSON.stringify(other)", expected=0x100aeb93a "{}")
at ../test/cctest/test-api.cc:103
#7 0x0000000100087078 in TestJSONStringifyAccessCheck ()
at ../test/cctest/test-api.cc:20053
#8 0x0000000100002202 in CcTest::Run (this=0x1016748d8) at cctest.h:79
#9 0x0000000100001cf2 in main (argc=2, argv=0x7fff5fbff670)
at ../test/cctest/cctest.cc:155
(gdb) f 7
#7 0x0000000100087078 in TestJSONStringifyAccessCheck ()
at ../test/cctest/test-api.cc:20053
20053 ExpectString("JSON.stringify(other)", "{}");
(gdb) l
20048 // Create a context with a different security token so that the
20049 // failed access check callback will be called on each access.
20050 LocalContext context1(NULL, global_template);
20051 context1->Global()->Set(v8_str("other"), global0);
20052
20053 ExpectString("JSON.stringify(other)", "{}");
20054 ExpectString("JSON.stringify({ 'a' : other, 'b' : ['c'] })",
20055 "{\"a\":{},\"b\":[\"c\"]}");
20056 ExpectString("JSON.stringify([other, 'b', 'c'])",
20057 "[{},\"b\",\"c\"]");
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.