Status: New
Owner: ----

New issue 2994 by [email protected]: Passing --extra-code to mksnapshot causes a crash
http://code.google.com/p/v8/issues/detail?id=2994

I'm using 3.22.9 from github.

Passing --extra-code with any js file to mksnapshot causes a crash:

% gdb --args ./mksnapshot.ia32 --extra-code=test.js foo.cpp Reading symbols from /home/jhanssen/dev/v8/out/ia32.debug/mksnapshot.ia32...done.
(gdb) r
Starting program: /home/jhanssen/dev/v8/out/ia32.debug/mksnapshot.ia32 --extra-code=test.js foo.cpp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb7c9cb40 (LWP 22323)]
[New Thread 0xb7fd9b40 (LWP 22324)]
[New Thread 0xb749bb40 (LWP 22325)]
[New Thread 0xb748ab40 (LWP 22326)]
[New Thread 0xb7479b40 (LWP 22327)]

Program received signal SIGSEGV, Segmentation fault.
0x083a33b5 in v8::internal::FixedArrayBase::length (this=0x0) at ../src/objects-inl.h:2562
2562    SMI_ACCESSORS(FixedArrayBase, length, kLengthOffset)
(gdb) bt
#0 0x083a33b5 in v8::internal::FixedArrayBase::length (this=0x0) at ../src/objects-inl.h:2562 #1 0x083a329b in v8::internal::FixedArray::get (this=0x0, index=3) at ../src/objects-inl.h:1896 #2 0x083a7153 in v8::internal::Context::global_object (this=0x0) at ../src/contexts.h:374 #3 0x0857178b in v8::internal::Isolate::global_context (this=0x95f8558) at ../src/isolate.cc:1626 #4 0x083b6cc1 in v8::Script::New (source=..., origin=0x0, pre_data=0x0, script_data=...) at ../src/api.cc:1750 #5 0x083b6fd7 in v8::Script::Compile (source=..., origin=0x0, pre_data=0x0, script_data=...) at ../src/api.cc:1776
#6  0x083a4726 in main (argc=2, argv=0xbffff4f4) at ../src/mksnapshot.cc:381


--
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.

Reply via email to