{"action":"created","issue":{"url":"https://api.github.com/repos/cloudius-systems/osv/issues/635","labels_url":"https://api.github.com/repos/cloudius-systems/osv/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/cloudius-systems/osv/issues/635/comments","events_url":"https://api.github.com/repos/cloudius-systems/osv/issues/635/events","html_url":"https://github.com/cloudius-systems/osv/issues/635","id":81903916,"number":635,"title":"Java image compiled on Fedora 22 doesn't work","user":{"login":"nyh","id":584227,"avatar_url":"https://avatars.githubusercontent.com/u/584227?v=3","gravatar_id":"","url":"https://api.github.com/users/nyh","html_url":"https://github.com/nyh","followers_url":"https://api.github.com/users/nyh/followers","following_url":"https://api.github.com/users/nyh/following{/other_user}","gists_url":"https://api.github.com/users/nyh/gists{/gist_id}","starred_url":"https://api.github.com/users/nyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyh/subscriptions","organizations_url":"https://api.github.com/users/nyh/orgs","repos_url":"https://api.github.com/users/nyh/repos","events_url":"https://api.github.com/users/nyh/events{/privacy}","received_events_url":"https://api.github.com/users/nyh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2015-05-28T12:22:17Z","updated_at":"2015-10-01T19:32:53Z","closed_at":null,"body":"When the Java image (either \"scripts/build image=java\" or \"scripts/build image=openjdk8-fedora\", or something which uses it, e.g., \"scripts/build image=tomcat\") is compiled on Fedora 22, the resulting image crashes. For example:\r\n\r\n```\r\n$ scripts/build image=java\r\n$ scripts/run.py -V -e 'java.so -version'\r\n#\r\n# A fatal error has been detected by the Java Runtime Environment:\r\n#\r\n#  SIGSEGV (0xb) at pc=0x0000200000600060, pid=0, tid=18446603336284278848\r\n#\r\n# JRE version:  (7.0_55-b13) (build )\r\n# Java VM: OpenJDK 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)\r\n# Problematic frame:\r\n# V  [7.0_55-b13+0x4fe050]\r\n#\r\n# Core dump written. Default location: //core or core.0\r\n#\r\n# An error report file with more information is saved as:\r\n# /tmp/jvm-0/hs_error.log\r\n#\r\n# If you would like to submit a bug report, please include\r\n# instructions on how to reproduce the bug and visit:\r\n#   http://icedtea.classpath.org/bugzilla\r\n#\r\nAborted\r\n\r\n[backtrace]\r\n0x0000100001bd1ea8 <???+29171368>\r\n0x0000100001d595fe <???+30774782>\r\n0x0000100001bda4f6 <JVM_handle_linux_signal+550>\r\n0x0000000000375fb6 <call_signal_handler+326>\r\n0x000000000037eb7d <???+3664765>\r\n0x00001000019ddedb <???+27123419>\r\n0x0000100001cdf46a <???+30274666>\r\n0x0000100001ce3d14 <???+30293268>\r\n0x00001000019ddb18 <???+27122456>\r\n0x00001000019a15cc <???+26875340>\r\n0x0000100001d0d73e <???+30463806>\r\n0x0000100001a10246 <JNI_CreateJavaVM+102>\r\n0x0000100000c0dab6 <???+12638902>\r\n0x0000100000c0e378 <???+12641144>\r\n0x00000000004e537f <execute_native_thread_routine+31>\r\n0x00000000003d9a46 <thread_main_c+38>\r\n0x000000000037eb75 <???+3664757>\r\n0x19131409020015ff <???+33560063>\r\n0x00000000003d974f <???+4036431>\r\n0xfb89485354415540 <???+1413567808>\r\n```\r\n\r\nGdb shows the following stack trace:\r\n```\r\n#4  0x0000000000225c40 in abort () at runtime.cc:96\r\n#5  0x0000100001bd1ea9 in os::abort(bool) ()\r\n#6  0x0000100001d595ff in VMError::report_and_die() ()\r\n#7  0x0000100001bda4f7 in JVM_handle_linux_signal ()\r\n#8  0x0000000000375fb7 in call_signal_handler (frame=0x2000004ff0c0)\r\n    at arch/x64/signal.cc:85\r\n#9  <signal handler called>\r\n#10 0x0000200000600060 in ?? ()\r\n#11 0x000010000199489d in AbstractICache::invalidate_range(unsigned char*, int)\r\n    ()\r\n#12 0x00001000019ddedc in AbstractInterpreterGenerator::generate_all() ()\r\n#13 0x0000100001cdf46b in TemplateInterpreterGenerator::generate_all() ()\r\n#14 0x0000100001ce3d15 in TemplateInterpreter::initialize() ()\r\n#15 0x00001000019ddb19 in interpreter_init() ()\r\n#16 0x00001000019a15cd in init_globals() ()\r\n#17 0x0000100001d0d73f in Threads::create_vm(JavaVMInitArgs*, bool*) ()\r\n#18 0x0000100001a10247 in JNI_CreateJavaVM ()\r\n#19 0x0000100000c0dab7 in java_main (argc=<optimized out>, argv=0x2000003ffdd0)`\r\n#20 0x0000100000c0e379 in operator() (argv=<optimized out>, \r\n    argc=<optimized out>, __closure=<optimized out>) at java/java.cc:247\r\n#21 _M_invoke<0ul, 1ul> (this=<optimized out>)\r\n    at /usr/include/c++/5.1.1/functional:1531\r\n#22 operator() (this=<optimized out>) at /usr/include/c++/5.1.1/functional:1520\r\n#23 std::thread::_Impl<std::_Bind_simple<main(int, char**)::<lambda(int, char**)>(int, char**)> >::_M_run(void) (this=<optimized out>)\r\n    at /usr/include/c++/5.1.1/thread:115\r\n#24 0x00000000004e5380 in execute_native_thread_routine ()\r\n#25 0x000000000042f836 in operator() (__closure=0xffffa00003989f00)\r\n    at libc/pthread.cc:99\r\n#26 std::_Function_handler<void(), pthread_private::pthread::pthread(void* (*)(void*), void*, sigset_t, const pthread_private::thread_attr*)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...)\r\n    at /usr/include/c++/5.1.1/functional:1871\r\n#27 0x00000000003d9a47 in sched::thread_main_c (t=0xffff800003c29050)\r\n    at arch/x64/arch-switch.hh:164\r\n#28 0x000000000037eb76 in thread_main () at arch/x64/entry.S:113\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudius-systems/osv/issues/comments/144824472","html_url":"https://github.com/cloudius-systems/osv/issues/635#issuecomment-144824472","issue_url":"https://api.github.com/repos/cloudius-systems/osv/issues/635","id":144824472,"user":{"login":"copumpkin","id":2623,"avatar_url":"https://avatars.githubusercontent.com/u/2623?v=3","gravatar_id":"","url":"https://api.github.com/users/copumpkin","html_url":"https://github.com/copumpkin","followers_url":"https://api.github.com/users/copumpkin/followers","following_url":"https://api.github.com/users/copumpkin/following{/other_user}","gists_url":"https://api.github.com/users/copumpkin/gists{/gist_id}","starred_url":"https://api.github.com/users/copumpkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copumpkin/subscriptions","organizations_url":"https://api.github.com/users/copumpkin/orgs","repos_url":"https://api.github.com/users/copumpkin/repos","events_url":"https://api.github.com/users/copumpkin/events{/privacy}","received_events_url":"https://api.github.com/users/copumpkin/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T19:32:52Z","updated_at":"2015-10-01T19:32:52Z","body":"Would it make sense to just change `vma_list` to be an `interval_map`? It's not intrusive, but otherwise it seems to support what we need. It does support overlapping intervals, which are not what the allocator needs, but we could just not use that functionality. I doubt it'd be a significant performance change, right?"}}