Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions in unproguarded openjdk-src arm build hit pool size limits #305

Open
joshuawarner32 opened this issue Jul 22, 2014 · 0 comments
Open
Labels

Comments

@joshuawarner32
Copy link
Collaborator

Make command (on macosx, using jdku40 (build 43) source and binaries from https://github.com/alexkasko/openjdk-unofficial-builds/tree/e1b5828b726050b79da9cfefe06e3b73e3e1e2cd):

make platform=ios bootimage=true arch=arm openjdk=(pwd)/../openjdk/7/u40/bin openjdk-src=(pwd)/../openjdk/7/u40/src mode=debug MAKEFLAGS=

lldb run:

* thread #1: tid = 0x1c8625, 0x00007fff9090d866 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff9090d866 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill + 10:
-> 0x7fff9090d866:  jae    0x7fff9090d870            ; __pthread_kill + 20
   0x7fff9090d868:  movq   %rax, %rdi
   0x7fff9090d86b:  jmpq   0x7fff9090a175            ; cerror_nocancel
   0x7fff9090d870:  ret
(lldb) bt
* thread #1: tid = 0x1c8625, 0x00007fff9090d866 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
  * frame #0: 0x00007fff9090d866 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007fff89a0a35c libsystem_pthread.dylib`pthread_kill + 92
    frame #2: 0x00007fff92651b1a libsystem_c.dylib`abort + 125
    frame #3: 0x0000000100003e79 bootimage-generator`avian::system::crash() + 9 at signal.cpp:154
    frame #4: 0x00000001000011a1 bootimage-generator`(anonymous namespace)::MySystem::abort(this=0x0000000104507fd0) + 17 at posix.cpp:936
    frame #5: 0x00000001000d2d55 bootimage-generator`void avian::util::abort<avian::codegen::arm::Context*>(t=0x0000000107c78c28) + 37 at abort.h:34
    frame #6: 0x00000001000d2cd4 bootimage-generator`void avian::util::expect<avian::codegen::arm::Context*>(t=0x0000000107c78c28, v=false) + 68 at abort.h:42
    frame #7: 0x00000001000d5aa5 bootimage-generator`avian::codegen::arm::resolve(b=0x00000001098ebdd8) + 373 at operations.cpp:253
    frame #8: 0x00000001000d2fb1 bootimage-generator`avian::codegen::arm::MyBlock::resolve(this=0x00000001098ebdd8, start=121548, next=0x00000001098eb1a8) + 49 at block.cpp:42
    frame #9: 0x00000001000bc48f bootimage-generator`avian::codegen::compiler::MyCompiler::resolve(this=0x0000000107c78d08, dst=0x00000001054ca2e4) + 223 at compiler.cpp:2905
    frame #10: 0x0000000100062426 bootimage-generator`(anonymous namespace)::local::finish(t=0x0000000104800608, allocator=0x00000001048040b0, context=0x00007fff5fbeff60)::local::MyThread*, avian::util::FixedAllocator*, (anonymous namespace)::local::Context*) + 246 at compile.cpp:6862
    frame #11: 0x000000010006135f bootimage-generator`(anonymous namespace)::local::compile(t=0x0000000104800608, allocator=0x00000001048040b0, bootContext=0x00007fff5fbf0138, method=0x000000013cf741b0)::local::MyThread*, avian::util::FixedAllocator*, (anonymous namespace)::local::BootContext*, vm::GcMethod*) + 847 at compile.cpp:10232
    frame #12: 0x0000000100053f7d bootimage-generator`(anonymous namespace)::local::MyProcessor::compileMethod(this=0x0000000104804008, vmt=0x0000000104800608, zone=0x00007fff5fbff310, constants=0x00007fff5fbf0910, calls=0x00007fff5fbf08e8, addresses=0x00007fff5fbf0898, method=0x000000013cf741b0, resolver=0x00007fff5fbf0888) + 189 at compile.cpp:8973
    frame #13: 0x00000001042cba76 bootimage-generator`(anonymous namespace)::makeCodeImage(t=0x0000000104800608, zone=0x00007fff5fbff310, image=0x00007fff5fbff738, code=0x0000000105000008, className=0x0000000000000000, methodName=0x0000000000000000, methodSpec=0x0000000000000000, typeMaps=0x0000000145cfd9c0) + 6566 at main.cpp:720
    frame #14: 0x00000001042c87fd bootimage-generator`(anonymous namespace)::writeBootImage2(t=0x0000000104800608, bootimageOutput=0x00007fff5fbff708, codeOutput=0x00007fff5fbff6f0, image=0x00007fff5fbff738, code=0x0000000105000008, className=0x0000000000000000, methodName=0x0000000000000000, methodSpec=0x0000000000000000, bootimageStart=0x00000001045041a0, bootimageEnd=0x0000000104502f70, codeimageStart=0x0000000104503630, codeimageEnd=0x00000001045087d0, useLZMA=false) + 2541 at main.cpp:1640
    frame #15: 0x00000001042c7cd5 bootimage-generator`(anonymous namespace)::writeBootImage(t=0x0000000104800608, arguments=0x00007fff5fbff690) + 293 at main.cpp:1921
    frame #16: 0x00000001000dca03 bootimage-generator`vmRun + 47
    frame #17: 0x0000000100037028 bootimage-generator`vm::runRaw(t=0x0000000104800608, function=0x00000001042c7bb0, arguments=0x00007fff5fbff690)(vm::Thread*, unsigned long*), unsigned long*) + 56 at machine.h:1757
    frame #18: 0x0000000100034f2c bootimage-generator`vm::run(t=0x0000000104800608, function=0x00000001042c7bb0, arguments=0x00007fff5fbff690)(vm::Thread*, unsigned long*), unsigned long*) + 60 at machine.h:1765
    frame #19: 0x00000001042c7acd bootimage-generator`main(ac=11, av=0x00007fff5fbff890) + 1133 at main.cpp:2165
(lldb) f 8
frame #8: 0x00000001000d2fb1 bootimage-generator`avian::codegen::arm::MyBlock::resolve(this=0x00000001098ebdd8, start=121548, next=0x00000001098eb1a8) + 49 at block.cpp:42
   39     this->start = start;
   40     this->next = static_cast<MyBlock*>(next);
   41
-> 42     arm::resolve(this);
   43
   44     return start + size + padding(this, size);
   45   }
