Status: New
Owner: [email protected]
CC: [email protected],  [email protected]
Labels: Type-Bug Priority-Medium OS-Mac

New issue 404 by [email protected]: Crash in mksnapshot on Mac
http://code.google.com/p/v8/issues/detail?id=404

Steps:
1. Checkout Chromium 20723
2. In src/DEPS change v8 dependency to point to
"http://v8.googlecode.com/svn/branches/bleeding_e...@2468"; and sync
again.
3. cd into src/v8/tools/gyp
4. Run  xcodebuild -configuration Release -project v8.xcodeproj  -
bonjourbuildhosts -target v8_snapshot and observe it fail.
4.1. You can cd into src/xcodebuild/Release and run  ./mksnapshot test.cc
to observe the crash.


dhcp-172-28-174-146:~/chrome/src/xcodebuild/Release yurys$ gdb --
args ./mksnapshot ss.cc
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40
UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for
shared libraries .... done

(gdb) r
Starting program:
/Users/yurys/chrome/src/xcodebuild/Release/mksnapshot ss.cc
Reading symbols for shared libraries +++. done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0008c4ca in v8::internal::Object::IsSmi () at objects-inl.h:4035
4035      if (!value->IsSmi()) return false;
(gdb) bt
#0  0x0008c4ca in v8::internal::Object::IsSmi () at objects-inl.h:4035
#1  0x0008c4ca in v8::internal::Object::IsSmi () at objects-inl.h:4035
#2  0x0008c4ca in v8::internal::CodeGenerator::IsUnsafeSmi
(this=0xbffff184, value={location_ = 0x0}) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#3  0x000b3387 in v8::internal::Result::ToRegister (this=0xbfffe8bc,
target={code_ = 1}) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#4  0x000b9ee3 in v8::internal::Object::IsSmi () at objects-inl.h:868
#5  0x000b9ee3 in v8::internal::Object::IsSmi () at objects-inl.h:868
#6  0x000b9ee3 in v8::internal::Object::IsSmi () at objects-inl.h:868
#7  0x000b9ee3 in v8::internal::VirtualFrame::CallLoadIC (this=0x1d7258,
mode=v8::internal::RelocInfo::CODE_TARGET_CONTEXT) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#8  0x0009ef65 in v8::internal::Reference::GetValue (this=0xbfffea64,
typeof_state=v8::internal::NOT_INSIDE_TYPEOF) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#9  0x000a01e0 in v8::internal::Object::IsSmi () at objects-inl.h:4014
#10 0x000a01e0 in v8::internal::Object::IsSmi () at objects-inl.h:4014
#11 0x000a01e0 in v8::internal::Object::IsSmi () at objects-inl.h:4014
#12 0x000a01e0 in v8::internal::CodeGenerator::VisitVariableProxy
(this=0xbffff184, node=0x8098f4) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#13 0x000077ff in v8::internal::VariableProxy::Accept (this=0x8098f4,
v=0xbffff184) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#14 0x0008feb8 in v8::internal::CodeGenerator::LoadCondition
(this=0xbffff184, x=0x8098f4,
typeof_state=v8::internal::NOT_INSIDE_TYPEOF, dest=0xbfffebb4,
force_control=false) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#15 0x000900a6 in v8::internal::Object::IsSmi () at objects-inl.h:471
#16 0x000900a6 in v8::internal::CodeGenerator::Load (this=0xbffff184,
x=0x8098f4, typeof_state=v8::internal::NOT_INSIDE_TYPEOF) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#17 0x00090df1 in v8::internal::Object::IsSmi () at objects-inl.h:658
#18 0x00090df1 in v8::internal::CodeGenerator::LoadReference
(this=0xbffff184, ref=0xbfffec44) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#19 0x000a014c in v8::internal::CodeGenerator::VisitProperty
(this=0xbffff184, node=0x80992c) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#20 0x00007580 in v8::internal::Property::Accept (this=0x80992c,
v=0xbffff184) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#21 0x0008feb8 in v8::internal::CodeGenerator::LoadCondition
(this=0xbffff184, x=0x80992c,
typeof_state=v8::internal::NOT_INSIDE_TYPEOF, dest=0xbfffed94,
force_control=false) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#22 0x000900a6 in v8::internal::Object::IsSmi () at objects-inl.h:471
#23 0x000900a6 in v8::internal::CodeGenerator::Load (this=0xbffff184,
x=0x80992c, typeof_state=v8::internal::NOT_INSIDE_TYPEOF) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#24 0x0009380f in v8::internal::CodeGenerator::VisitCallRuntime
(this=0xbffff184, node=0x80996c) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#25 0x00007438 in v8::internal::CallRuntime::Accept (this=0x80996c,
v=0xbffff184) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#26 0x0008feb8 in v8::internal::CodeGenerator::LoadCondition
(this=0xbffff184, x=0x80996c,
typeof_state=v8::internal::NOT_INSIDE_TYPEOF, dest=0xbfffef74,
force_control=false) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#27 0x000900a6 in v8::internal::Object::IsSmi () at objects-inl.h:471
#28 0x000900a6 in v8::internal::CodeGenerator::Load (this=0xbffff184,
x=0x80996c, typeof_state=v8::internal::NOT_INSIDE_TYPEOF) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#29 0x00090c71 in v8::internal::Object::IsSmi () at objects-inl.h:2421
#30 v8::internal::CodeGenerator::VisitExpressionStatement
(this=0xbffff184, node=0x809984) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#31 0x00007393 in v8::internal::ExpressionStatement::Accept
(this=0x809984, v=0xbffff184) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#32 0x0008da86 in v8::internal::CodeGenerator::VisitStatements
(this=0xbffff184, statements=0xbfffef74) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#33 0x0008e145 in v8::internal::Object::IsSmi () at objects-inl.h:2329
#34 0x0008e145 in v8::internal::CodeGenerator::VisitBlock
(this=0xbffff184, node=0x809834) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#35 0x00006d4b in v8::internal::Block::Accept (this=0x809834,
v=0xbffff184) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#36 0x0008da86 in v8::internal::CodeGenerator::VisitStatements
(this=0xbffff184, statements=0x8097e8) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#37 0x000a1ef1 in v8::internal::CodeGenerator::GenCode
(this=0xbffff184, fun=0x1d5bf8) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#38 0x0000e3a2 in v8::internal::CodeGenerator::MakeCode
(flit=0x1d5bf8, script={location_ = 0x805920}, is_eval=<value temporarily
unavailable, due to optimizations>) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#39 0x0000ff17 in v8::internal::MakeCode (literal=0x1d5bf8,
script=<value temporarily unavailable, due to optimizations>,
context={location_ = 0xbffff184}, is_eval=<value temporarily unavailable,
due to optimizations>) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#40 0x00010204 in v8::internal::MakeFunction (is_global=<value
temporarily unavailable, due to optimizations>, is_eval=<value temporarily
unavailable, due to optimizations>, is_json=false, script=<value
temporarily unavailable, due to optimizations>, context={location_ = 0x0},
extension=0x0, pre_data=0x2005c0) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#41 0x000107dd in v8::internal::Compiler::Compile (source={location_ =
0x805914}, script_name={location_ = 0x805918}, line_offset=0,
column_offset=0, extension=0x0, input_pre_data=0x0) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#42 0x00009c72 in v8::internal::Genesis::CompileScriptCached
(name={start_ = 0xbd6de "native runtime.js", length_ = 17},
source={location_ = 0x805914}, cache=0x11c1cc, extension=0x0,
use_runtime_context=true) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#43 0x0000a0b8 in v8::internal::Genesis::CompileNative (name={start_ =
0x0, length_ = 17}, source={location_ = 0x805914}) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#44 0x0000a13e in v8::internal::Genesis::CompileBuiltin (index=5) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#45 0x0000b01c in v8::internal::Genesis::InstallNatives (this=0xbffff634)
at /Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#46 0x0000c4e1 in v8::internal::Genesis::Genesis (this=0xbffff634,
global_object={location_ = 0x0}, global_template={val_ = 0x0},
extensions=0xbffff73c) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#47 0x0000c51f in v8::internal::Bootstrapper::CreateEnvironment
(global_object={location_ = 0x0}, global_template={val_ = 0x0},
extensions=0xbffff73c) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#48 0x000050b7 in v8::Context::New (extensions=0xbffff73c,
global_template={val_ = 0x0}, global_object={val_ = 0x0}) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
#49 0x00001d08 in main (argc=2, argv=0xbffff78c) at
/Users/yurys/chrome/src/v8/tools/gyp/../../src/ia32/codegen-
ia32.cc:4035
(gdb) p value
$1 = {
   location_ = 0x0
}
(gdb)


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to