From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAJHC-00022r-KD for qemu-devel@nongnu.org; Tue, 07 Jun 2016 11:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bAJH6-0005Dx-Il for qemu-devel@nongnu.org; Tue, 07 Jun 2016 11:50:45 -0400 Received: from indium.canonical.com ([91.189.90.7]:36219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bAJH6-0005Dt-38 for qemu-devel@nongnu.org; Tue, 07 Jun 2016 11:50:40 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bAJH5-0004x5-4W for ; Tue, 07 Jun 2016 15:50:39 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 09C782E80CA for ; Tue, 7 Jun 2016 15:50:39 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 07 Jun 2016 15:43:26 -0000 From: Serge Hallyn <1589923@bugs.launchpad.net> Reply-To: Bug 1589923 <1589923@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160607104531.2663.45779.malonedeb@chaenomeles.canonical.com> Message-Id: <20160607154328.31341.44310.launchpad@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Changed in: qemu (Ubuntu) Status: New =3D> Triaged ** Changed in: qemu (Ubuntu) Importance: Undecided =3D> High -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1589923 Title: https websockets not working in 2.5 or 2.6 Status in QEMU: New Status in qemu package in Ubuntu: Triaged Status in Arch Linux: New Bug description: % gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509= =3D/etc/pki/libvirt-le,websocket=3D5701 = = GNU gdb (GDB) 7.11 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./x86_64-softmmu/qemu-system-x86_64...done. (gdb) run Starting program: /home/ben/qemu/qemu-2.6.0/x86_64-softmmu/qemu-system-x8= 6_64 -vnc 0.0.0.0:1,tls,x509=3D/etc/pki/libvirt-le,websocket=3D5701 [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffe16f6700 (LWP 12767)] [New Thread 0x7fffde2d4700 (LWP 12768)] [New Thread 0x7fffd3fff700 (LWP 12769)] Initializing VNC server with x509 no auth Client sioc=3D0x55555874d6b0 ws=3D1 auth=3D1 subauth=3D0 New client on socket 0x55555874d6b0 vnc_set_share_mode/0x55555874d6b0: undefined -> connecting TLS Websocket connection required Start TLS WS handshake process Handshake failed TLS handshake failed: The TLS connection was non-properl= y terminated. Closing down client sock: protocol error vnc_set_share_mode/0x55555779f510: connecting -> disconnected Client sioc=3D0x55555873c6a0 ws=3D1 auth=3D1 subauth=3D0 New client on socket 0x55555873c6a0 vnc_set_share_mode/0x55555873c6a0: undefined -> connecting TLS Websocket connection required Start TLS WS handshake process TLS handshake complete, starting websocket handshake Websocket negotiate starting Websock handshake complete, starting VNC protocol Write Plain: Pending output 0x555557b91c60 size 4096 offset 12. Wait SSF 0 Wrote wire 0x555557b91c60 12 -> 12 Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. 0x0000000000000001 in ?? () (gdb) thread apply all bt Thread 4 (Thread 0x7fffd3fff700 (LWP 12769)): #0 0x00007fffef35a09f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib= /libpthread.so.0 #1 0x0000555555a20bd9 in qemu_cond_wait (cond=3Dcond@entry=3D0x555558726= 7e0, = mutex=3Dmutex@entry=3D0x555558726810) at util/qemu-thread-posix.c:123 #2 0x00005555559770ab in vnc_worker_thread_loop (queue=3Dqueue@entry=3D0= x5555587267e0) at ui/vnc-jobs.c:228 #3 0x00005555559775e8 in vnc_worker_thread (arg=3D0x5555587267e0) at ui/= vnc-jobs.c:335 #4 0x00007fffef354474 in start_thread () from /usr/lib/libpthread.so.0 #5 0x00007fffea43c69d in clone () from /usr/lib/libc.so.6 Thread 3 (Thread 0x7fffde2d4700 (LWP 12768)): #0 0x00007fffef35a09f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib= /libpthread.so.0 #1 0x0000555555a20bd9 in qemu_cond_wait (cond=3D, = ---Type to continue, or q to quit--- emu_global_mutex>) at util/qemu-thread-posix.c:123 #2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=3D0x5555564ee840) a= t /home/ben/qemu/qemu-2.6.0/cpus.c:1015 #3 qemu_tcg_cpu_thread_fn (arg=3D) at /home/ben/qemu/qemu= -2.6.0/cpus.c:1161 #4 0x00007fffef354474 in start_thread () from /usr/lib/libpthread.so.0 #5 0x00007fffea43c69d in clone () from /usr/lib/libc.so.6 Thread 2 (Thread 0x7fffe16f6700 (LWP 12767)): #0 0x00007fffea438229 in syscall () from /usr/lib/libc.so.6 #1 0x0000555555a20ee8 in futex_wait (val=3D, ev=3D) at util/qemu-thread-posix.c:292 #2 qemu_event_wait (ev=3Dev@entry=3D0x55555641ece4 ) at util/qemu-thread-posix.c:399 #3 0x0000555555a2f2ae in call_rcu_thread (opaque=3D) at u= til/rcu.c:250 #4 0x00007fffef354474 in start_thread () from /usr/lib/libpthread.so.0 #5 0x00007fffea43c69d in clone () from /usr/lib/libc.so.6 Thread 1 (Thread 0x7ffff7f5bb00 (LWP 12763)): #0 0x0000000000000001 in ?? () #1 0x00005555559efb53 in qio_task_free (task=3D0x555558212140) at io/tas= k.c:58 #2 0x00005555559efd89 in qio_task_complete (task=3Dtask@entry=3D0x555558= 212140) at io/task.c:145 #3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=3D0x555= 55873c6a0, condition=3D, = user_data=3D0x555558212140) at io/channel-websock.c:289 #4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libgli= b-2.0.so.0 #5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213 #6 os_host_main_loop_wait (timeout=3D) at main-loop.c:258 #7 main_loop_wait (nonblocking=3D) at main-loop.c:506 #8 0x00005555556e1fbd in main_loop () at vl.c:1934 #9 main (argc=3D, argv=3D, envp=3D) at vl.c:4656 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions