Re: kvm-18 breaks Cisco VPN on WinXP SP1

Leslie Mann
2007-04-01T18:43:10Z

Avi Kivity <avi@...> writes:

>
> The SIGIO means some I/O has occured, but what exactly, we don't know.
> Can you generate a core, attach it with gdb, and generate a backtrace?
>
> Check the backtrace for signs of your password and delete them if
> found. It shouldn't be there, but then it shouldn't crash either.
>

Avi:

I'm a little bit at a loss as to what to do to get a core backtrace. gcore gets
me 3 frames with no symbol info and I don't see how that can help you.

I have upgraded the Cisco VPN client from 4.6 to a newer version 4.8 and as well
have tried using a kvm version from svn pulled today, still locking up. Lockup
seems to happen around when the VPN client attempts to establish IKE session.
FYI I am using vde_switch for networking. I did manage to get debugging info
compiled with no optimization. The backtrace that follows is from attaching to
running qemu process after UI lock up. Perhaps there are some clues here? If
not, anything else I provide that would help?

Thanks
Les

GNU gdb Red Hat Linux (6.5-15.fc6rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Attaching to process 14339
Reading symbols from /usr/local/bin/qemu...done.
Using host libthread_db library "/lib/libthread_db.so.1".
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libasound.so.2...done.
Loaded symbols for /lib/libasound.so.2
Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /lib/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1208875328 (LWP 14339)]
[New Thread -1764164720 (LWP 14340)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libutil.so.1...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libesd.so.0...done.
Loaded symbols for /usr/lib/libesd.so.0
Reading symbols from /usr/lib/libaudiofile.so.0...done.
Loaded symbols for /usr/lib/libaudiofile.so.0
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXrandr.so.2...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
0x00841402 in __kernel_vsyscall ()
(gdb) thread apply all bt full

Thread 2 (Thread -1764164720 (LWP 14340)):
#0 0x00841402 in __kernel_vsyscall ()
No symbol table info available.
#1 0x00ca142c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib/libpthread.so.0
No symbol table info available.
#2 0x00deb769 in handle_fildes_io () from /lib/librt.so.1
No symbol table info available.
#3 0x00c9d3db in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4 0x00bf726e in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread -1208875328 (LWP 14339)):
#0 0x00841402 in __kernel_vsyscall ()
No symbol table info available.
#1 0x00bef729 in ioctl () from /lib/libc.so.6
No symbol table info available.
#2 0x0812a8fc in kvm_run (kvm=0xab06008, vcpu=0) at kvmctl.c:715
r = 0
fd = 7
run = (struct kvm_run *) 0xb7f3b000
#3 0x080e8eee in kvm_cpu_exec (env=0xab9ecd0)
at /usr/src/kvm-svn/qemu/qemu-kvm.c:467
r = 179956944
pending = 1
#4 0x080ea428 in cpu_x86_exec (env1=0xab9ecd0)
at /usr/src/kvm-svn/qemu/cpu-exec.c:411
reg_AREG0 = (host_reg_t) 0xab9ecd0
saved_AREG0 = (volatile host_reg_t) 0xbf9381c8
reg_AREG1 = (host_reg_t) 0x0
saved_AREG1 = (volatile host_reg_t) 0x0
reg_AREG2 = (host_reg_t) 0xb26ca0
saved_AREG2 = (volatile host_reg_t) 0xb26ca0
reg_AREG3 = (host_reg_t) 0x0
saved_AREG3 = (volatile host_reg_t) 0x0
ret = 65536
interrupt_request = 0
gen_func = (void (*)(void)) 0
tb = (TranslationBlock *) 0x0
tc_ptr = (unsigned char *) 0x0
#5 0x08055236 in main_loop () at /usr/src/kvm-svn/qemu/vl.c:6256
ret = 25721
timeout = 0
env = (CPUX86State *) 0x72000
#0 0x00841402 in __kernel_vsyscall ()
(gdb) quit
The program is running. Quit anyway (and detach it)? (y or n) Detaching from
program: /usr/local/bin/qemu, process 14339