jzarr wrote:
> Backtrace below, used standard build -g -02
>
> (gdb) r
> Starting program: /bin/opreport --session-dir=/t/op/ session:test_data -l
> image:/t/op/vmlinux
> Overflow stats not available
> CPU: CPU with timer interrupt, speed 0 MHz (estimated)
> Profiling through timer interrupt
>
> Program received signal SIGSEGV, Segmentation fault.
This stack trace looks pretty much line the one reported in:
http://sourceforge.net/tracker/?func=detail&aid=1921984&group_id=16191&atid=116191
That bug was eventually resolved when the user upgraded their version of binutils, implying there was a bug in the BFD library. Can you upgrade binutils?
-Maynard
> op_bfd (this=0xbea21988, fname=<value optimized out>,
> symbol_filter=@0xbea219f8, extra_images=<value optimized out>, ok=@0x0)
> at op_bfd.cpp:161
> 161 op_bfd.cpp: No such file or directory.
> in op_bfd.cpp
> (gdb) bt
> #0 op_bfd (this=0xbea21988, fname=<value optimized out>,
> symbol_filter=@0xbea219f8, extra_images=<value optimized out>, ok=@0x0)
> at op_bfd.cpp:161
> #1 0x0004b27c in populate_for_image (samples=@0xbea21b30, ip=@0xbffc0,
> symbol_filter=@0x1, has_debug_info=0xbea21b54) at populate.cpp:70
> #2 0x0000ef4c in (anonymous namespace)::opreport (spec=<value optimized
> out>)
> at opreport.cpp:576
> #3 0x0001f3b8 in run_pp_tool (argc=<value optimized out>, argv=0xbea21da4,
> fct=0xeb2c <(anonymous namespace)::opreport(options::spec const&)>)
> at common_option.cpp:198
> #4 0x402551cc in __libc_start_main () from /lib/libc.so.6
> #5 0x0000c58c in _start ()
> (gdb)
>
>
>
>
> jzarr wrote:
>> Hi,
>> I am using oprofile for the first time. I have cross-compiled oprofile
>> 0.9.5 for the I.MX 27 cpu (armv5). When i execute "opreport
>> --session-dir=/t/op/ session:test_data" i receive the basic summary.
>> However, when i run "opreport --session-dir=/t/op/ session:test_data -l
>> image:/t/op/vmlinux" i receive a segmentation fault.
>>
>> Overflow stats not available
>> CPU: CPU with timer interrupt, speed 0 MHz (estimated)
>> Profiling through timer interrupt
>> Segmentation fault
>>
>> The steps i am following are:
>> opcontrol --start --vmlinux=/t/op/vmlinux --session-dir=/t/op/
>> opcontrol --dump
>> opcontrol --stop
>> opcontrol --save=test_data
>> opreport --session-dir=/t/op/ session:test_data : Works just fine
>> opreport --session-dir=/t/op/ session:test_data -l image:/t/op/vmlinux :
>> Segfaults
>>
>> The location /t/op is NFS mounted and vmlinux is present and is a built
>> with symbols.
>>
>> My log file contains the following:
>> "kernel pointer size: 4
>>
>> Tue Sep 22 14:41:13 2009
>>
>>
>> -- OProfile Statistics --
>> Nr. sample dumps: 1
>> Nr. non-backtrace samples: 30711
>> Nr. kernel samples: 30709
>> Nr. lost samples (no kernel/user): 0
>> Nr. lost kernel samples: 0
>> Nr. incomplete code structs: 0
>> Nr. samples lost due to sample file open failure: 0
>> Nr. samples lost due to no permanent mapping: 0
>> Nr. event lost due to buffer overflow: 0
>> Nr. samples lost due to no mapping: 0
>> Nr. backtraces skipped due to no file mapping: 0
>> Nr. samples lost due to no mm: 0
>>
>> ---- Statistics for cpu : 0
>> Nr. samples lost cpu buffer overflow: 0
>> Nr. samples received: 59895
>> Nr. backtrace aborted: 0
>> Nr. samples lost invalid pc: 0
>> Failed to exec opjitconv: No such file or directory
>> JIT dump processing exited abnormally: 1
>> JIT dump processing exited abnormally: 1
>> JIT dump processing exited abnormally: 1
>> Failed to exec opjitconv: No such file or directory
>> JIT dump processing exited abnormally: 1
>> JIT dump processing exited abnormally: 1
>> Failed to exec opjitconv: No such file or directory
>> Received SIGHUP.
>> JIT dump processing exited abnormally: 1"
>>
>> My /var/lib/ directory is empty. If there is any other debug information i
>> can provide please let me know. I am executing opreport on my ARM target,
>> if there is a way to execute the report on my host PC i am willing to give
>> it a try. Any help is appreciated.
>>
>> Thanks,
>> Joshua Zarr
>>
>
|