--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: linux-image-2.6.32-5-amd64: gdb /bin/true crashes the system if oprofile is in use under xen
- From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
- Date: Fri, 20 Aug 2010 22:16:02 +0300
- Message-id: <84wrrl9jt9.fsf@sauna.l.org>
Package: linux-2.6
Version: 2.6.32-18
Severity: normal
Steps to reproduce:
1) boot debian under xen
2) sudo aptitude install oprofile gdb
3) sudo opcontrol --init --no-vmlinux
4) sudo opcontrol --start
5) gdb /bin/true
6) type "break main" and enter
7) type "y" and enter
8) type "run" and enter
Expected results:
6) /bin/true runs under gdb and exits
Actual results:
6) the kernel crashes with
[1223191.614234] alignment check: 0000 [#1] SMP
[1223191.614249] last sysfs file: /sys/module/nbd/initstate
[1223191.614255] CPU 2
[1223191.614260] Modules linked in: oprofile iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_filter ip_tables x_tables binfmt_misc fuse nfs lockd fscache nfs_acl auth_rpcgss sunrpc bridge stp ext2 loop pcspkr evdev ext3 jbd mbcache raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid0 multipath linear md_mod nbd xen_netfront xen_blkfront
[1223191.614346] Pid: 6521, comm: gdb Not tainted 2.6.32-5-amd64 #1
[1223191.614352] RIP: e030:[<ffffffffa01a3c11>] [<ffffffffa01a3c11>] sync_buffer+0xae/0x41f [oprofile]
[1223191.614365] RSP: e02b:ffff88007233fc38 EFLAGS: 00250286
[1223191.614371] RAX: ffff88003cc9d36c RBX: ffff88007ff51530 RCX: 0000000000000004
[1223191.614378] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88003cc9d368
[1223191.614385] RBP: ffff88003cc9d36c R08: 0000000000000000 R09: 0000000000000000
[1223191.614392] R10: ffff88007d55e2e0 R11: 0000000000000001 R12: 0000000000000000
[1223191.614399] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[1223191.614411] FS: 00007fecdd5fb700(0000) GS:ffff880003519000(0000) knlGS:0000000000000000
[1223191.614418] CS: e033 DS: 0000 ES: 0000 CR0: 000000008005003b
[1223191.614425] CR2: 00007fecdd5fb9d0 CR3: 0000000021e45000 CR4: 0000000000002660
[1223191.614432] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[1223191.614440] DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
[1223191.614447] Process gdb (pid: 6521, threadinfo ffff88007233e000, task ffff88007d55e2e0)
[1223191.614454] Stack:
[1223191.614457] 0000000000000000 0000000200000000 0000000100000002 0000000000000011
[1223191.614469] <0> ffff88003cc9d368 ffff88003cc9d36c 0000000000000000 ffff88003cc9d37c
[1223191.614481] <0> 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[1223191.614496] Call Trace:
[1223191.614504] [<ffffffffa01a3f93>] ? task_exit_notify+0x11/0x16 [oprofile]
[1223191.614514] [<ffffffff812fb18b>] ? notifier_call_chain+0x29/0x4c
[1223191.614523] [<ffffffff810672df>] ? __blocking_notifier_call_chain+0x47/0x5f
[1223191.614533] [<ffffffff8104fb77>] ? do_exit+0x22/0x6b5
[1223191.614540] [<ffffffff81050280>] ? do_group_exit+0x76/0x9d
[1223191.614547] [<ffffffff812f8ba2>] ? _spin_lock_irq+0x7/0x22
[1223191.614555] [<ffffffff8105ca23>] ? get_signal_to_deliver+0x310/0x339
[1223191.614564] [<ffffffff8101004f>] ? do_notify_resume+0x87/0x73f
[1223191.614572] [<ffffffff812f8fe5>] ? page_fault+0x25/0x30
[1223191.614579] [<ffffffff812f921a>] ? error_exit+0x2a/0x60
[1223191.614585] [<ffffffff8101151d>] ? retint_restore_args+0x5/0x6
[1223191.614594] [<ffffffff81193b0d>] ? __put_user_4+0x1d/0x30
[1223191.614602] [<ffffffff81010e0e>] ? int_signal+0x12/0x17
[1223191.614607] Code: 89 44 24 18 c7 44 24 14 00 00 00 00 e9 e3 02 00 00 8b 74 24 0c 48 8d 7c 24 20 e8 6f f6 ff ff 48 85 c0 48 89 c5 0f 84 d8 02 00 00 <48> 8b 38 48 83 ff ff 0f 85 2a 02 00 00 48 8b 58 08 f6 c3 04 74
[1223191.614702] RIP [<ffffffffa01a3c11>] sync_buffer+0xae/0x41f [oprofile]
[1223191.614711] RSP <ffff88007233fc38>
[1223191.614729] ---[ end trace 94859e7345d6ab6e ]---
More info:
1) I am running debian under xen.
2) Dom0 runs SuSE and shows the following info about xen:
$ sudo xm info
host : overlord2
release : 2.6.31.12-0.2-xen
version : #1 SMP 2010-03-16 21:25:39 +0100
machine : x86_64
nr_cpus : 4
nr_nodes : 1
cores_per_socket : 4
threads_per_core : 1
cpu_mhz : 2394
hw_caps : bfebfbff:20100800:00000000:00000140:0000e3bd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8189
free_memory : 4061
max_free_memory : 5529
max_para_memory : 5525
max_hvm_memory : 5504
node_to_cpu : node0:0-3
node_to_memory : node0:4061
xen_major : 3
xen_minor : 4
xen_extra : .1_19718_04-2.1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : 19718
cc_compiler : gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)
cc_compile_by : abuild
cc_compile_domain :
cc_compile_date : Tue Oct 27 16:31:01 UTC 2009
xend_config_format : 4
-- Package-specific info:
** Version:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-18) (ben@decadent.org.uk) (gcc version 4.3.5 (Debian 4.3.5-2) ) #1 SMP Sat Jul 24 01:47:24 UTC 2010
** Command line:
root=/dev/xvda ro console=hvc0
** Not tainted
** Kernel log:
[ 0.012074] PCI: Fatal: No config space access function found
[ 0.012449] bio: create slab <bio-0> at 0
[ 0.012449] ACPI: Interpreter disabled.
[ 0.012449] xen_balloon: Initialising balloon driver.
[ 0.012449] vgaarb: loaded
[ 0.012449] PCI: System does not support PCI
[ 0.012449] PCI: System does not support PCI
[ 0.012449] Switching to clocksource xen
[ 0.013609] pnp: PnP ACPI: disabled
[ 0.013913] NET: Registered protocol family 2
[ 0.014094] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.015285] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[ 0.016993] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.017381] TCP: Hash tables configured (established 262144 bind 65536)
[ 0.017387] TCP reno registered
[ 0.017500] NET: Registered protocol family 1
[ 0.017570] Unpacking initramfs...
[ 0.047683] Freeing initrd memory: 25720k freed
[ 0.058664] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.059047] audit: initializing netlink socket (disabled)
[ 0.059065] type=2000 audit(1282328191.153:1): initialized
[ 0.061890] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.063437] VFS: Disk quotas dquot_6.5.2
[ 0.067414] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.144572] msgmni has been set to 4008
[ 0.144890] alg: No test for stdrng (krng)
[ 0.144997] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.145015] io scheduler noop registered
[ 0.145020] io scheduler anticipatory registered
[ 0.145025] io scheduler deadline registered
[ 0.145069] io scheduler cfq registered (default)
[ 0.146481] alloc irq_desc for 21 on node 0
[ 0.146485] alloc kstat_irqs on node 0
[ 0.146728] Linux agpgart interface v0.103
[ 0.146763] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.146960] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.147014] PNP: No PS/2 controller found. Probing ports directly.
[ 0.147834] i8042.c: No controller found.
[ 0.147901] mice: PS/2 mouse device common for all mice
[ 0.147952] rtc_cmos: probe of rtc_cmos failed with error -16
[ 0.147980] cpuidle: using governor ladder
[ 0.147987] cpuidle: using governor menu
[ 0.147994] No iBFT detected.
[ 0.148273] TCP cubic registered
[ 0.148390] NET: Registered protocol family 10
[ 0.148834] lo: Disabled Privacy Extensions
[ 0.149067] Mobile IPv6
[ 0.149073] NET: Registered protocol family 17
[ 0.149163] PM: Resume from disk failed.
[ 0.149180] registered taskstats version 1
[ 0.149207] XENBUS: Device with no driver: device/vbd/51712
[ 0.149213] XENBUS: Device with no driver: device/vbd/51728
[ 0.149218] XENBUS: Device with no driver: device/vbd/51744
[ 0.149224] XENBUS: Device with no driver: device/vif/0
[ 0.149229] XENBUS: Device with no driver: device/console/0
[ 0.149245] /build/buildd-linux-2.6_2.6.32-18-amd64-qDNI1z/linux-2.6-2.6.32/debian/build/source_amd64_none/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.149267] Initalizing network drop monitor service
[ 0.149337] Freeing unused kernel memory: 588k freed
[ 0.149518] Write protecting the kernel read-only data: 4220k
[ 0.180743] udev: starting version 160
[ 0.195665] alloc irq_desc for 22 on node 0
[ 0.195665] alloc kstat_irqs on node 0
[ 0.198731] alloc irq_desc for 23 on node 0
[ 0.198734] alloc kstat_irqs on node 0
[ 0.198789] Initialising Xen virtual ethernet driver.
[ 0.203791] alloc irq_desc for 24 on node 0
[ 0.203795] alloc kstat_irqs on node 0
[ 0.211714] blkfront: xvda: barriers enabled
[ 0.212002] xvda: unknown partition table
[ 0.221426] blkfront: xvdb: barriers enabled
[ 0.221707] xvdb: unknown partition table
[ 0.235862] blkfront: xvdc: barriers enabled
[ 0.236076] xvdc: unknown partition table
[ 0.250110] alloc irq_desc for 25 on node 0
[ 0.250113] alloc kstat_irqs on node 0
[ 0.519861] EXT3-fs: INFO: recovery required on readonly filesystem.
[ 0.519873] EXT3-fs: write access will be enabled during recovery.
[ 0.676940] kjournald starting. Commit interval 5 seconds
[ 0.676960] EXT3-fs: recovery complete.
[ 0.677454] EXT3-fs: mounted filesystem with ordered data mode.
[ 2.607593] udev: starting version 160
[ 3.127228] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ 4.254085] Adding 6291448k swap on /dev/xvdb. Priority:-1 extents:1 across:6291448k SS
[ 4.437903] EXT3 FS on xvda, internal journal
[ 4.576180] loop: module loaded
[ 490.765117] Bridge firewalling registered
[ 490.815545] device eth0 entered promiscuous mode
[ 490.827778] br0: port 1(eth0) entering learning state
[ 499.824012] br0: port 1(eth0) entering forwarding state
[ 500.380127] RPC: Registered udp transport module.
[ 500.380139] RPC: Registered tcp transport module.
[ 500.380144] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 500.469677] Slow work thread pool: Starting up
[ 500.469772] Slow work thread pool: Ready
[ 500.469835] FS-Cache: Loaded
[ 500.549112] FS-Cache: Netfs 'nfs' registered for caching
[ 500.604349] svc: failed to register lockdv1 RPC service (errno 97).
[ 501.041511] eth0: no IPv6 routers present
[ 501.084479] fuse init (API version 7.13)
[ 501.429009] br0: no IPv6 routers present
** Model information
not available
** Loaded modules:
Module Size Used by
binfmt_misc 6431 1
fuse 50190 1
nfs 240826 1
lockd 57603 1 nfs
fscache 29834 1 nfs
nfs_acl 2031 1 nfs
auth_rpcgss 33460 1 nfs
sunrpc 161317 11 nfs,lockd,nfs_acl,auth_rpcgss
bridge 39598 0
stp 1440 1 bridge
ext2 52969 1
loop 11783 0
evdev 7352 0
pcspkr 1699 0
ext3 106518 1
jbd 37085 1 ext3
mbcache 5050 2 ext2,ext3
xen_netfront 15180 0
xen_blkfront 8102 3
** PCI devices:
** Sound cards:
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages linux-image-2.6.32-5-amd64 depends on:
ii debconf [debconf-2.0] 1.5.35 Debian configuration management sy
ii initramfs-tools [linux-initra 0.98 tools for generating an initramfs
ii linux-base 2.6.32-18 Linux image base package
ii module-init-tools 3.12-1 tools for managing Linux kernel mo
Versions of packages linux-image-2.6.32-5-amd64 recommends:
ii firmware-linux-free 2.6.32-18 Binary firmware for various driver
Versions of packages linux-image-2.6.32-5-amd64 suggests:
ii grub-legacy [grub] 0.97-61 GRand Unified Bootloader (Legacy v
pn linux-doc-2.6.32 <none> (no description available)
Versions of packages linux-image-2.6.32-5-amd64 is related to:
pn firmware-bnx2 <none> (no description available)
pn firmware-bnx2x <none> (no description available)
pn firmware-ipw2x00 <none> (no description available)
pn firmware-ivtv <none> (no description available)
pn firmware-iwlwifi <none> (no description available)
pn firmware-linux <none> (no description available)
pn firmware-linux-nonfree <none> (no description available)
pn firmware-qlogic <none> (no description available)
pn firmware-ralink <none> (no description available)
pn xen-hypervisor <none> (no description available)
-- debconf information:
shared/kernel-image/really-run-bootloader: true
linux-image-2.6.32-5-amd64/postinst/depmod-error-initrd-2.6.32-5-amd64: false
linux-image-2.6.32-5-amd64/prerm/removing-running-kernel-2.6.32-5-amd64: true
linux-image-2.6.32-5-amd64/postinst/missing-firmware-2.6.32-5-amd64:
linux-image-2.6.32-5-amd64/postinst/bootloader-test-error-2.6.32-5-amd64:
linux-image-2.6.32-5-amd64/postinst/bootloader-error-2.6.32-5-amd64:
linux-image-2.6.32-5-amd64/prerm/would-invalidate-boot-loader-2.6.32-5-amd64: true
linux-image-2.6.32-5-amd64/postinst/ignoring-do-bootloader-2.6.32-5-amd64:
--- End Message ---