[crac] RFR: RFC: -XX:CPUFeatures=0xnumber for CPU migration [v2]
Jan Kratochvil
duke at openjdk.org
Thu Feb 23 13:47:42 UTC 2023
On Tue, 14 Feb 2023 06:12:38 GMT, Jan Kratochvil <duke at openjdk.org> wrote:
> That should not happen with java threads. Could that be a native thread?
So I have accidentally reproduced it. Maybe it is a native thread. But what else to do with it than the `Freezer`? `checkpoint_restore()` is still executing `linux_ifunc_reset()` that time.
Core was generated by `/home/azul/azul/example-jetty/../crac-git/build/linux-x86_64-server-slowdebug/j'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __strlen_evex () at ../sysdeps/x86_64/multiarch/strlen-evex.S:69
69 ../sysdeps/x86_64/multiarch/strlen-evex.S: No such file or directory.
[Current thread is 1 (Thread 0x7f092cfff6c0 (LWP 26563))]
(gdb) bt -15
#2920 <signal handler called>
#2921 __memset_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:167
#2922 0x00007f0955eb2cfa in GuardedMemory::set_user_bytes(unsigned char) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2923 0x00007f0955eb2c41 in GuardedMemory::release_for_freeing() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2924 0x00007f09564382cf in os::free(void*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2925 0x00007f095592ac4a in ChunkPool::free_all_but(unsigned long) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2926 0x00007f095592af28 in ChunkPool::clean() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2927 0x00007f095592af93 in ChunkPoolCleaner::task() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2928 0x00007f09566ef880 in PeriodicTask::execute_if_pending(int) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2929 0x00007f09566ef3bf in PeriodicTask::real_time_tick(int) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2930 0x00007f09563f0bf5 in WatcherThread::run() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2931 0x00007f09567299cd in Thread::call_run() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2932 0x00007f095643e109 in thread_native_entry(Thread*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2933 0x00007f095763bfd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#2934 0x00007f09576bc66c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f092cfff6c0 (LWP 26563) __strlen_evex () at ../sysdeps/x86_64/multiarch/strlen-evex.S:69
2 Thread 0x7f09553206c0 (LWP 26546) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950024108) at ./nptl/futex-internal.c:57
3 Thread 0x7f0957592b80 (LWP 26545) __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=26546, futex_word=0x7f0955320990) at ./nptl/futex-internal.c:57
4 Thread 0x7f093cad56c0 (LWP 26550) __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f09500f8390) at ./nptl/futex-internal.c:57
5 Thread 0x7f092d2ff6c0 (LWP 26560) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7f092d2fec80, op=137, expected=0, futex_word=0x7f09500220c8) at ./nptl/futex-internal.c:57
6 Thread 0x7f093c6e46c0 (LWP 26552) 0x00007f095644fc4b in strcmp_local(char const*, char const*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
7 Thread 0x7f093d1df6c0 (LWP 26547) __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f09500729b0) at ./nptl/futex-internal.c:57
8 Thread 0x7f093d0dd6c0 (LWP 26548) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950020db8) at ./nptl/futex-internal.c:57
9 Thread 0x7f092d0ff6c0 (LWP 26562) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950022b88) at ./nptl/futex-internal.c:57
10 Thread 0x7f093cfdb6c0 (LWP 26549) __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950085250) at ./nptl/futex-internal.c:57
11 Thread 0x7f093c5e26c0 (LWP 26553) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950024e38) at ./nptl/futex-internal.c:57
12 Thread 0x7f093c2e26c0 (LWP 26556) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950022a58) at ./nptl/futex-internal.c:57
13 Thread 0x7f08dfbff6c0 (LWP 26599) __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f09500729b0) at ./nptl/futex-internal.c:57
14 Thread 0x7f08dfdff6c0 (LWP 26573) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7f08dfdfe580, op=137, expected=0, futex_word=0x7f0950882d80) at ./nptl/futex-internal.c:57
15 Thread 0x7f093c9d36c0 (LWP 26551) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950020ee8) at ./nptl/futex-internal.c:57
16 Thread 0x7f092d1ff6c0 (LWP 26561) syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
17 Thread 0x7f093c4e26c0 (LWP 26554) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f09502a4584) at ./nptl/futex-internal.c:57
18 Thread 0x7f092d7ff6c0 (LWP 26558) syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
19 Thread 0x7f093c3e26c0 (LWP 26555) __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f0950015db0) at ./nptl/futex-internal.c:57
20 Thread 0x7f092d3ff6c0 (LWP 26559) syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
21 Thread 0x7f08dfcff6c0 (LWP 26598) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f09500244ac) at ./nptl/futex-internal.c:57
22 Thread 0x7f08dfafd6c0 (LWP 26600) __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f09500729b0) at ./nptl/futex-internal.c:57
23 Thread 0x7f093c1e26c0 (LWP 26557) __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x7f093c1e1ca0, op=137, expected=0, futex_word=0x7f0950022928) at ./nptl/futex-internal.c:57
24 Thread 0x7f08df0f56c0 (LWP 26601) __futex_abstimed_wait_common64 (private=<optimized out>, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x7f09500729b0) at ./nptl/futex-internal.c:57
(gdb) t 6
[Switching to thread 6 (Thread 0x7f093c6e46c0 (LWP 26552))]
#0 0x00007f095644fc4b in strcmp_local(char const*, char const*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
(gdb) bt
#0 0x00007f095644fc4b in strcmp_local(char const*, char const*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#1 0x00007f0956450404 in symtab_lookup_iterate_phdr(dl_phdr_info*, unsigned long, void*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#2 0x00007f095770211d in __GI___dl_iterate_phdr (callback=0x7f09564500a9 <symtab_lookup_iterate_phdr(dl_phdr_info*, unsigned long, void*)>, data=0x7f093c6e3590) at ./elf/dl-iteratephdr.c:74
#3 0x00007f0956450644 in symtab_lookup(char const*, void const**, unsigned int) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#4 0x00007f0956451f2c in reset_glibc() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#5 0x00007f0956452afd in linux_ifunc_reset() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#6 0x00007f095644a599 in os::Linux::checkpoint_restore(int*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#7 0x00007f095644b737 in VM_Crac::doit() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#8 0x00007f09567d269d in VM_Operation::evaluate() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#9 0x00007f0956801122 in VMThread::evaluate_operation(VM_Operation*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#10 0x00007f0956801917 in VMThread::inner_execute(VM_Operation*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#11 0x00007f0956801cc3 in VMThread::loop() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#12 0x00007f0956800cc0 in VMThread::run() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#13 0x00007f09567299cd in Thread::call_run() () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#14 0x00007f095643e109 in thread_native_entry(Thread*) () from /home/azul/azul/crac-git/build/linux-x86_64-server-slowdebug/jdk/lib/server/libjvm.so
#15 0x00007f095763bfd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#16 0x00007f09576bc66c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
-------------
PR: https://git.openjdk.org/crac/pull/41
More information about the crac-dev
mailing list