2006-03-22 13:29:06

by Mikado

[permalink] [raw]
Subject: Cannot debug UML

========== Host Input ==========

./linux mode=tt debug ubd0=root_fs ubd1=swap mem=128MB eth0=tuntap,,,192.168.0.254

========== UML Output ==========

Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking PROT_EXEC mmap in /tmp...OK
UML running in TT mode

========== GDB Output ==========

GNU gdb 6.4
Copyright 2005 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 "i486-slackware-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
0xa0394641 in kill () at crypto.h:345
345 crypto.h: No such file or directory.
in crypto.h
Breakpoint 1 at 0xa0059917: file kernel/panic.c, line 97.
Breakpoint 2 at 0xa0021bb0: file arch/um/kernel/user_util.c, line 35.
Breakpoint 3 at 0xa00014f6: file init/main.c, line 455.

Breakpoint 3, start_kernel () at init/main.c:455
455 printk(KERN_NOTICE);

========== GDB Input ==========

(gdb) c
Continuing.

========== UML Output ==========

sr/sbin:/usr/bin ACTION=add DEVPATH=/block/nbd12 SUBSYSTEM=block
[42949374.150000] Ethernet Channel Bonding Driver: v2.6.5 (November 4, 2005)
[42949374.150000] bonding: Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details.
[42949374.150000] PPP generic driver version 2.4.2
[42949374.150000] PPP Deflate Compression module registered
[42949374.150000] PPP BSD Compression module registered
[42949374.150000] PPP MPPE Compression module registered
[42949374.150000] NET: Registered protocol family 24
[42949374.150000] tun: Universal TUN/TAP device driver, 1.6
[42949374.150000] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[42949374.150000] md: linear personality registered as nr 1
[42949374.150000] md: raid0 personality registered as nr 2
[42949374.150000] md: raid1 personality registered as nr 3
[42949374.150000] md: raid10 personality registered as nr 9
[42949374.150000] md: raid5 personality registered as nr 4
[42949374.150000] raid5: measuring checksumming speed
[42949374.270000] 8regs : 2062.800 MB/sec
[42949374.330000] 8regs_prefetch: 2059.600 MB/sec
[42949374.390000] 32regs : 952.800 MB/sec
[42949374.450000] 32regs_prefetch: 940.800 MB/sec
[42949374.450000] raid5: using function: 8regs (2062.800 MB/sec)
[42949374.620000] raid6: int32x1 296 MB/s
[42949374.790000] raid6: int32x2 325 MB/s
[42949374.960000] raid6: int32x4 231 MB/s
[42949375.140000] raid6: int32x8 242 MB/s
[42949375.140000] raid6: using algorithm int32x2 (325 MB/s)
[42949375.140000] md: raid6 personality registered as nr 8
[42949375.140000] md: multipath personality registered as nr 7
[42949375.140000] md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
[42949375.140000] md: bitmap version 4.39
[42949375.140000] device-mapper: 4.4.0-ioctl (2005-01-12) initialised: [email protected]
[42949375.140000] device-mapper: dm-multipath version 1.0.4 loaded
[42949375.140000] device-mapper: dm-round-robin version 1.0.0 loaded
[42949375.140000] device-mapper: dm-emc version 0.0.3 loaded
[42949375.140000] Netfilter messages via NETLINK v0.30.
[42949375.140000] NET: Registered protocol family 2
[42949375.310000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[42949375.310000] TCP established hash table entries: 8192 (order: 5, 131072 bytes)
[42949375.310000] TCP bind hash table entries: 8192 (order: 5, 163840 bytes)
[42949375.310000] TCP: Hash tables configured (established 8192 bind 8192)
[42949375.310000] TCP reno registered
[42949375.310000] IPv4 over IPv4 tunneling driver
[42949375.310000] GRE over IPv4 tunneling driver
[42949375.310000] ip_conntrack version 2.4 (952 buckets, 7616 max) - 232 bytes per conntrack
[42949375.700000] ctnetlink v0.90: registering with nfnetlink.
[42949375.700000] ip_conntrack_pptp version 3.1 loaded
[42949375.700000] ip_nat_pptp version 3.0 loaded
[42949375.700000] ip_tables: (C) 2000-2002 Netfilter core team
[42949376.460000] ipt_recent v0.3.1: Stephen Frost <[email protected]>. http://snowman.net/projects/ipt_recent/
[42949376.510000] ClusterIP Version 0.8 loaded successfully
[42949376.510000] arp_tables: (C) 2002 David S. Miller
[42949376.660000] TCP bic registered
[42949376.660000] NET: Registered protocol family 1
[42949376.660000] NET: Registered protocol family 10
[42949376.660000] IPv6 over IPv4 tunneling driver
[42949376.660000] ip6_tables: (C) 2000-2002 Netfilter core team
[42949377.140000] NET: Registered protocol family 17
[42949377.140000] Initialized stdio console driver
[42949377.140000] Console initialized on /dev/tty0
[42949377.140000] Initializing software serial port version 1
[42949377.280000] ubda: unknown partition table
[42949377.310000] ubdb: unknown partition table
[42949377.310000] md: Autodetecting RAID arrays.
[42949377.310000] md: autorun ...
[42949377.310000] md: ... autorun DONE.
[42949377.330000] kjournald starting. Commit interval 5 seconds
[42949377.330000] EXT3-fs: mounted filesystem with ordered data mode.
[42949377.330000] VFS: Mounted root (ext3 filesystem) readonly.
[42949377.480000] line_ioctl: tty0: ioctl KDSIGACCEPT called
INIT: version 2.84 booting
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
Initializing udev dynamic device directory.
[42949382.650000] Adding 262136k swap on /dev/ubdb. Priority:-1 extents:1 across:262136k
Testing root filesystem status: read-only filesystem
Checking root filesystem:
fsck 1.38 (30-Jun-2005)
/dev/ubda: clean, 233648/1048576 files, 964415/2097152 blocks
Remounting root device with read-write enabled.
[42949383.010000] EXT3 FS on ubda, internal journal
/dev/ubda on / type ext3 (rw)
Setting system time from the hardware clock (localtime).
hwclock is unable to get I/O port access: the iopl(3) call failed.
Checking non-root filesystems:
fsck 1.38 (30-Jun-2005)
none on /usr/src/linux-2.6.15.6 type hostfs (ro,/usr/src/linux-2.6.15.6)
none on /usr/src/linux-2.6.15.6-bs3-tls type hostfs (rw,/mnt/storage5/linux-2.6.15.6-bs3-tls)
Using /etc/random-seed to initialize /dev/urandom.

======================================== UML Hang ========================================

========== GDB Input ==========

(Ctrl-C)

Program received signal SIGINT, Interrupt.
sig_handler (sig=134580689) at arch/um/os-Linux/signal.c:12
12 {
(gdb) bt
#0 sig_handler (sig=134580689) at arch/um/os-Linux/signal.c:12
#1 <signal handler called>
Previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.

========== UML Output ==========

[42949417.640000] BUG: soft lockup detected on CPU#0!
[42949417.640000]
[42949417.640000] EIP: 0073:[<a0394602>] CPU: 0 Not tainted ESP: 007b:a0e53af0 EFLAGS: 00000286
[42949417.640000] Not tainted
[42949417.640000] EAX: 00000000 EBX: 00000001 ECX: a0e53b10 EDX: a0e53b10
[42949417.640000] ESI: 00000008 EDI: 00000003 EBP: a0e53af8 DS: 007b ES: 007b
[42949417.640000] a0e5369c: [<a0050d99>] show_regs+0x1d9/0x1f0
[42949417.640000] a0e536c8: [<a0080e7f>] softlockup_tick+0x5f/0x70
[42949417.640000] a0e536dc: [<a00686ef>] do_timer+0x3f/0xd0
[42949417.640000] a0e536ec: [<a001f832>] um_timer+0x12/0x60
[42949417.640000] a0e536fc: [<a00810cd>] handle_IRQ_event+0x3d/0xa0
[42949417.640000] a0e53724: [<a00811a7>] __do_IRQ+0x77/0xf0
[42949417.640000] a0e53754: [<a0019f50>] do_IRQ+0x30/0x40
[42949417.640000] a0e53764: [<a001f6e7>] timer_irq+0x67/0x150
[42949417.640000] a0e53798: [<a001fb6d>] timer_handler+0x7d/0x90
[42949417.640000] a0e537b4: [<a0024c59>] sig_handler_common_tt+0xc9/0x150
[42949417.640000] a0e537f8: [<a0049b61>] alarm_handler+0x31/0x70
[42949417.640000] a0e5380c: [<ffffe420>] ifaddrs+0x5f9646e0/0x4
[42949417.640000] a0e53afc: [<a001e5c6>] set_signals+0x116/0x1d0
[42949417.640000] a0e53ba0: [<a03efb19>] _spin_unlock_irqrestore+0x19/0x20
[42949417.640000] a0e53bb0: [<a006a020>] force_sig_info+0x80/0xa0
[42949417.640000] a0e53bd0: [<a0020a4b>] segv+0x14b/0x2f0
[42949417.640000] a0e53c9c: [<a0020f1d>] segv_handler+0x9d/0x110
[42949417.640000] a0e53cc8: [<a0024c59>] sig_handler_common_tt+0xc9/0x150
[42949417.640000] a0e53d0c: [<a0049b12>] sig_handler+0x22/0x40
[42949417.640000] a0e53d1c: [<ffffe420>] ifaddrs+0x5f9646e0/0x4
[42949417.640000]

========== GDB Input ==========

(Ctrl-C)

Program received signal SIGINT, Interrupt.
0x08060ce2 in ?? ()
(gdb) bt
#0 0x08060ce2 in ?? ()
#1 0x5014438d in ?? ()
#2 0x0b519368 in ?? ()
#3 0x1696e808 in ?? ()
#4 0xc4830000 in ?? ()
#5 0x00768d20 in ?? ()
#6 0x00b09b8b in ?? ()
#7 0xdb850000 in ?? ()
#8 0xe1e8c675 in ?? ()
#9 0x850000f2 in ?? ()
#10 0x6a537ec0 in ?? ()
#11 0x0d716800 in ?? ()
#12 0xa8a1080a in ?? ()
#13 0x50080b97 in ?? ()
#14 0x0b97a8a1 in ?? ()
#15 0x25e85008 in ?? ()
#16 0x830000f3 in ?? ()
#17 0xec8310c4 in ?? ()
#18 0xf9e8560c in ?? ()
#19 0xc700010f in ?? ()
#20 0x000b2404 in ?? ()
#21 0xede80000 in ?? ()
#22 0x8300010f in ?? ()
#23 0x006a0cc4 in ?? ()
#24 0xe8026a57 in ?? ()
#25 0x00002160 in ?? ()
#26 0x78685b59 in ?? ()
#27 0x6a080a0d in ?? ()
#28 0xe242e801 in ?? ()
#29 0x658dffff in ?? ()
#30 0x5f5e5bf4 in ?? ()
#31 0xc675c35d in ?? ()
#32 0x560cec83 in ?? ()
#33 0xffd58fe8 in ?? ()
#34 0x2404c7ff in ?? ()
#35 0x00000000 in ?? ()
(gdb) c
Continuing.

========== UML Output ==========
[42949445.930000] BUG: soft lockup detected on CPU#0!
[42949445.930000]
[42949445.930000] EIP: 0073:[<a00206fb>] CPU: 0 Not tainted ESP: 007b:a0e53b90 EFLAGS: 00000202
[42949445.930000] Not tainted
[42949445.930000] EAX: a7c36c70 EBX: a7c36c40 ECX: 00000001 EDX: 00000002
[42949445.930000] ESI: a7c36c70 EDI: 00000001 EBP: a0e53bcc DS: 007b ES: 007b
[42949445.930000] a0e5373c: [<a0050d99>] show_regs+0x1d9/0x1f0
[42949445.930000] a0e53768: [<a0080e7f>] softlockup_tick+0x5f/0x70
[42949445.930000] a0e5377c: [<a00686ef>] do_timer+0x3f/0xd0
[42949445.930000] a0e5378c: [<a001f832>] um_timer+0x12/0x60
[42949445.930000] a0e5379c: [<a00810cd>] handle_IRQ_event+0x3d/0xa0
[42949445.930000] a0e537c4: [<a00811a7>] __do_IRQ+0x77/0xf0
[42949445.930000] a0e537f4: [<a0019f50>] do_IRQ+0x30/0x40
[42949445.930000] a0e53804: [<a001f6e7>] timer_irq+0x67/0x150
[42949445.930000] a0e53838: [<a001fb6d>] timer_handler+0x7d/0x90
[42949445.930000] a0e53854: [<a0024c59>] sig_handler_common_tt+0xc9/0x150
[42949445.930000] a0e53898: [<a0049b61>] alarm_handler+0x31/0x70
[42949445.930000] a0e538ac: [<ffffe420>] ifaddrs+0x5f9646e0/0x4
[42949445.930000] a0e53bd0: [<a0020a86>] segv+0x186/0x2f0
[42949445.930000] a0e53c9c: [<a0020f1d>] segv_handler+0x9d/0x110
[42949445.930000] a0e53cc8: [<a0024c59>] sig_handler_common_tt+0xc9/0x150
[42949445.930000] a0e53d0c: [<a0049b12>] sig_handler+0x22/0x40
[42949445.930000] a0e53d1c: [<ffffe420>] ifaddrs+0x5f9646e0/0x4
[42949445.930000]


Attachments:
host-config-2.6.15.6-skas3-v8.2 (34.69 kB)
guest-config-2.6.15.6-bs3-tls (15.35 kB)
debug-process (10.92 kB)
Download all attachments