From e5634e2806195bee44407853c4bf8776f7abfa4f Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Sun, 1 Jun 2025 21:19:55 +0200 Subject: add the outputs of the first five revisions of the classifier --- classification_output/02/other/02364653 | 364 ++ classification_output/02/other/02572177 | 422 ++ classification_output/02/other/04472277 | 577 +++ classification_output/02/other/12869209 | 89 + classification_output/02/other/13442371 | 370 ++ classification_output/02/other/14488057 | 712 +++ classification_output/02/other/16056596 | 99 + classification_output/02/other/16201167 | 101 + classification_output/02/other/16228234 | 1845 ++++++++ classification_output/02/other/17743720 | 772 ++++ classification_output/02/other/21221931 | 329 ++ classification_output/02/other/21247035 | 1322 ++++++ classification_output/02/other/23300761 | 314 ++ classification_output/02/other/23448582 | 266 ++ classification_output/02/other/25892827 | 1078 +++++ classification_output/02/other/31349848 | 155 + classification_output/02/other/32484936 | 224 + classification_output/02/other/35170175 | 522 +++ classification_output/02/other/42613410 | 150 + classification_output/02/other/42974450 | 430 ++ classification_output/02/other/43643137 | 539 +++ classification_output/02/other/48245039 | 531 +++ classification_output/02/other/55247116 | 1311 ++++++ classification_output/02/other/55367348 | 533 +++ classification_output/02/other/55753058 | 294 ++ classification_output/02/other/56309929 | 181 + classification_output/02/other/56937788 | 345 ++ classification_output/02/other/57195159 | 316 ++ classification_output/02/other/57231878 | 243 + classification_output/02/other/57756589 | 1422 ++++++ classification_output/02/other/59540920 | 377 ++ classification_output/02/other/64571620 | 786 ++++ classification_output/02/other/65781993 | 2794 ++++++++++++ classification_output/02/other/66743673 | 365 ++ classification_output/02/other/68897003 | 717 +++ classification_output/02/other/70021271 | 7449 +++++++++++++++++++++++++++++++ classification_output/02/other/70416488 | 1180 +++++ classification_output/02/other/74715356 | 127 + classification_output/02/other/79834768 | 410 ++ classification_output/02/other/81775929 | 236 + classification_output/02/other/85542195 | 121 + classification_output/02/other/88225572 | 2901 ++++++++++++ classification_output/02/other/88281850 | 282 ++ classification_output/02/other/92957605 | 419 ++ classification_output/02/other/95154278 | 156 + classification_output/02/other/99674399 | 149 + 46 files changed, 34325 insertions(+) create mode 100644 classification_output/02/other/02364653 create mode 100644 classification_output/02/other/02572177 create mode 100644 classification_output/02/other/04472277 create mode 100644 classification_output/02/other/12869209 create mode 100644 classification_output/02/other/13442371 create mode 100644 classification_output/02/other/14488057 create mode 100644 classification_output/02/other/16056596 create mode 100644 classification_output/02/other/16201167 create mode 100644 classification_output/02/other/16228234 create mode 100644 classification_output/02/other/17743720 create mode 100644 classification_output/02/other/21221931 create mode 100644 classification_output/02/other/21247035 create mode 100644 classification_output/02/other/23300761 create mode 100644 classification_output/02/other/23448582 create mode 100644 classification_output/02/other/25892827 create mode 100644 classification_output/02/other/31349848 create mode 100644 classification_output/02/other/32484936 create mode 100644 classification_output/02/other/35170175 create mode 100644 classification_output/02/other/42613410 create mode 100644 classification_output/02/other/42974450 create mode 100644 classification_output/02/other/43643137 create mode 100644 classification_output/02/other/48245039 create mode 100644 classification_output/02/other/55247116 create mode 100644 classification_output/02/other/55367348 create mode 100644 classification_output/02/other/55753058 create mode 100644 classification_output/02/other/56309929 create mode 100644 classification_output/02/other/56937788 create mode 100644 classification_output/02/other/57195159 create mode 100644 classification_output/02/other/57231878 create mode 100644 classification_output/02/other/57756589 create mode 100644 classification_output/02/other/59540920 create mode 100644 classification_output/02/other/64571620 create mode 100644 classification_output/02/other/65781993 create mode 100644 classification_output/02/other/66743673 create mode 100644 classification_output/02/other/68897003 create mode 100644 classification_output/02/other/70021271 create mode 100644 classification_output/02/other/70416488 create mode 100644 classification_output/02/other/74715356 create mode 100644 classification_output/02/other/79834768 create mode 100644 classification_output/02/other/81775929 create mode 100644 classification_output/02/other/85542195 create mode 100644 classification_output/02/other/88225572 create mode 100644 classification_output/02/other/88281850 create mode 100644 classification_output/02/other/92957605 create mode 100644 classification_output/02/other/95154278 create mode 100644 classification_output/02/other/99674399 (limited to 'classification_output/02/other') diff --git a/classification_output/02/other/02364653 b/classification_output/02/other/02364653 new file mode 100644 index 00000000..00b20529 --- /dev/null +++ b/classification_output/02/other/02364653 @@ -0,0 +1,364 @@ +other: 0.956 +semantic: 0.942 +instruction: 0.927 +boot: 0.925 +mistranslation: 0.912 + +[Qemu-devel] [BUG] Inappropriate size of target_sigset_t + +Hello, Peter, Laurent, + +While working on another problem yesterday, I think I discovered a +long-standing bug in QEMU Linux user mode: our target_sigset_t structure is +eight times smaller as it should be! + +In this code segment from syscalls_def.h: + +#ifdef TARGET_MIPS +#define TARGET_NSIG 128 +#else +#define TARGET_NSIG 64 +#endif +#define TARGET_NSIG_BPW TARGET_ABI_BITS +#define TARGET_NSIG_WORDS (TARGET_NSIG / TARGET_NSIG_BPW) + +typedef struct { + abi_ulong sig[TARGET_NSIG_WORDS]; +} target_sigset_t; + +... TARGET_ABI_BITS should be replaced by eight times smaller constant (in +fact, semantically, we need TARGET_ABI_BYTES, but it is not defined) (what is +needed is actually "a byte per signal" in target_sigset_t, and we allow "a bit +per signal"). + +All this probably sounds to you like something impossible, since this code is +in QEMU "since forever", but I checked everything, and the bug seems real. I +wish you can prove me wrong. + +I just wanted to let you know about this, given the sensitive timing of current +softfreeze, and the fact that I won't be able to do more investigation on this +in coming weeks, since I am busy with other tasks, but perhaps you can analyze +and do something which you consider appropriate. + +Yours, +Aleksandar + +Le 03/07/2019 à 21:46, Aleksandar Markovic a écrit : +> +Hello, Peter, Laurent, +> +> +While working on another problem yesterday, I think I discovered a +> +long-standing bug in QEMU Linux user mode: our target_sigset_t structure is +> +eight times smaller as it should be! +> +> +In this code segment from syscalls_def.h: +> +> +#ifdef TARGET_MIPS +> +#define TARGET_NSIG 128 +> +#else +> +#define TARGET_NSIG 64 +> +#endif +> +#define TARGET_NSIG_BPW TARGET_ABI_BITS +> +#define TARGET_NSIG_WORDS (TARGET_NSIG / TARGET_NSIG_BPW) +> +> +typedef struct { +> +abi_ulong sig[TARGET_NSIG_WORDS]; +> +} target_sigset_t; +> +> +... TARGET_ABI_BITS should be replaced by eight times smaller constant (in +> +fact, semantically, we need TARGET_ABI_BYTES, but it is not defined) (what is +> +needed is actually "a byte per signal" in target_sigset_t, and we allow "a +> +bit per signal"). +TARGET_NSIG is divided by TARGET_ABI_BITS which gives you the number of +abi_ulong words we need in target_sigset_t. + +> +All this probably sounds to you like something impossible, since this code is +> +in QEMU "since forever", but I checked everything, and the bug seems real. I +> +wish you can prove me wrong. +> +> +I just wanted to let you know about this, given the sensitive timing of +> +current softfreeze, and the fact that I won't be able to do more +> +investigation on this in coming weeks, since I am busy with other tasks, but +> +perhaps you can analyze and do something which you consider appropriate. +If I compare with kernel, it looks good: + +In Linux: + + arch/mips/include/uapi/asm/signal.h + + #define _NSIG 128 + #define _NSIG_BPW (sizeof(unsigned long) * 8) + #define _NSIG_WORDS (_NSIG / _NSIG_BPW) + + typedef struct { + unsigned long sig[_NSIG_WORDS]; + } sigset_t; + +_NSIG_BPW is 8 * 8 = 64 on MIPS64 or 4 * 8 = 32 on MIPS + +In QEMU: + +TARGET_NSIG_BPW is TARGET_ABI_BITS which is TARGET_LONG_BITS which is +64 on MIPS64 and 32 on MIPS. + +I think there is no problem. + +Thanks, +Laurent + +From: Laurent Vivier +> +If I compare with kernel, it looks good: +> +... +> +I think there is no problem. +Sure, thanks for such fast response - again, I am glad if you are right. +However, for some reason, glibc (and musl too) define sigset_t differently than +kernel. Please take a look. I am not sure if this is covered fine in our code. + +Yours, +Aleksandar + +> +Thanks, +> +Laurent + +On Wed, 3 Jul 2019 at 21:20, Aleksandar Markovic wrote: +> +> +From: Laurent Vivier +> +> If I compare with kernel, it looks good: +> +> ... +> +> I think there is no problem. +> +> +Sure, thanks for such fast response - again, I am glad if you are right. +> +However, for some reason, glibc (and musl too) define sigset_t differently +> +than kernel. Please take a look. I am not sure if this is covered fine in our +> +code. +Yeah, the libc definitions of sigset_t don't match the +kernel ones (this is for obscure historical reasons IIRC). +We're providing implementations of the target +syscall interface, so our target_sigset_t should be the +target kernel's version (and the target libc's version doesn't +matter to us). On the other hand we will be using the +host libc version, I think, so a little caution is required +and it's possible we have some bugs in our code. + +thanks +-- PMM + +> +From: Peter Maydell +> +> +On Wed, 3 Jul 2019 at 21:20, Aleksandar Markovic wrote: +> +> +> +> From: Laurent Vivier +> +> > If I compare with kernel, it looks good: +> +> > ... +> +> > I think there is no problem. +> +> +> +> Sure, thanks for such fast response - again, I am glad if you are right. +> +> However, for some reason, glibc (and musl too) define sigset_t differently +> +> than kernel. Please take a look. I am not sure if this is covered fine in +> +> our code. +> +> +Yeah, the libc definitions of sigset_t don't match the +> +kernel ones (this is for obscure historical reasons IIRC). +> +We're providing implementations of the target +> +syscall interface, so our target_sigset_t should be the +> +target kernel's version (and the target libc's version doesn't +> +matter to us). On the other hand we will be using the +> +host libc version, I think, so a little caution is required +> +and it's possible we have some bugs in our code. +OK, I gather than this is not something that requires our immediate attention +(for 4.1), but we can analyze it later on. + +Thanks for response!! + +Sincerely, +Aleksandar + +> +thanks +> +-- PMM + +Le 03/07/2019 à 22:28, Peter Maydell a écrit : +> +On Wed, 3 Jul 2019 at 21:20, Aleksandar Markovic wrote: +> +> +> +> From: Laurent Vivier +> +>> If I compare with kernel, it looks good: +> +>> ... +> +>> I think there is no problem. +> +> +> +> Sure, thanks for such fast response - again, I am glad if you are right. +> +> However, for some reason, glibc (and musl too) define sigset_t differently +> +> than kernel. Please take a look. I am not sure if this is covered fine in +> +> our code. +> +> +Yeah, the libc definitions of sigset_t don't match the +> +kernel ones (this is for obscure historical reasons IIRC). +> +We're providing implementations of the target +> +syscall interface, so our target_sigset_t should be the +> +target kernel's version (and the target libc's version doesn't +> +matter to us). On the other hand we will be using the +> +host libc version, I think, so a little caution is required +> +and it's possible we have some bugs in our code. +It's why we need host_to_target_sigset_internal() and +target_to_host_sigset_internal() that translates bits and bytes between +guest kernel interface and host libc interface. + +void host_to_target_sigset_internal(target_sigset_t *d, + const sigset_t *s) +{ + int i; + target_sigemptyset(d); + for (i = 1; i <= TARGET_NSIG; i++) { + if (sigismember(s, i)) { + target_sigaddset(d, host_to_target_signal(i)); + } + } +} + +void target_to_host_sigset_internal(sigset_t *d, + const target_sigset_t *s) +{ + int i; + sigemptyset(d); + for (i = 1; i <= TARGET_NSIG; i++) { + if (target_sigismember(s, i)) { + sigaddset(d, target_to_host_signal(i)); + } + } +} + +Thanks, +Laurent + +Hi Aleksandar, + +On Wed, Jul 3, 2019 at 12:48 PM Aleksandar Markovic + wrote: +> +#define TARGET_NSIG_BPW TARGET_ABI_BITS +> +#define TARGET_NSIG_WORDS (TARGET_NSIG / TARGET_NSIG_BPW) +> +> +typedef struct { +> +abi_ulong sig[TARGET_NSIG_WORDS]; +> +} target_sigset_t; +> +> +... TARGET_ABI_BITS should be replaced by eight times smaller constant (in +> +fact, +> +semantically, we need TARGET_ABI_BYTES, but it is not defined) (what is needed +> +is actually "a byte per signal" in target_sigset_t, and we allow "a bit per +> +signal"). +Why do we need a byte per target signal, if the functions in linux-user/signal.c +operate with bits? + +-- +Thanks. +-- Max + +> +Why do we need a byte per target signal, if the functions in +> +linux-user/signal.c +> +operate with bits? +Max, + +I did not base my findings on code analysis, but on dumping size/offsets of +elements of some structures, as they are emulated in QEMU, and in real systems. +So, I can't really answer your question. + +Yours, +Aleksandar + +> +-- +> +Thanks. +> +-- Max + diff --git a/classification_output/02/other/02572177 b/classification_output/02/other/02572177 new file mode 100644 index 00000000..f21e4bbc --- /dev/null +++ b/classification_output/02/other/02572177 @@ -0,0 +1,422 @@ +other: 0.869 +instruction: 0.794 +semantic: 0.770 +mistranslation: 0.693 +boot: 0.658 + +[Qemu-devel] 答复: Re: [BUG]COLO failover hang + +hi. + + +I test the git qemu master have the same problem. + + +(gdb) bt + + +#0 qio_channel_socket_readv (ioc=0x7f65911b4e50, iov=0x7f64ef3fd880, niov=1, +fds=0x0, nfds=0x0, errp=0x0) at io/channel-socket.c:461 + + +#1 0x00007f658e4aa0c2 in qio_channel_read (address@hidden, address@hidden "", +address@hidden, address@hidden) at io/channel.c:114 + + +#2 0x00007f658e3ea990 in channel_get_buffer (opaque=<optimized out>, +buf=0x7f65907cb838 "", pos=<optimized out>, size=32768) at +migration/qemu-file-channel.c:78 + + +#3 0x00007f658e3e97fc in qemu_fill_buffer (f=0x7f65907cb800) at +migration/qemu-file.c:295 + + +#4 0x00007f658e3ea2e1 in qemu_peek_byte (address@hidden, address@hidden) at +migration/qemu-file.c:555 + + +#5 0x00007f658e3ea34b in qemu_get_byte (address@hidden) at +migration/qemu-file.c:568 + + +#6 0x00007f658e3ea552 in qemu_get_be32 (address@hidden) at +migration/qemu-file.c:648 + + +#7 0x00007f658e3e66e5 in colo_receive_message (f=0x7f65907cb800, +address@hidden) at migration/colo.c:244 + + +#8 0x00007f658e3e681e in colo_receive_check_message (f=<optimized out>, +address@hidden, address@hidden) + + + at migration/colo.c:264 + + +#9 0x00007f658e3e740e in colo_process_incoming_thread (opaque=0x7f658eb30360 +<mis_current.31286>) at migration/colo.c:577 + + +#10 0x00007f658be09df3 in start_thread () from /lib64/libpthread.so.0 + + +#11 0x00007f65881983ed in clone () from /lib64/libc.so.6 + + +(gdb) p ioc->name + + +$2 = 0x7f658ff7d5c0 "migration-socket-incoming" + + +(gdb) p ioc->features Do not support QIO_CHANNEL_FEATURE_SHUTDOWN + + +$3 = 0 + + + + + +(gdb) bt + + +#0 socket_accept_incoming_migration (ioc=0x7fdcceeafa90, condition=G_IO_IN, +opaque=0x7fdcceeafa90) at migration/socket.c:137 + + +#1 0x00007fdcc6966350 in g_main_dispatch (context=<optimized out>) at +gmain.c:3054 + + +#2 g_main_context_dispatch (context=<optimized out>, address@hidden) at +gmain.c:3630 + + +#3 0x00007fdccb8a6dcc in glib_pollfds_poll () at util/main-loop.c:213 + + +#4 os_host_main_loop_wait (timeout=<optimized out>) at util/main-loop.c:258 + + +#5 main_loop_wait (address@hidden) at util/main-loop.c:506 + + +#6 0x00007fdccb526187 in main_loop () at vl.c:1898 + + +#7 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at +vl.c:4709 + + +(gdb) p ioc->features + + +$1 = 6 + + +(gdb) p ioc->name + + +$2 = 0x7fdcce1b1ab0 "migration-socket-listener" + + + + + +May be socket_accept_incoming_migration should call +qio_channel_set_feature(ioc, QIO_CHANNEL_FEATURE_SHUTDOWN)?? + + + + + +thank you. + + + + + + + + + + + + + + + +原始邮件 + + + +发件人: address@hidden +收件人:王广10165992 address@hidden +抄送人: address@hidden address@hidden +日 期 :2017å¹´03月16日 14:46 +主 题 :Re: [Qemu-devel] COLO failover hang + + + + + + + +On 03/15/2017 05:06 PM, wangguang wrote: +> am testing QEMU COLO feature described here [QEMU +> Wiki]( +http://wiki.qemu-project.org/Features/COLO +). +> +> When the Primary Node panic,the Secondary Node qemu hang. +> hang at recvmsg in qio_channel_socket_readv. +> And I run { 'execute': 'nbd-server-stop' } and { "execute": +> "x-colo-lost-heartbeat" } in Secondary VM's +> monitor,the Secondary Node qemu still hang at recvmsg . +> +> I found that the colo in qemu is not complete yet. +> Do the colo have any plan for development? + +Yes, We are developing. You can see some of patch we pushing. + +> Has anyone ever run it successfully? Any help is appreciated! + +In our internal version can run it successfully, +The failover detail you can ask Zhanghailiang for help. +Next time if you have some question about COLO, +please cc me and zhanghailiang address@hidden + + +Thanks +Zhang Chen + + +> +> +> +> centos7.2+qemu2.7.50 +> (gdb) bt +> #0 0x00007f3e00cc86ad in recvmsg () from /lib64/libpthread.so.0 +> #1 0x00007f3e0332b738 in qio_channel_socket_readv (ioc=<optimized out>, +> iov=<optimized out>, niov=<optimized out>, fds=0x0, nfds=0x0, errp=0x0) at +> io/channel-socket.c:497 +> #2 0x00007f3e03329472 in qio_channel_read (address@hidden, +> address@hidden "", address@hidden, +> address@hidden) at io/channel.c:97 +> #3 0x00007f3e032750e0 in channel_get_buffer (opaque=<optimized out>, +> buf=0x7f3e05910f38 "", pos=<optimized out>, size=32768) at +> migration/qemu-file-channel.c:78 +> #4 0x00007f3e0327412c in qemu_fill_buffer (f=0x7f3e05910f00) at +> migration/qemu-file.c:257 +> #5 0x00007f3e03274a41 in qemu_peek_byte (address@hidden, +> address@hidden) at migration/qemu-file.c:510 +> #6 0x00007f3e03274aab in qemu_get_byte (address@hidden) at +> migration/qemu-file.c:523 +> #7 0x00007f3e03274cb2 in qemu_get_be32 (address@hidden) at +> migration/qemu-file.c:603 +> #8 0x00007f3e03271735 in colo_receive_message (f=0x7f3e05910f00, +> address@hidden) at migration/colo.c:215 +> #9 0x00007f3e0327250d in colo_wait_handle_message (errp=0x7f3d62bfaa48, +> checkpoint_request=<synthetic pointer>, f=<optimized out>) at +> migration/colo.c:546 +> #10 colo_process_incoming_thread (opaque=0x7f3e067245e0) at +> migration/colo.c:649 +> #11 0x00007f3e00cc1df3 in start_thread () from /lib64/libpthread.so.0 +> #12 0x00007f3dfc9c03ed in clone () from /lib64/libc.so.6 +> +> +> +> +> +> -- +> View this message in context: +http://qemu.11.n7.nabble.com/COLO-failover-hang-tp473250.html +> Sent from the Developer mailing list archive at Nabble.com. +> +> +> +> + +-- +Thanks +Zhang Chen + +Hi,Wang. + +You can test this branch: +https://github.com/coloft/qemu/tree/colo-v5.1-developing-COLO-frame-v21-with-shared-disk +and please follow wiki ensure your own configuration correctly. +http://wiki.qemu-project.org/Features/COLO +Thanks + +Zhang Chen + + +On 03/21/2017 03:27 PM, address@hidden wrote: +hi. + +I test the git qemu master have the same problem. + +(gdb) bt +#0 qio_channel_socket_readv (ioc=0x7f65911b4e50, iov=0x7f64ef3fd880, +niov=1, fds=0x0, nfds=0x0, errp=0x0) at io/channel-socket.c:461 +#1 0x00007f658e4aa0c2 in qio_channel_read +(address@hidden, address@hidden "", +address@hidden, address@hidden) at io/channel.c:114 +#2 0x00007f658e3ea990 in channel_get_buffer (opaque=<optimized out>, +buf=0x7f65907cb838 "", pos=<optimized out>, size=32768) at +migration/qemu-file-channel.c:78 +#3 0x00007f658e3e97fc in qemu_fill_buffer (f=0x7f65907cb800) at +migration/qemu-file.c:295 +#4 0x00007f658e3ea2e1 in qemu_peek_byte (address@hidden, +address@hidden) at migration/qemu-file.c:555 +#5 0x00007f658e3ea34b in qemu_get_byte (address@hidden) at +migration/qemu-file.c:568 +#6 0x00007f658e3ea552 in qemu_get_be32 (address@hidden) at +migration/qemu-file.c:648 +#7 0x00007f658e3e66e5 in colo_receive_message (f=0x7f65907cb800, +address@hidden) at migration/colo.c:244 +#8 0x00007f658e3e681e in colo_receive_check_message (f=<optimized +out>, address@hidden, +address@hidden) +at migration/colo.c:264 +#9 0x00007f658e3e740e in colo_process_incoming_thread +(opaque=0x7f658eb30360 <mis_current.31286>) at migration/colo.c:577 +#10 0x00007f658be09df3 in start_thread () from /lib64/libpthread.so.0 + +#11 0x00007f65881983ed in clone () from /lib64/libc.so.6 + +(gdb) p ioc->name + +$2 = 0x7f658ff7d5c0 "migration-socket-incoming" + +(gdb) p ioc->features Do not support QIO_CHANNEL_FEATURE_SHUTDOWN + +$3 = 0 + + +(gdb) bt +#0 socket_accept_incoming_migration (ioc=0x7fdcceeafa90, +condition=G_IO_IN, opaque=0x7fdcceeafa90) at migration/socket.c:137 +#1 0x00007fdcc6966350 in g_main_dispatch (context=<optimized out>) at +gmain.c:3054 +#2 g_main_context_dispatch (context=<optimized out>, +address@hidden) at gmain.c:3630 +#3 0x00007fdccb8a6dcc in glib_pollfds_poll () at util/main-loop.c:213 +#4 os_host_main_loop_wait (timeout=<optimized out>) at +util/main-loop.c:258 +#5 main_loop_wait (address@hidden) at +util/main-loop.c:506 +#6 0x00007fdccb526187 in main_loop () at vl.c:1898 +#7 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized +out>) at vl.c:4709 +(gdb) p ioc->features + +$1 = 6 + +(gdb) p ioc->name + +$2 = 0x7fdcce1b1ab0 "migration-socket-listener" +May be socket_accept_incoming_migration should +call qio_channel_set_feature(ioc, QIO_CHANNEL_FEATURE_SHUTDOWN)?? +thank you. + + + + + +原始邮件 +address@hidden; +*收件人:*王广10165992;address@hidden; +address@hidden;address@hidden; +*日 期 :*2017å¹´03月16日 14:46 +*主 题 :**Re: [Qemu-devel] COLO failover hang* + + + + +On 03/15/2017 05:06 PM, wangguang wrote: +> am testing QEMU COLO feature described here [QEMU +> Wiki]( +http://wiki.qemu-project.org/Features/COLO +). +> +> When the Primary Node panic,the Secondary Node qemu hang. +> hang at recvmsg in qio_channel_socket_readv. +> And I run { 'execute': 'nbd-server-stop' } and { "execute": +> "x-colo-lost-heartbeat" } in Secondary VM's +> monitor,the Secondary Node qemu still hang at recvmsg . +> +> I found that the colo in qemu is not complete yet. +> Do the colo have any plan for development? + +Yes, We are developing. You can see some of patch we pushing. + +> Has anyone ever run it successfully? Any help is appreciated! + +In our internal version can run it successfully, +The failover detail you can ask Zhanghailiang for help. +Next time if you have some question about COLO, +please cc me and zhanghailiang address@hidden + + +Thanks +Zhang Chen + + +> +> +> +> centos7.2+qemu2.7.50 +> (gdb) bt +> #0 0x00007f3e00cc86ad in recvmsg () from /lib64/libpthread.so.0 +> #1 0x00007f3e0332b738 in qio_channel_socket_readv (ioc=<optimized out>, +> iov=<optimized out>, niov=<optimized out>, fds=0x0, nfds=0x0, errp=0x0) at +> io/channel-socket.c:497 +> #2 0x00007f3e03329472 in qio_channel_read (address@hidden, +> address@hidden "", address@hidden, +> address@hidden) at io/channel.c:97 +> #3 0x00007f3e032750e0 in channel_get_buffer (opaque=<optimized out>, +> buf=0x7f3e05910f38 "", pos=<optimized out>, size=32768) at +> migration/qemu-file-channel.c:78 +> #4 0x00007f3e0327412c in qemu_fill_buffer (f=0x7f3e05910f00) at +> migration/qemu-file.c:257 +> #5 0x00007f3e03274a41 in qemu_peek_byte (address@hidden, +> address@hidden) at migration/qemu-file.c:510 +> #6 0x00007f3e03274aab in qemu_get_byte (address@hidden) at +> migration/qemu-file.c:523 +> #7 0x00007f3e03274cb2 in qemu_get_be32 (address@hidden) at +> migration/qemu-file.c:603 +> #8 0x00007f3e03271735 in colo_receive_message (f=0x7f3e05910f00, +> address@hidden) at migration/colo.c:215 +> #9 0x00007f3e0327250d in colo_wait_handle_message (errp=0x7f3d62bfaa48, +> checkpoint_request=<synthetic pointer>, f=<optimized out>) at +> migration/colo.c:546 +> #10 colo_process_incoming_thread (opaque=0x7f3e067245e0) at +> migration/colo.c:649 +> #11 0x00007f3e00cc1df3 in start_thread () from /lib64/libpthread.so.0 +> #12 0x00007f3dfc9c03ed in clone () from /lib64/libc.so.6 +> +> +> +> +> +> -- +> View this message in context: +http://qemu.11.n7.nabble.com/COLO-failover-hang-tp473250.html +> Sent from the Developer mailing list archive at Nabble.com. +> +> +> +> + +-- +Thanks +Zhang Chen +-- +Thanks +Zhang Chen + diff --git a/classification_output/02/other/04472277 b/classification_output/02/other/04472277 new file mode 100644 index 00000000..d6400525 --- /dev/null +++ b/classification_output/02/other/04472277 @@ -0,0 +1,577 @@ +other: 0.846 +instruction: 0.845 +boot: 0.831 +mistranslation: 0.817 +semantic: 0.815 + +[BUG][KVM_SET_USER_MEMORY_REGION] KVM_SET_USER_MEMORY_REGION failed + +Hi all, +I start a VM in openstack, and openstack use libvirt to start qemu VM, but now log show this ERROR. +Is there any one know this? +The ERROR log from /var/log/libvirt/qemu/instance-0000000e.log +``` +2023-03-14T10:09:17.674114Z qemu-system-x86_64: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=4, start=0xfffffffffe000000, size=0x2000: Invalid argument +kvm_set_phys_mem: error registering slot: Invalid argument +2023-03-14 10:09:18.198+0000: shutting down, reason=crashed +``` +The xml file +``` +root@c1c2:~# cat /etc/libvirt/qemu/instance-0000000e.xml + + +  instance-0000000e +  ff91d2dc-69a1-43ef-abde-c9e4e9a0305b +  +    +      +      provider-instance +      2023-03-14 10:09:13 +      +        64 +        1 +        0 +        0 +        1 +      +      +        admin +        admin +      +      +      +        +          +        +      +    +  +  65536 +  65536 +  1 +  +    +      OpenStack Foundation +      OpenStack Nova +      25.1.0 +      ff91d2dc-69a1-43ef-abde-c9e4e9a0305b +      ff91d2dc-69a1-43ef-abde-c9e4e9a0305b +      Virtual Machine +    +  +  +    hvm +    +    +  +  +    +    +    +  +  +    +  +  +    +    +    +  +  destroy +  restart +  destroy +  +    /usr/bin/qemu-system-x86_64 +    +      +      +      +     
+    +    +     
+    +    +    +      +      +       
+      +     
+    +    +      +      +        +      +    +    +      +      +    +    +     
+    +    +    +    +      +    +  Â