bpd1069 / naclports

Automatically exported from code.google.com/p/naclports
0 stars 0 forks source link

Dosbox builds but crashes on startup with pnacl #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Dosbox builds but crashes on startup with pnacl.

Original issue reported on code.google.com by jvo...@google.com on 28 Jan 2012 at 12:27

GoogleCodeExporter commented 9 years ago
Hmm dosbox does not even seem to translate for me (below I tried arm,
but I get the same result for all three archs)

../../pnacl_sdk/toolchain/pnacl_linux_x86_64/newlib/bin/pnacl-translate -arch 
arm  out/repository-pnacl/dosbox-0.74/dosbox-0.74-build/src/dosbox  -o x
While deleting: metadata %
An asserting value handle still pointed to this value!
UNREACHABLE executed at 
/mnt/data/b/build/slave/linux-pnacl-x86_64/build/native_client/pnacl/src/upstrea
m/llvm/lib/VMCore/Value.cpp:570!
0  llc             0x0000000000dbb55f
1  llc             0x0000000000dbd7d2
2  libpthread.so.0 0x00007f048706e8f0
3  libc.so.6       0x00007f048635da75 gsignal + 53
4  libc.so.6       0x00007f04863615c0 abort + 384
5  llc             0x0000000000da67a2 llvm::llvm_unreachable_internal(char 
const*, char const*, unsigned int) + 354
6  llc             0x0000000000d6e2b8 
llvm::ValueHandleBase::ValueIsDeleted(llvm::Value*) + 2488
7  llc             0x0000000000d6ed25 llvm::Value::~Value() + 597
8  llc             0x0000000000d48d9f llvm::MDNode::destroy() + 15
9  llc             0x0000000000d4208d llvm::LLVMContextImpl::~LLVMContextImpl() 
+ 1613
10 llc             0x0000000000d411d1 llvm::LLVMContext::~LLVMContext() + 17
11 llc             0x0000000000d419fe 
llvm::object_deleter<llvm::LLVMContext>::call(void*) + 14
12 llc             0x0000000000da9c5d llvm::ManagedStaticBase::destroy() const 
+ 45
13 llc             0x0000000000da9cc5 llvm::llvm_shutdown() + 21
14 llc             0x00000000005304d5 llc_main(int, char**) + 2357
15 libc.so.6       0x00007f0486348c4d __libc_start_main + 253
16 llc             0x000000000052d459
Stack dump:

For reference:

cat ../../pnacl_sdk/toolchain/pnacl_linux_x86_64/REV 
Path: .
URL: svn://svn.chromium.org/native_client/trunk/src/native_client/pnacl
Repository Root: svn://svn.chromium.org/native_client
Repository UUID: fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
Revision: 7696
Node Kind: directory
Schedule: normal
Last Changed Author: pdox@google.com
Last Changed Rev: 7695
Last Changed Date: 2012-01-27 15:02:19 -0800 (Fri, 27 Jan 2012)

Original comment by robertm@google.com on 30 Jan 2012 at 5:21

GoogleCodeExporter commented 9 years ago
Sorry, forgot to mention about "While deleting: metadata %"...
We should probably file a bug for that, but the workaround is to run 
"pnacl-strip" to strip out the debug metadata before running translate.

Original comment by jvo...@google.com on 30 Jan 2012 at 5:39

GoogleCodeExporter commented 9 years ago
Ok, I working on some small addition to common.sh and the 5 nacl-ports examples
that allow us to translate the pexe on the bots.

Will file bugs for the individual example if I see and problems

Original comment by robertm@google.com on 30 Jan 2012 at 5:59

GoogleCodeExporter commented 9 years ago
Closing this issue.

Dosbox does actually work. You need to be using the latest IRT (built from 
SCons in native_client/). Canary does not work yet.

Original comment by pdox%goo...@gtempaccount.com on 1 Feb 2012 at 7:54