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: semantic error: not accessible at this address


 â 28 septembre 2013 01:04 CEST, "Frank Ch. Eigler" <fche@redhat.com>Â:

>> > Also, the output of stap-report (pasted somewhere online) would be
>> > helpful.
>> 
>> Here it is:
>>  https://gist.github.com/vincentbernat/8e50f9156f03184cde40
>> [...]
>
> This sounds a little bit like http://sourceware.org/PR15123, because
> your kernel is compiled with CONFIG_HAVE_FENTRY=Y but is built with a
> buggy gcc version.  If so, stap 2.3 is supposed to have a workaround,
> but perhaps it's not working for you.

I also tried with a GCC 4.7.3 but ends up with even less symbols.

> The extra information that would be handy is:
>
> % stap --vp 03 -L 'kernel.function("vfs_write")'

Attempting to extract kernel debuginfo build ID from /lib/modules/3.11.0-7-generic/build/vmlinux.id
Attempting to extract kernel debuginfo build ID from /sys/kernel/notes
blacklist regexps:
blfn: ^(atomic_notifier_call_chain|default_do_nmi|__die|die_nmi|do_debug|do_general_protection|do_int3|do_IRQ|do_page_fault|do_sparc64_fault|do_trap|dummy_nmi_callback|flush_icache_range|ia64_bad_break|ia64_do_page_fault|ia64_fault|io_check_error|mem_parity_error|nmi_watchdog_tick|notifier_call_chain|oops_begin|oops_end|program_check_exception|single_step_exception|sync_regs|unhandled_fault|unknown_nmi_error|xen_[gs]et_debugreg|xen_irq_.*|xen_.*_fl_direct.*|check_events|xen_adjust_exception_frame|xen_iret.*|xen_sysret64.*|test_ti_thread_flag.*|inat_get_opcode_attribute|system_call_after_swapgs|HYPERVISOR_[gs]et_debugreg|HYPERVISOR_event_channel_op|hash_64|hash_ptr|native_set_pte|.*raw_.*_lock.*|.*raw_.*_unlock.*|.*raw_.*_trylock.*|.*read_lock.*|.*read_unlock.*|.*read_trylock.*|.*write_lock.*|.*write_unlock.*|.*write_trylock.*|.*write_seqlock.*|.*write_sequnlock.*|.*spin_lock.*|.*spin_unlock.*|.*spin_trylock.*|.*spin_is_locked.*|rwsem_.*lock.*|.*mutex_.*lock.*|raw_.*|atomic_.*|atomic64_.*|get_bh|put_bh|.*apic.*|.*APIC.*|.*softirq.*|.*IRQ.*|.*_intr.*|__delay|.*kernel_text.*|get_current|current_.*|.*exception_tables.*|.*setup_rt_frame.*|.*preempt_count.*|preempt_schedule|__switch_to|special_mapping_.*|.*_pte_.*)$
blfn_ret: ^(do_exit|sys_exit|sys_exit_group)$
blfile: ^(kernel/kprobes\.c|arch/.*/kernel/kprobes\.c|.*/include/asm/io\.h|.*/include/asm/io_64\.h|.*/include/asm/bitops\.h|drivers/ide/ide-iops\.c|arch/.*/kernel/paravirt\.c|.*/include/asm/paravirt\.h|fs/seq_file\.c)$
blsection: ^(\.init\.|\.exit\.|\.devinit\.|\.devexit\.|\.cpuinit\.|\.cpuexit\.|\.meminit\.|\.memexit\.)
parse 'vfs_write', func 'vfs_write'
focused on module 'kernel' = [0xffffffff81000000-0xffffffff8240e000, bias 0 file /usr/lib/debug/boot/vmlinux-3.11.0-7-generic ELF machine |x86_64 (code 62)
focused on module 'kernel'
selected function vfs_write
selected function vfs_write
probe vfs_write@/home/bernat/src/linux-lts-saucy-3.11.0/fs/read_write.c:459 kernel reloc=.dynamic pc=0xffffffff811b42b0
saveargs: examining 'vfs_write' (dieoffset: 0x1774208)
saveargs: finding location for local 'file' (dieoffset: 0x177422e)
saveargs: local 'file' (dieoffset: 0x177422e) is not available at this address (0xffffffff811b42b0)
saveargs: finding location for local 'buf' (dieoffset: 0x177423e)
saveargs: local 'buf' (dieoffset: 0x177423e) is not available at this address (0xffffffff811b42b0)
saveargs: finding location for local 'count' (dieoffset: 0x177424e)
saveargs: local 'count' (dieoffset: 0x177424e) is not available at this address (0xffffffff811b42b0)
saveargs: finding location for local 'pos' (dieoffset: 0x177425e)
saveargs: local 'pos' (dieoffset: 0x177425e) is not available at this address (0xffffffff811b42b0)
saveargs: finding location for local 'ret' (dieoffset: 0x177426e)
saveargs: local 'ret' (dieoffset: 0x177426e) is not available at this address (0xffffffff811b42b0)
kernel.function("vfs_write@/home/bernat/src/linux-lts-saucy-3.11.0/fs/read_write.c:459") /* pc=_stext+0x1b40e8 */ /* <- kernel.function("vfs_write") */
chain[2]:
  [0]:
        locations[1]:
          [0]: kernel.function("vfs_write@/home/bernat/src/linux-lts-saucy-3.11.0/fs/read_write.c:459")
  [1]:
        locations[1]:
          [0]: kernel.function("vfs_write")
kernel.function("vfs_write@/home/bernat/src/linux-lts-saucy-3.11.0/fs/read_write.c:459")
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s) using 355052virt/181416res/119928shr/61840data kb, in 540usr/20sys/565real ms.
Running rm -rf /tmp/stapYuXWt6
Spawn waitpid result (0x0): 0
Removed temporary directory "/tmp/stapYuXWt6"

> % readelf -w ../vmlinux # like you had, but focusing on location list item
>                         # (offset) [5ec5ff] from .debug_loc

 [5ec5ff]      member
               name                 (strp) "spin_lock"
               decl_file            (data1) 18
               decl_line            (data2) 333
               type                 (ref4) [5ec679]
               data_member_location (block1)                 [   0] plus_uconst 16

Thanks!
-- 
 /* Nobody will ever see this message :-) */
panic("Cannot initialize video hardware\n");
	2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c


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