(lldb) f 7
frame #7: 0x00000001000d5aa5 bootimage-generator`avian::codegen::arm::resolve(b=0x00000001098ebdd8) + 373 at operations.cpp:253
   250            = (b->start + b->size - 8)
   251              - (con->poolOffsetHead->offset + con->poolOffsetHead->block->start);
   252
-> 253        expect(con, v == (v & PoolOffsetMask));
   254  #endif  // not NDEBUG
   255
   256        appendPoolEvent(
(lldb) f 12
frame #12: 0x0000000100053f7d bootimage-generator`(anonymous namespace)::local::MyProcessor::compileMethod(this=0x0000000104804008, vmt=0x0000000104800608, zone=0x00007fff5fbff310, constants=0x00007fff5fbf0910, calls=0x00007fff5fbf08e8, addresses=0x00007fff5fbf0898, method=0x000000013cf741b0, resolver=0x00007fff5fbf0888) + 189 at compile.cpp:8973
   8970     MyThread* t = static_cast<MyThread*>(vmt);
   8971     BootContext bootContext(t, *constants, *calls, *addresses, zone, resolver);
   8972
-> 8973     compile(t, &codeAllocator, &bootContext, method);
   8974
   8975     *constants = bootContext.constants;
   8976     *calls = bootContext.calls;
(lldb) p method->name()->body().begin()
(signed char *) $0 = 0x000000013cf50900
(lldb) p/s method->name()->body().begin()
(signed char *) $1 = "initComponentDefaults"
(lldb) p/s method->class_()->name()->body().begin()
(signed char *) $2 = "com/sun/java/swing/plaf/gtk/GTKLookAndFeel"
joshuawarner32 pushed a commit to joshuawarner32/avian that referenced this issue Jul 22, 2014
This particular problem was introduced in the recent "compiler types" refactor.
It's unclear why it wasn't encountered before now.

Note that the full, unproguarded bootimage build is still blocked by ReadyTalk#305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant