* [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6
@ 2016-06-07 10:45 Ben Aitchison
2016-06-07 10:56 ` [Qemu-devel] [Bug 1589923] " Daniel Berrange
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: Ben Aitchison @ 2016-06-07 10:45 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
** Affects: qemu
Importance: Undecided
Status: New
** Affects: ubuntu
Importance: Undecided
Status: New
** Affects: archlinux
Importance: Undecided
Status: New
** Also affects: ubuntu
Importance: Undecided
Status: New
** Also affects: archlinux
Importance: Undecided
Status: New
--
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 Ubuntu:
New
Status in Arch Linux:
New
Bug description:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
@ 2016-06-07 10:56 ` Daniel Berrange
2016-06-07 15:13 ` Paul White
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Daniel Berrange @ 2016-06-07 10:56 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Assignee: (unassigned) => Daniel Berrange (berrange)
--
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 Ubuntu:
New
Status in Arch Linux:
New
Bug description:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
2016-06-07 10:56 ` [Qemu-devel] [Bug 1589923] " Daniel Berrange
@ 2016-06-07 15:13 ` Paul White
2016-06-07 15:26 ` Daniel Berrange
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Paul White @ 2016-06-07 15:13 UTC (permalink / raw)
To: qemu-devel
** Package changed: ubuntu => qemu (Ubuntu)
--
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:
New
Status in Arch Linux:
New
Bug description:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
2016-06-07 10:56 ` [Qemu-devel] [Bug 1589923] " Daniel Berrange
2016-06-07 15:13 ` Paul White
@ 2016-06-07 15:26 ` Daniel Berrange
2016-06-07 15:43 ` Serge Hallyn
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Daniel Berrange @ 2016-06-07 15:26 UTC (permalink / raw)
To: qemu-devel
The crash in 2.6 is fixed by
https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg01885.html
The dropped connection in 2.5 is fixed by
https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg01884.html
--
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:
New
Status in Arch Linux:
New
Bug description:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (2 preceding siblings ...)
2016-06-07 15:26 ` Daniel Berrange
@ 2016-06-07 15:43 ` Serge Hallyn
2016-06-08 13:19 ` Daniel Berrange
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Serge Hallyn @ 2016-06-07 15:43 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu (Ubuntu)
Status: New => Triaged
** Changed in: qemu (Ubuntu)
Importance: Undecided => 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=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (3 preceding siblings ...)
2016-06-07 15:43 ` Serge Hallyn
@ 2016-06-08 13:19 ` Daniel Berrange
2016-09-02 21:39 ` T. Huth
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Daniel Berrange @ 2016-06-08 13:19 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: New => Confirmed
--
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:
Confirmed
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=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (4 preceding siblings ...)
2016-06-08 13:19 ` Daniel Berrange
@ 2016-09-02 21:39 ` T. Huth
2016-09-14 15:00 ` Daniel Berrange
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: T. Huth @ 2016-09-02 21:39 UTC (permalink / raw)
To: qemu-devel
Fix has been included in QEMU v2.7.0:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=bc35d51077b33e68a0
--
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:
Confirmed
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=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (5 preceding siblings ...)
2016-09-02 21:39 ` T. Huth
@ 2016-09-14 15:00 ` Daniel Berrange
2016-09-14 19:44 ` T. Huth
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Daniel Berrange @ 2016-09-14 15:00 UTC (permalink / raw)
To: qemu-devel
Fixed in stable-2.6 branch in
commit 510531ea442a02048b1837fcf574d03559b38c9e
Author: Daniel P. Berrange <berrange@redhat.com>
Date: Tue Jun 7 12:27:51 2016 +0100
io: remove mistaken call to object_ref on QTask
The QTask struct is just a standalone struct, not a QOM Object,
so calling object_ref() on it is not appropriate. This results
in mangling the 'destroy' field in the QTask struct, causing
the later call to qtask_free() to try to call the function
at address 0x1, with predictably segfault happy results.
There is in fact no need for ref counting with QTask, as the
call to qtask_abort() or qtask_complete() will automatically
free associated memory.
This fixes the crash shown in
https://bugs.launchpad.net/qemu/+bug/1589923
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit bc35d51077b33e68a0ab10a057f352747214223f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
--
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:
Confirmed
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=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (6 preceding siblings ...)
2016-09-14 15:00 ` Daniel Berrange
@ 2016-09-14 19:44 ` T. Huth
2017-06-06 23:38 ` ChristianEhrhardt
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: T. Huth @ 2016-09-14 19:44 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu
Status: Confirmed => Fix Released
--
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:
Fix Released
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=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (7 preceding siblings ...)
2016-09-14 19:44 ` T. Huth
@ 2017-06-06 23:38 ` ChristianEhrhardt
2017-09-06 13:03 ` ChristianEhrhardt
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ChristianEhrhardt @ 2017-06-06 23:38 UTC (permalink / raw)
To: qemu-devel
Fixed in >=2.7 and thereby >=Zesty.
Needs to be considered for SRUs now.
** Also affects: qemu (Ubuntu Yakkety)
Importance: Undecided
Status: New
** Also affects: qemu (Ubuntu Xenial)
Importance: Undecided
Status: New
** Changed in: qemu (Ubuntu)
Status: Triaged => Fix Released
** Changed in: qemu (Ubuntu Xenial)
Status: New => Triaged
** Changed in: qemu (Ubuntu Yakkety)
Status: New => Triaged
** Tags added: server-next
--
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:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Xenial:
Triaged
Status in qemu source package in Yakkety:
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=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (8 preceding siblings ...)
2017-06-06 23:38 ` ChristianEhrhardt
@ 2017-09-06 13:03 ` ChristianEhrhardt
2017-09-06 13:50 ` ChristianEhrhardt
2020-08-31 12:51 ` Christian Ehrhardt
11 siblings, 0 replies; 13+ messages in thread
From: ChristianEhrhardt @ 2017-09-06 13:03 UTC (permalink / raw)
To: qemu-devel
** Changed in: qemu (Ubuntu Yakkety)
Status: Triaged => Won't Fix
--
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:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Xenial:
Triaged
Status in qemu source package in Yakkety:
Won't Fix
Status in Arch Linux:
New
Bug description:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (9 preceding siblings ...)
2017-09-06 13:03 ` ChristianEhrhardt
@ 2017-09-06 13:50 ` ChristianEhrhardt
2020-08-31 12:51 ` Christian Ehrhardt
11 siblings, 0 replies; 13+ messages in thread
From: ChristianEhrhardt @ 2017-09-06 13:50 UTC (permalink / raw)
To: qemu-devel
I added this to my list a while ago but now closed out the immediate tasks for artful, so I'm coming back here.
Writing repro steps which will be needed for the SRU.
# Brute force create dummy keys for this
openssl req -out ca.pem -new -x509
openssl genrsa -out server.key 1024
openssl req -key server.key -new -out server.req
echo 00 > file.srl
openssl x509 -req -in server.req -CA ca.pem -CAkey privkey.pem -CAserial file.srl -out server-cert.pem
openssl genrsa -out client.key 1024
openssl req -key client.key -new -out client.req
openssl x509 -req -in client.req -CA ca.pem -CAkey privkey.pem -CAserial file.srl -out client-cert.pem
ln -s ca.pem ca-cert.pem
ln -s server.key server-key.pem
# run qemu with x509 websocket
/usr/bin/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=$(pwd),websocket=5707
It is not crashing and I can even connect with krdc (likely also other
clients) against it without breaking.
But then I'd think your command above for the crash was the one for the
crash in 2.6 which was yakkety.
But what is left to fix is the dropped connection [1] in 2.5 (Xenial).
I tried to read a better testcase out of that mail thread but failed, if you'd have a better setup description to still trigger this blocked handshake that eventually fails once the signal sets data - that would be great.
The actual report I found [2] is actually this bug bridges onto the ML so no more info there for me.
[1]: https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg01884.html
[2]: https://lists.gnu.org/archive/html/qemu-devel/2016-06/msg01917.html
** Changed in: qemu (Ubuntu Xenial)
Status: Triaged => Incomplete
--
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:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Xenial:
Incomplete
Status in qemu source package in Yakkety:
Won't Fix
Status in Arch Linux:
New
Bug description:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 1589923] Re: https websockets not working in 2.5 or 2.6
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
` (10 preceding siblings ...)
2017-09-06 13:50 ` ChristianEhrhardt
@ 2020-08-31 12:51 ` Christian Ehrhardt
11 siblings, 0 replies; 13+ messages in thread
From: Christian Ehrhardt @ 2020-08-31 12:51 UTC (permalink / raw)
To: qemu-devel
** Tags removed: server-next
--
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:
Fix Released
Status in qemu package in Ubuntu:
Fix Released
Status in qemu source package in Xenial:
Incomplete
Status in qemu source package in Yakkety:
Won't Fix
Status in Arch Linux:
New
Bug description:
% gdb --args ./x86_64-softmmu/qemu-system-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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-x86_64 -vnc 0.0.0.0:1,tls,x509=/etc/pki/libvirt-le,websocket=5701
[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=0x55555874d6b0 ws=1 auth=1 subauth=0
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-properly terminated.
Closing down client sock: protocol error
vnc_set_share_mode/0x55555779f510: connecting -> disconnected
Client sioc=0x55555873c6a0 ws=1 auth=1 subauth=0
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=cond@entry=0x5555587267e0,
mutex=mutex@entry=0x555558726810) at util/qemu-thread-posix.c:123
#2 0x00005555559770ab in vnc_worker_thread_loop (queue=queue@entry=0x5555587267e0)
at ui/vnc-jobs.c:228
#3 0x00005555559775e8 in vnc_worker_thread (arg=0x5555587267e0) 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=<optimized out>,
---Type <return> to continue, or q <return> to quit---
emu_global_mutex>) at util/qemu-thread-posix.c:123
#2 0x0000555555715edf in qemu_tcg_wait_io_event (cpu=0x5555564ee840) at /home/ben/qemu/qemu-2.6.0/cpus.c:1015
#3 qemu_tcg_cpu_thread_fn (arg=<optimized out>) 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=<optimized out>, ev=<optimized out>) at util/qemu-thread-posix.c:292
#2 qemu_event_wait (ev=ev@entry=0x55555641ece4 <rcu_call_ready_event>) at util/qemu-thread-posix.c:399
#3 0x0000555555a2f2ae in call_rcu_thread (opaque=<optimized out>) at util/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=0x555558212140) at io/task.c:58
#2 0x00005555559efd89 in qio_task_complete (task=task@entry=0x555558212140) at io/task.c:145
#3 0x00005555559ef5aa in qio_channel_websock_handshake_send (ioc=0x55555873c6a0, condition=<optimized out>,
user_data=0x555558212140) at io/channel-websock.c:289
#4 0x00007fffecf59c8a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5 0x000055555598a6b3 in glib_pollfds_poll () at main-loop.c:213
#6 os_host_main_loop_wait (timeout=<optimized out>) at main-loop.c:258
#7 main_loop_wait (nonblocking=<optimized out>) at main-loop.c:506
#8 0x00005555556e1fbd in main_loop () at vl.c:1934
#9 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:4656
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1589923/+subscriptions
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2020-08-31 13:12 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-07 10:45 [Qemu-devel] [Bug 1589923] [NEW] https websockets not working in 2.5 or 2.6 Ben Aitchison
2016-06-07 10:56 ` [Qemu-devel] [Bug 1589923] " Daniel Berrange
2016-06-07 15:13 ` Paul White
2016-06-07 15:26 ` Daniel Berrange
2016-06-07 15:43 ` Serge Hallyn
2016-06-08 13:19 ` Daniel Berrange
2016-09-02 21:39 ` T. Huth
2016-09-14 15:00 ` Daniel Berrange
2016-09-14 19:44 ` T. Huth
2017-06-06 23:38 ` ChristianEhrhardt
2017-09-06 13:03 ` ChristianEhrhardt
2017-09-06 13:50 ` ChristianEhrhardt
2020-08-31 12:51 ` Christian Ehrhardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.