Skip to content

Instantly share code, notes, and snippets.

@ztmr
Created September 29, 2012 20:39
Show Gist options
  • Save ztmr/3805133 to your computer and use it in GitHub Desktop.
Save ztmr/3805133 to your computer and use it in GitHub Desktop.
dtrace4linux lkm unload error
[1441627.192624] ------------[ cut here ]------------
[1441627.192631] WARNING: at /build/buildd/linux-2.6.38/kernel/trace/ftrace.c:1007 ftrace_bug+0x26c/0x2c0()
[1441627.192633] Hardware name: 43193BG
[1441627.192634] Modules linked in: dtracedrv(P+) cpuid pci_stub vboxpci vboxnetadp vboxnetflt vboxdrv ums_cypress usb_storage uas macvlan ipt_MASQUERADE iptable_nat xt_CHECKSUM iptable_mangle bridge stp hdaps thinkpad_ec vmnet vsock vmci vmmon rfcomm sco bnep l2cap kvm_intel kvm binfmt_misc decnet parport_pc ppdev sha256_generic cryptd aes_x86_64 aes_generic dm_crypt vesafb snd_hda_codec_hdmi btusb bluetooth arc4 ipt_REJECT xt_comment ipt_LOG nvidia(P) xt_limit xt_tcpudp ipt_addrtype snd_hda_codec_conexant xt_state ip6table_filter ip6_tables iwlagn iwlcore snd_hda_intel mac80211 snd_hda_codec nf_nat_irc nf_conntrack_irc snd_hwdep nf_nat_ftp nf_nat joydev nf_conntrack_ipv4 i7core_edac thinkpad_acpi psmouse nf_defrag_ipv4 nf_conntrack_ftp nf_conntrack snd_pcm iptable_filter edac_core serio_raw ip_tables x_tables snd_seq_midi cfg80211 snd_rawmidi snd_seq_midi_event tpm_tis snd_seq snd_page_alloc snd_timer snd_seq_device tpm tpm_bios snd soundcore nvram lp parport xfs exportfs usbhid hid firewire_ohci ahci xhci_hcd firewire_core libahci e1000e sdhci_pci sdhci crc_itu_t video [last unloaded: stap_56680466cf316006ee2ecb41a1d8b0a1_737]
[1441627.192685] Pid: 14959, comm: insmod Tainted: P 2.6.38-13-generic #53-Ubuntu
[1441627.192687] Call Trace:
[1441627.192692] [<ffffffff81065cbf>] ? warn_slowpath_common+0x7f/0xc0
[1441627.192695] [<ffffffff81110199>] ? __probe_kernel_read+0x49/0x80
[1441627.192709] [<ffffffffa113aa14>] ? dtrace_xcall+0x4/0x64 [dtracedrv]
[1441627.192711] [<ffffffff81065d1a>] ? warn_slowpath_null+0x1a/0x20
[1441627.192713] [<ffffffff810e016c>] ? ftrace_bug+0x26c/0x2c0
[1441627.192726] [<ffffffffa113aa14>] ? dtrace_xcall+0x4/0x64 [dtracedrv]
[1441627.192728] [<ffffffff810e040a>] ? ftrace_update_code+0x11a/0x150
[1441627.192740] [<ffffffffa113aa14>] ? dtrace_xcall+0x4/0x64 [dtracedrv]
[1441627.192742] [<ffffffff810e0841>] ? ftrace_process_locs+0x91/0xc0
[1441627.192745] [<ffffffff810e1dc5>] ? ftrace_module_notify+0x45/0x50
[1441627.192748] [<ffffffff815c73ed>] ? notifier_call_chain+0x4d/0x70
[1441627.192750] [<ffffffff8108dc78>] ? __blocking_notifier_call_chain+0x58/0x80
[1441627.192753] [<ffffffff8108dcb6>] ? blocking_notifier_call_chain+0x16/0x20
[1441627.192756] [<ffffffff810a4fb7>] ? sys_init_module+0x87/0x250
[1441627.192758] [<ffffffff8100c002>] ? system_call_fastpath+0x16/0x1b
[1441627.192760] ---[ end trace 4b1ecd7c65bd3665 ]---
[1441627.192761] ftrace failed to modify [<ffffffffa113aa14>] dtrace_xcall+0x4/0x64 [dtracedrv]
[1441627.192774] actual: e8:0d:86:ff:ff
[1441630.636225] Pid: 15012, comm: dtrace Tainted: P W 2.6.38-13-generic #53-Ubuntu
[1441630.636227] Call Trace:
[1441630.636242] [<ffffffffa1133226>] ? mutex_enter_common+0x36/0x130 [dtracedrv]
[1441630.636245] [<ffffffff815cd87d>] ? _etext+0x0/0x3
[1441630.636254] [<ffffffffa113333b>] ? dmutex_enter+0x1b/0x20 [dtracedrv]
[1441630.636262] [<ffffffffa1126fbe>] ? par_alloc+0x2e/0x120 [dtracedrv]
[1441630.636272] [<ffffffffa113141e>] ? instr_provide_module+0x3e/0x250 [dtracedrv]
[1441630.636279] [<ffffffffa11240b9>] ? dtrace_casptr+0x9/0x20 [dtracedrv]
[1441630.636288] [<ffffffffa1133257>] ? mutex_enter_common+0x67/0x130 [dtracedrv]
[1441630.636295] [<ffffffffa11178cf>] ? dtrace_probe_provide+0x8f/0x140 [dtracedrv]
[1441630.636303] [<ffffffffa111f9c5>] ? dtrace_open+0x65/0x140 [dtracedrv]
[1441630.636310] [<ffffffffa1125ca5>] ? dtracedrv_open+0x25/0x30 [dtracedrv]
[1441630.636313] [<ffffffff813a9362>] ? misc_open+0x152/0x2b0
[1441630.636318] [<ffffffff81168f8a>] ? chrdev_open+0xda/0x1f0
[1441630.636320] [<ffffffff81168eb0>] ? chrdev_open+0x0/0x1f0
[1441630.636322] [<ffffffff81162d2e>] ? __dentry_open+0xce/0x2f0
[1441630.636324] [<ffffffff8116ef73>] ? generic_permission+0x23/0xc0
[1441630.636326] [<ffffffff81164221>] ? nameidata_to_filp+0x71/0x80
[1441630.636329] [<ffffffff81173428>] ? finish_open+0xc8/0x1b0
[1441630.636331] [<ffffffff81172617>] ? do_path_lookup+0x87/0x160
[1441630.636333] [<ffffffff81173be8>] ? do_filp_open+0x2c8/0x7c0
[1441630.636337] [<ffffffff812e6de7>] ? __strncpy_from_user+0x27/0x60
[1441630.636340] [<ffffffff81180f17>] ? alloc_fd+0xf7/0x150
[1441630.636342] [<ffffffff8116429a>] ? do_sys_open+0x6a/0x150
[1441630.636344] [<ffffffff811643a0>] ? sys_open+0x20/0x30
[1441630.636346] [<ffffffff8100c002>] ? system_call_fastpath+0x16/0x1b
[1443467.578338] general protection fault: 0000 [#1] SMP
[1443467.578347] last sysfs file: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C09:00/ACPI0003:00/power_supply/AC/uevent
[1443467.578354] CPU 6
[1443467.578357] Modules linked in: dtracedrv(P-) cpuid pci_stub vboxpci vboxnetadp vboxnetflt vboxdrv ums_cypress usb_storage uas macvlan ipt_MASQUERADE iptable_nat xt_CHECKSUM iptable_mangle bridge stp hdaps thinkpad_ec vmnet vsock vmci vmmon rfcomm sco bnep l2cap kvm_intel kvm binfmt_misc decnet parport_pc ppdev sha256_generic cryptd aes_x86_64 aes_generic dm_crypt vesafb snd_hda_codec_hdmi btusb bluetooth arc4 ipt_REJECT xt_comment ipt_LOG nvidia(P) xt_limit xt_tcpudp ipt_addrtype snd_hda_codec_conexant xt_state ip6table_filter ip6_tables iwlagn iwlcore snd_hda_intel mac80211 snd_hda_codec nf_nat_irc nf_conntrack_irc snd_hwdep nf_nat_ftp nf_nat joydev nf_conntrack_ipv4 i7core_edac thinkpad_acpi psmouse nf_defrag_ipv4 nf_conntrack_ftp nf_conntrack snd_pcm iptable_filter edac_core serio_raw ip_tables x_tables snd_seq_midi cfg80211 snd_rawmidi snd_seq_midi_event tpm_tis snd_seq snd_page_alloc snd_timer snd_seq_device tpm tpm_bios snd soundcore nvram lp parport xfs exportfs usbhid hid firewire_ohci ahci xhci_hcd firewire_core libahci e1000e sdhci_pci sdhci crc_itu_t video [last unloaded: stap_56680466cf316006ee2ecb41a1d8b0a1_737]
[1443467.578483]
[1443467.578487] Pid: 6316, comm: rmmod Tainted: P W 2.6.38-13-generic #53-Ubuntu LENOVO 43193BG/43193BG
[1443467.578495] RIP: 0010:[<ffffffffa1126fd9>] [<ffffffffa1126fd9>] par_alloc+0x49/0x120 [dtracedrv]
[1443467.578520] RSP: 0000:ffff880002339e08 EFLAGS: 00010206
[1443467.578523] RAX: 0000000000000007 RBX: ffffffffa0ba7de0 RCX: 0000000000000000
[1443467.578527] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffffffa117d478
[1443467.578530] RBP: ffff880002339e38 R08: 0000000000000000 R09: ffffc90011a72000
[1443467.578533] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
[1443467.578537] R13: 0000000000000020 R14: 5f6567726168635f R15: 0000000000000000
[1443467.578542] FS: 00007fae7e42c720(0000) GS:ffff8800c3980000(0000) knlGS:0000000000000000
[1443467.578546] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[1443467.578549] CR2: 00007fd5f6a3ba08 CR3: 0000000112a12000 CR4: 00000000000006e0
[1443467.578553] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[1443467.578556] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[1443467.578561] Process rmmod (pid: 6316, threadinfo ffff880002338000, task ffff88004e3a44a0)
[1443467.578564] Stack:
[1443467.578566] 0000000000000282 ffff88000f49c900 ffffffffa0ba7de0 ffff880017346d00
[1443467.578572] ffff880017346c80 ffff88001d8d2c80 ffff880002339e68 ffffffffa1130a3f
[1443467.578577] ffff880002339e68 ffff88010e89af00 0000000000000000 ffff880017346d00
[1443467.578584] Call Trace:
[1443467.578604] [<ffffffffa1130a3f>] instr_destroy+0xcf/0x100 [dtracedrv]
[1443467.578620] [<ffffffffa1116d06>] dtrace_unregister+0x356/0x650 [dtracedrv]
[1443467.578640] [<ffffffffa11319dd>] instr_exit+0x8d/0x90 [dtracedrv]
[1443467.578659] [<ffffffffa113ab0d>] dtracedrv_exit+0x99/0x17b [dtracedrv]
[1443467.578666] [<ffffffff810a3fad>] sys_delete_module+0x18d/0x260
[1443467.578672] [<ffffffff815c3a95>] ? page_fault+0x25/0x30
[1443467.578678] [<ffffffff8100c002>] system_call_fastpath+0x16/0x1b
[1443467.578681] Code: 17 a1 48 89 f3 41 89 d5 49 89 cf e8 62 c3 00 00 4c 8b 35 d3 64 05 00 4d 85 f6 75 0f eb 44 0f 1f 40 00 4d 8b 76 10 4d 85 f6 74 37 <49> 39 5e 08 75 f1 45 39 26 75 ec 4d 85 ff 74 07 41 c7 07 00 00
[1443467.578726] RIP [<ffffffffa1126fd9>] par_alloc+0x49/0x120 [dtracedrv]
[1443467.578744] RSP <ffff880002339e08>
[1443467.578748] ---[ end trace 4b1ecd7c65bd3666 ]---
$ ps auxf | grep -e dtrace -e PID
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 14960 0.0 0.0 0 0 ? S< 21:50 0:00 \_ [dtrace_taskq]
tmr 19679 0.0 0.0 13256 1044 pts/28 S+ 22:38 0:00 \_ grep -e dtrace -e PID
$ sudo lsmod | grep dtrace
dtracedrv 744236 0
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment