Status: New
Owner: ----
New issue 1423 by [email protected]: "use strict" causes page to crash
http://code.google.com/p/v8/issues/detail?id=1423
1) Open up index.html in attached files in 13.0.779.0 (87105)
2) If it doesn't crash, hit reload a couple of times.
3) Crash stack is below
4) Comment out "use strict"; from remoting.js
5) No longer crashes.
6) Commenting out some of the code in updateAuthStatus_() or moving it to
subroutines appears to get rid of the crash as well.
#
# Fatal error in
/Users/Shared/dmaclach/opensource/chromium2/src/v8/tools/gyp/../../src/ia32/lithium-codegen-ia32.cc,
line 423
# unreachable code
#
==== Stack trace ============================================
Security context: 0x17fa852d <JS Object>#0#
2: updateAuthStatus_(aka updateAuthStatus_)
[file:///Users/dmaclach/Desktop/V8%20Test/remoting.js:~39] (this=0x16890049
<undefined>)
3: init_ [file:///Users/dmaclach/Desktop/V8%20Test/remoting.js:99]
(this=0x16f1b845 <JS Global Object>#1#)
4: arguments adaptor frame: 1->0
==== Details ================================================
[2]: updateAuthStatus_(aka updateAuthStatus_)
[file:///Users/dmaclach/Desktop/V8%20Test/remoting.js:~39] (this=0x16890049
<undefined>) {
// stack-allocated locals
var oauthValid = 0x168900bd <false>
var loginName = 0x168900bd <false>
var disableControls = 0x1689009d <true>
var authStatusControls = 0x19047edd <a NodeList>>#2#
var i = 1
--------- s o u r c e c o d e ---------
function updateAuthStatus_() {? var oauthValid = false;?
showElementById('oauth2-submit-button', false);?? var loginName =
false; ?? var disableControls = !(loginName && oauthValid);?? var
authStatusControls =?
document.getElementsByClassName('auth-status-control');? for (var i = 0; i
< authStatusControls.length; ...
-----------------------------------------
}
[3]: init_ [file:///Users/dmaclach/Desktop/V8%20Test/remoting.js:99]
(this=0x16f1b845 <JS Global Object>#1#) {
// expression stack (top to bottom)
[00] : 0x16890049 <undefined>
--------- s o u r c e c o d e ---------
function init_() {? initBackgroundFuncs_();? updateAuthStatus_();?
setHostMode('unshared');? setClientMode('unconnected');?
setGlobalMode(remoting.getItem('startup-mode', remoting.HOST_MODE));?}
-----------------------------------------
}
[4]: arguments adaptor frame: 1->0 {
// actual arguments
[00] : 0x1903cfdd <an Event>>#3# // not passed to callee
}
==== Key ============================================
#0# 0x17fa852d: 0x17fa852d <JS Object>
#1# 0x16f1b845: 0x16f1b845 <JS Global Object>
#2# 0x19047edd: 0x19047edd <a NodeList>>
#3# 0x1903cfdd: 0x1903cfdd <an Event>>
=====================
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev