The system oops when running the systemtap.samples/transport.exp test on a x86_64 rawhide (fc6) machine with the following kernel and systemtap $ uname -a Linux dhcp59-221.rdu.redhat.com 2.6.16-1.2289_FC6 #1 SMP Thu Jun 15 14:31:12 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux $ stap -V SystemTap translator/driver (version 0.5.7 built 2006-06-05) (Using Red Hat elfutils 0.120 libraries.) Copyright (C) 2005-2006 Red Hat, Inc. and others This is free software; see the source for copying conditions. Below is the trace back of in /var/log/messages Jun 21 12:46:17 dhcp59-221 kernel: BUG: warning at fs/proc/generic.c:732/remove_proc_entry() (Not tainted) Jun 21 12:46:17 dhcp59-221 kernel: Jun 21 12:46:17 dhcp59-221 kernel: Call Trace: <ffffffff802efea8>{remove_proc_entry+383} Jun 21 12:46:17 dhcp59-221 kernel: <ffffffff885a5315>{:stap_2604:_stp_unregister_procfs+146} Jun 21 12:46:17 dhcp59-221 kernel: <ffffffff885a5bfb>{:stap_2604:_stp_relayfs_close+14} Jun 21 12:46:17 dhcp59-221 kernel: <ffffffff802a3534>{sys_delete_module+406} <ffffffff80261ace>{system_call+126} Jun 21 12:46:17 dhcp59-221 kernel: remove_proc_entry: systemtap/stap_2604 busy, count=1 Jun 21 12:46:18 dhcp59-221 kernel: Unable to handle kernel paging request at ffffffff886569e0 RIP: Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff802b3519>{relay_remove_buf+23} Jun 21 12:46:18 dhcp59-221 kernel: PGD 203027 PUD 205027 PMD 23e8f067 PTE 0 Jun 21 12:46:18 dhcp59-221 kernel: Oops: 0000 [3] SMP Jun 21 12:46:18 dhcp59-221 kernel: last sysfs file: /devices/system/cpu/cpu0/cpufreq/scaling_setspeed Jun 21 12:46:18 dhcp59-221 kernel: CPU 0 Jun 21 12:46:18 dhcp59-221 kernel: Modules linked in: ipv6 autofs4 hidp rfcomm l2cap bluetooth ip_conntrack_netbios_ns ipt_REJECT xt_state ip_conntrack nfnetlink xt_tcpudp iptable_filter ip_tables x_tables video button battery acpi_memhotplug ac parport_pc lp parport snd_intel8x0m snd_intel8x0 snd_ac97_codec snd_ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss ohci_hcd i2c_nforce2 ehci_hcd ide_cd 8139too bcm43xx ieee80211softmac ieee80211 i2c_core ohci1394 snd_pcm ieee80211_crypt snd_timer ieee1394 snd soundcore snd_page_alloc cdrom 8139cp mii dm_snapshot dm_zero dm_mirror dm_mod ext3 jbd sata_nv libata sd_mod scsi_mod Jun 21 12:46:18 dhcp59-221 kernel: Pid: 2683, comm: stpd Not tainted 2.6.16-1.2289_FC6 #1 Jun 21 12:46:18 dhcp59-221 kernel: RIP: 0010:[<ffffffff802b3519>] <ffffffff802b3519>{relay_remove_buf+23} Jun 21 12:46:18 dhcp59-221 kernel: RSP: 0018:ffff8100122f9ad8 EFLAGS: 00010246 Jun 21 12:46:18 dhcp59-221 kernel: RAX: ffffffff886569c0 RBX: ffff8100321c6188 RCX: 0000000000000000 Jun 21 12:46:18 dhcp59-221 kernel: RDX: 0000000000000000 RSI: ffffffff802b3502 RDI: ffff810026784ab8 Jun 21 12:46:18 dhcp59-221 kernel: RBP: ffffffff802b3502 R08: ffff8100122f8000 R09: 0000000000000000 Jun 21 12:46:18 dhcp59-221 kernel: R10: 0000000000000001 R11: 0000000000000000 R12: ffff81003d3a3428 Jun 21 12:46:18 dhcp59-221 kernel: R13: ffff81003d3a3428 R14: ffff81003e629990 R15: ffff810026784ab8 Jun 21 12:46:18 dhcp59-221 kernel: FS: 0000000040a00940(0063) GS:ffffffff80690000(0000) knlGS:0000000000000000 Jun 21 12:46:18 dhcp59-221 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b Jun 21 12:46:18 dhcp59-221 kernel: CR2: ffffffff886569e0 CR3: 0000000030a1e000 CR4: 00000000000006e0 Jun 21 12:46:18 dhcp59-221 kernel: Process stpd (pid: 2683, threadinfo ffff8100122f8000, task ffff81001a2017e0) Jun 21 12:46:18 dhcp59-221 kernel: Stack: ffff8100321c6248 ffffffff8023851b ffff810023c569f0 0000000000000010 Jun 21 12:46:18 dhcp59-221 kernel: ffff810023c569f0 ffffffff802b3106 ffff81003d3a3428 ffffffff802125df Jun 21 12:46:18 dhcp59-221 kernel: 0000000000000000 ffff8100122f9c18 Jun 21 12:46:18 dhcp59-221 kernel: Call Trace: <ffffffff8023851b>{kref_put+117} <ffffffff802b3106>{relay_file_release+30} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff802125df>{__fput+188} <ffffffff8021b7ae>{poll_freewait+41} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80231b7b>{do_sys_poll+754} <ffffffff80231bf2>{do_sys_poll+873} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8021f80e>{__pollwait+0} <ffffffff8028a870>{default_wake_function+0} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8021bbd8>{bad_range+16} <ffffffff8020a43d>{get_page_from_freelist+1133} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8021bbd8>{bad_range+16} <ffffffff8020a43d>{get_page_from_freelist+1133} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80268e94>{_read_unlock_irq+9} <ffffffff802077c7>{find_get_page+71} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80214467>{filemap_nopage+390} <ffffffff80208b98>{__handle_mm_fault+1303} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80268f06>{_spin_lock_irqsave+9} <ffffffff8026adad>{do_page_fault+1172} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8025028f>{sys_poll+58} <ffffffff80261ace>{system_call+126} Jun 21 12:46:18 dhcp59-221 kernel: Jun 21 12:46:18 dhcp59-221 kernel: Code: ff 50 20 48 89 df 5b e9 72 ff ff ff 41 57 be d0 00 00 00 41 Jun 21 12:46:18 dhcp59-221 kernel: RIP <ffffffff802b3519>{relay_remove_buf+23} RSP <ffff8100122f9ad8> Jun 21 12:46:18 dhcp59-221 kernel: CR2: ffffffff886569e0 Jun 21 12:46:18 dhcp59-221 kernel: <3>BUG: sleeping function called from invalid context at include/linux/rwsem.h:43 Jun 21 12:46:18 dhcp59-221 kernel: in_atomic():0, irqs_disabled():1 Jun 21 12:46:18 dhcp59-221 kernel: Jun 21 12:46:18 dhcp59-221 kernel: Call Trace: <ffffffff8029890b>{blocking_notifier_call_chain+31} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff802161d4>{do_exit+32} <ffffffff8026b080>{do_page_fault+1895} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80208efb>{__handle_mm_fault+2170} <ffffffff80268f06>{_spin_lock_irqsave+9} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80223522>{__up_read+25} <ffffffff802629a5>{error_exit+0} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff802b3502>{relay_remove_buf+0} <ffffffff802b3502>{relay_remove_buf+0} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff802b3519>{relay_remove_buf+23} <ffffffff8023851b>{kref_put+117} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff802b3106>{relay_file_release+30} <ffffffff802125df>{__fput+188} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8021b7ae>{poll_freewait+41} <ffffffff80231b7b>{do_sys_poll+754} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80231bf2>{do_sys_poll+873} <ffffffff8021f80e>{__pollwait+0} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8028a870>{default_wake_function+0} <ffffffff8021bbd8>{bad_range+16} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8020a43d>{get_page_from_freelist+1133} <ffffffff8021bbd8>{bad_range+16} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8020a43d>{get_page_from_freelist+1133} <ffffffff80268e94>{_read_unlock_irq+9} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff802077c7>{find_get_page+71} <ffffffff80214467>{filemap_nopage+390} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80208b98>{__handle_mm_fault+1303} <ffffffff80268f06>{_spin_lock_irqsave+9} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff8026adad>{do_page_fault+1172} <ffffffff8025028f>{sys_poll+58} Jun 21 12:46:18 dhcp59-221 kernel: <ffffffff80261ace>{system_call+126} Jun 21 12:46:24 dhcp59-221 kernel: BUG: warning at fs/proc/generic.c:732/remove_proc_entry() (Not tainted) Jun 21 12:46:24 dhcp59-221 kernel: Jun 21 12:46:24 dhcp59-221 kernel: Call Trace: <ffffffff802efea8>{remove_proc_entry+383} Jun 21 12:46:24 dhcp59-221 kernel: <ffffffff885a5315>{:stap_2784:_stp_unregister_procfs+146} Jun 21 12:46:24 dhcp59-221 kernel: <ffffffff885a5bfb>{:stap_2784:_stp_relayfs_close+14} Jun 21 12:46:24 dhcp59-221 kernel: <ffffffff802a3534>{sys_delete_module+406} <ffffffff80261ace>{system_call+126} Jun 21 12:46:24 dhcp59-221 kernel: remove_proc_entry: systemtap/stap_2784 busy, count=1 Jun 21 12:46:24 dhcp59-221 kernel: remove_proc_entry: stap_2784/cpu0 busy, count=1
The following change fixed the problem. 2006-10-18 Roland McGrath <roland@redhat.com> PR 2727 * configure.ac (elfutils build): Pass --prefix and --exec-prefix options to elfutils configure. (elfutils_abs_srcdir): New substituted variable. * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable. * configure, config.in, Makefile.in: Regenerated.
(In reply to comment #1) > The following change fixed the problem. > > 2006-10-18 Roland McGrath <roland@redhat.com> > > PR 2727 > * configure.ac (elfutils build): Pass --prefix and --exec-prefix > options to elfutils configure. > (elfutils_abs_srcdir): New substituted variable. > * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable. > * configure, config.in, Makefile.in: Regenerated. > > I agree this bug should be marked as fixed, but I'm confused as to how the change above would have fixed the problem. Did you mean this instead?: Log message: fix for bz 2816 +2006-09-25 Tom Zanussi <zanussi@us.ibm.com> + + * procfs.c (_stp_proc_read): Set buf_info flushing flag. + * transport.c (_stp_cleanup_and_exit): Remove braces. + * transport_msgs.h: Add flushing flag to buf_info. +