This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eh_frame table too big


On Mon, 18 Feb 2013 18:09:27 -0800
Josh Stone <jistone@redhat.com> wrote:

> On 02/18/2013 03:38 PM, Dave Cameron wrote:
> > I'm trying to run a systemtap script on Firefox, but I get the
> > following warning when I invoke systemtap like:
> > 
> > stap firefox.stap -d /lib64/libpthread-2.15.so \
> > 	-d /usr/lib64/firefox/libmozsqlite3.so \
> > 	-d /usr/lib64/firefox/libxul.so
> > -d /usr/lib64/firefox/firefox \ -x `pidof firefox` 
> > 
> > WARNING: skipping module /usr/lib64/firefox/libxul.so eh_frame
> > table (too big: 6812836 > 6291456
> > 
> > -
> > 
> > Also after this probe compiled and loaded, I got a kpanic, 
> > which I was unable to capture, but I will try to reproduce.
> 
> We definitely need to address that!  I think I found a place where the
> unwind table is not completely skipped, possibly leading to bad memory
> references.  I'd appreciate if you could try the attached patch (while
> the max is still set too low for you).
> 
> > How can I bump this limit?
> 
> This is MAX_UNWIND_TABLE_SIZE in translate.cxx, currently set to 6MB.
> We have bumped this before for libxul.so, and can do so again.
> 
> Josh
> 

I will try the patch now, here is the calltrace from the dead kernels
log:

[  141.385017] stap_2220df8d9f449547f614e7e1db1bbf53_1263: systemtap: 2.1/0.155, base: ffffffffa04be000, memory: 22604data/49text/8ctx/2058net/25alloc kb, probes: 1
[  143.132015] BUG: unable to handle kernel paging request at ffffffffa1f61430
[  143.132122] IP: [<ffffffffa04c3fd0>] is_fde+0x10/0x72 [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.132245] PGD 1c0f067 PUD 1c13063 PMD 0 
[  143.132317] Oops: 0000 [#1] PREEMPT SMP 
[  143.132388] Modules linked in: stap_2220df8d9f449547f614e7e1db1bbf53_1263(O) iwldvm mac80211 btusb bluetooth iwlwifi snd_hda_codec_conexant snd_hda_intel coretemp joydev snd_hda_codec kvm_intel thinkpad_acpi cfg80211 snd_hwdep snd_pcm uhci_hcd ehci_pci ehci_hcd r852 sdhci_pci sdhci sm_common e1000e pcmcia kvm snd_timer usbcore tpm_tis tpm iTCO_wdt iTCO_vendor_support nand psmouse mmc_core firewire_ohci tpm_bios mtd firewire_core snd mei r592 lpc_ich sg rfkill yenta_socket i2c_i801 pcmcia_rsrc pcmcia_core nand_ids nand_ecc acpi_cpufreq mperf nvram battery memstick soundcore usb_common snd_page_alloc mfd_core wmi serio_raw thermal evdev ac processor microcode pcspkr
[  143.133513] CPU 1 
[  143.133548] Pid: 1236, comm: Timer Tainted: G           O 3.8.0-rc6-tink #13 LENOVO 6473TBM/6473TBM
[  143.133655] RIP: 0010:[<ffffffffa04c3fd0>]  [<ffffffffa04c3fd0>] is_fde+0x10/0x72 [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.133798] RSP: 0018:ffff8801bbc89bb8  EFLAGS: 00010086
[  143.133865] RAX: 0000000002706900 RBX: ffff88012906a3b8 RCX: 0000000000000001
[  143.133949] RDX: 000000000067f4a4 RSI: ffffffffa1adbc40 RDI: ffffffffa1f61430
[  143.134031] RBP: ffff8801bbc89bd8 R08: 0000000000000001 R09: 0000000000000001
[  143.134114] R10: 000000000000003b R11: 0000000000000000 R12: ffffffffa1469590
[  143.134197] R13: ffffffffa1f61430 R14: ffffffffa12ba750 R15: 0000000000000004
[  143.134281] FS:  00007f5fe3bfe700(0000) GS:ffff8801bbc80000(0000) knlGS:0000000000000000
[  143.134378] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  143.134446] CR2: ffffffffa1f61430 CR3: 0000000128c1f000 CR4: 00000000000007e0
[  143.134529] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  143.134612] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[  143.134696] Process Timer (pid: 1236, threadinfo ffff8801b351a000, task ffff8801b3789860)
[  143.134789] Stack:
[  143.134819]  ffff88012906a3b8 ffffffffa1469590 ffffffffa1f61430 ffffffffa12ba750
[  143.134932]  ffff8801bbc89d18 ffffffffa04c5d96 ffffe8ffffc800b6 ffffe8ffffc800b6
[  143.135043]  000000000000006a 000000000000006a ffff8801bbc89ca8 ffffffffa04c383c
[  143.135142] Call Trace:
[  143.135142]  <#DB> 
[  143.135142] 
[  143.135142]  [<ffffffffa04c5d96>] unwind_frame+0x430/0xf87 [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.135142]  [<ffffffffa04c383c>] ? _stp_vsnprintf+0x6f9/0x8d9 [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.135142]  [<ffffffffa04c6a0d>] unwind+0x120/0x13d [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.135142]  [<ffffffffa04c6c25>] _stp_stack_unwind_one_user+0xaa/0x104 [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.135142]  [<ffffffffa04c6dc8>] probe_3784+0x149/0x22f [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.135142]  [<ffffffff81187ac9>] ? sys_write+0x1/0x7e
[  143.135142]  [<ffffffff81187ac8>] ? sys_read+0x7e/0x7e
[  143.135142]  [<ffffffffa04c7f40>] enter_kprobe_probe+0x12b/0x293 [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.135142]  [<ffffffff81664d1d>] kprobe_exceptions_notify+0x131/0x446
[  143.135142]  [<ffffffff81187ac9>] ? sys_write+0x1/0x7e
[  143.135142]  [<ffffffff81665be3>] notifier_call_chain+0x37/0x63
[  143.135142]  [<ffffffff81665c4c>] __atomic_notifier_call_chain+0x3d/0x4f
[  143.135142]  [<ffffffff81665c72>] atomic_notifier_call_chain+0x14/0x16
[  143.135142]  [<ffffffff81665ca2>] notify_die+0x2e/0x30
[  143.135142]  [<ffffffff816635b9>] do_int3+0x47/0xd8
[  143.135142]  [<ffffffff81662ddb>] int3+0x2b/0x40
[  143.135142]  [<ffffffff81187ac8>] ? sys_read+0x7e/0x7e
[  143.135142]  <<EOE>> 
[  143.135142] 
[  143.135142]  [<ffffffff816692af>] ? tracesys+0xe1/0xe6
[  143.135142] Code: e8 4c 89 45 f0 4c 89 4d f8 c7 45 b0 08 00 00 00 48 89 45 c0 e8 6b fe ff ff c9 c3 55 48 89 e5 41 56 41 55 41 54 53 66 66 66 66 90 <44> 8b 37 48 89 fb 49 89 f4 41 89 d5 45 85 f6 74 09 45 89 f6 41 
[  143.135142] RIP  [<ffffffffa04c3fd0>] is_fde+0x10/0x72 [stap_2220df8d9f449547f614e7e1db1bbf53_1263]
[  143.135142]  RSP <ffff8801bbc89bb8>
[  143.135142] CR2: ffffffffa1f61430


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]