Skip to content

Fix v8 crashes in arm32 startup #16985

Closed
Closed

Description

@deepak1556
# Fatal error in ./../../v8/src/compiler/code-assembler.cc, line 1940
# Type cast failed in CAST(LoadSlowProperties(CAST(receiver))) at ./../../v8/src/ic/keyed-store-generic.cc:836
  Expected NameDictionary but found 0x5c10066d <FixedArray[0]>
#
#
#
#FailureMessage Object: 0xff9f9154Received signal 4 <unknown> 000004dc7a6c
#0 0x000003c02514 base::debug::CollectStackTrace()
#1 0x000003b64ac8 base::debug::StackTrace::StackTrace()
#2 0x000003c0249a base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x0000f6624760 <unknown>
#4 0x000004dc7a6c v8::base::OS::Abort()
#5 0x000002c1abde v8::internal::CheckObjectType()
#6 0x0000032777b8 <unknown>

and executing a simple console.log('hello') statement with d8 results in

root@788c83cbe8df:/home/builduser/dist# ./d8
V8 version 7.3.492.10-electron.0
d8> console.log("hello")
hello
abort: CSA_ASSERT failed: Torque assert 'Is<A>(o)' failed [../../v8/src/builtins/base.tq:1066]


==== JS stack trace =========================================

    0: ExitFrame [pc: 0x157a810]
    1: StubFrame [pc: 0x15c4108]
Security context: 0x36490005 <JSObject>#0#
    2: join [0x364887b5](this=0x3d206b5d <JSArray[1]>#1#)
    3: toString [0x36482391](this=0x3d206b5d <JSArray[1]>#1#)
    4: InternalFrame [pc: 0x1271f8c]
    5: EntryFrame [pc: 0x1271ce4]
    6: builtin exit frame: Function(aka Function)(this=0x5fd00289 <undefined>,0x364927a9 <String[#25]: return %IsJSProxy(object)>,0x3d206b5d <JSArray[1]>#1#,0x5fd00289 <undefined>)

    7: /* anonymous */(aka /* anonymous */) [0x3d206a6d] [d8-stringify:15] [bytecode=0x36492c4d offset=70](this=0x5fd00289 <undefined>)
    8: /* anonymous */ [0x36492d25] [d8-stringify:93] [bytecode=0x36492a5d offset=10](this=0x3d200bbd <JSGlobal Object>#2#)
    9: InternalFrame [pc: 0x1271f8c]
   10: EntryFrame [pc: 0x1271ce4]

==== Details ================================================

[0]: ExitFrame [pc: 0x157a810]
[1]: StubFrame [pc: 0x15c4108]
[2]: join [0x364887b5](this=0x3d206b5d <JSArray[1]>#1#) {
// optimized frame
--------- s o u r c e   c o d e ---------
<No Source>
-----------------------------------------
}
[3]: toString [0x36482391](this=0x3d206b5d <JSArray[1]>#1#) {
// optimized frame
--------- s o u r c e   c o d e ---------
<No Source>
-----------------------------------------
}
[4]: InternalFrame [pc: 0x1271f8c]
[5]: EntryFrame [pc: 0x1271ce4]
[6]: builtin exit frame: Function(aka Function)(this=0x5fd00289 <undefined>,0x364927a9 <String[#25]: return %IsJSProxy(object)>,0x3d206b5d <JSArray[1]>#1#,0x5fd00289 <undefined>)

[7]: /* anonymous */(aka /* anonymous */) [0x3d206a6d] [d8-stringify:15] [bytecode=0x36492c4d offset=70](this=0x5fd00289 <undefined>) {
  // heap-allocated locals
  var stringifyDepthLimit = 4
  var isProxy = 0x3d206abd <JSFunction isProxy (sfi = 0x36492aa1)>#3#
  var JSProxyGetTarget = 0x3d206add <JSFunction JSProxyGetTarget (sfi = 0x36492ad5)>#4#
  var JSProxyGetHandler = 0x3d206afd <JSFunction JSProxyGetHandler (sfi = 0x36492b09)>#5#
  var Stringify = 0x3d206b1d <JSFunction Stringify (sfi = 0x36492b3d)>#6#
  var StringifyProxy = 0x3d206b3d <JSFunction StringifyProxy (sfi = 0x36492b71)>#7#
  // expression stack (top to bottom)
  [14] : 0x5fd00289 <undefined>
  [13] : 0x36481111 <JSFunction Function (sfi = 0x4370bb29)>#8#
  [12] : 7
  [11] : 0x5fd00305 <the_hole>
  [10] : 0x364927a9 <String[#25]: return %IsJSProxy(object)>
  [09] : 0x3d206b5d <JSArray[1]>#1#
  [08] : 0x5fd00289 <undefined>
  [07] : 37
  [06] : 0x36492ba5 <ArrayBoilerplateDescription 2, 0x3d206a31 <FixedArray[1]>>#9#
  [05] : 0x364927a9 <String[#25]: return %IsJSProxy(object)>
  [04] : 0x3d206b5d <JSArray[1]>#1#
  [03] : 0x5fd00289 <undefined>
  [02] : 0x36481111 <JSFunction Function (sfi = 0x4370bb29)>#8#
  [01] : 0x3d206a8d <FunctionContext[10]>#10#
  [00] : 0x36480bad <NativeContext[247]>#11#
--------- s o u r c e   c o d e ---------
function () {\x0a"use strict";\x0a\x0a// A more universal stringify that supports more types than JSON.\x0a// Used by the d8 shell to output results.\x0avar stringifyDepthLimit = 4;  // To avoid crashing on cyclic objects\x0a\x0a// Hacky solution to circumvent forcing --allow-natives-syntax for d8\x0afunction isProxy(o) { return fa...

-----------------------------------------
}

[8]: /* anonymous */ [0x36492d25] [d8-stringify:93] [bytecode=0x36492a5d offset=10](this=0x3d200bbd <JSGlobal Object>#2#) {
  // expression stack (top to bottom)
  [03] : 0x5fd00289 <undefined>
  [02] : 0x5fd00289 <undefined>
  [01] : 0x3d206a6d <JSFunction (sfi = 0x36492a15)>#12#
  [00] : 0x5fd00289 <undefined>
--------- s o u r c e   c o d e ---------
\x0a(function() {\x0a"use strict";\x0a\x0a// A more universal stringify that supports more types than JSON.\x0a// Used by the d8 shell to output results.\x0avar stringifyDepthLimit = 4;  // To avoid crashing on cyclic objects\x0a\x0a// Hacky solution to circumvent forcing --allow-natives-syntax for d8\x0afunction isProxy(o) {...

-----------------------------------------
}

[9]: InternalFrame [pc: 0x1271f8c]
[10]: EntryFrame [pc: 0x1271ce4]
==== Key         ============================================

 #0# 0x36490005: 0x36490005 <JSObject>
 #1# 0x3d206b5d: 0x3d206b5d <JSArray[1]>
                 0: 0x5fd027e5 <String[#6]: object>
 #2# 0x3d200bbd: 0x3d200bbd <JSGlobal Object>
 #3# 0x3d206abd: 0x3d206abd <JSFunction isProxy (sfi = 0x36492aa1)>
 #4# 0x3d206add: 0x3d206add <JSFunction JSProxyGetTarget (sfi = 0x36492ad5)>
 #5# 0x3d206afd: 0x3d206afd <JSFunction JSProxyGetHandler (sfi = 0x36492b09)>
 #6# 0x3d206b1d: 0x3d206b1d <JSFunction Stringify (sfi = 0x36492b3d)>
 #7# 0x3d206b3d: 0x3d206b3d <JSFunction StringifyProxy (sfi = 0x36492b71)>
 #8# 0x36481111: 0x36481111 <JSFunction Function (sfi = 0x4370bb29)>
 #9# 0x36492ba5: 0x36492ba5 <ArrayBoilerplateDescription 2, 0x3d206a31 <FixedArray[1]>>
 #10# 0x3d206a8d: 0x3d206a8d <FunctionContext[10]>
 #11# 0x36480bad: 0x36480bad <NativeContext[247]>
 #12# 0x3d206a6d: 0x3d206a6d <JSFunction (sfi = 0x36492a15)>
=====================

Received signal 4 <unknown> 0000017fdc54
Received signal 11 SEGV_MAPERR 0000ffffffe4

==== C stack trace ===============================

 [0x0000017ffc0c]
 [0x0000f7aa3760]
 [0x0000f7b8cdba]
 [0x0000f7b8d20e]
 [0x0000f7b8cc58]
 [0x0000f7b8c96a]
[end of stack trace]
Segmentation fault (core dumped)

/cc @zcbenz @jkleinsc @nornagon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions