[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Problems with strace and gprof in ppc64le



On 07/31/2014,Vitor de Lima wrote:

Hi,

Hello,

I've been using debian for ppc64le for a while and I stumbled across some issues.

The first one is strace, when I call

strace ls

It just segfaults.
>
The second one is gprof, if I build a hello world app like this:

vitor@debian-le-1-2:~/microbenchmarks/gcc/microbenchmarks# gcc -pg hello.c -o hello
vitor@debian-le-1-2:~/microbenchmarks/gcc/microbenchmarks# ./hello
monstartup: out of memory
Hello world
vitor@debian-le-1-2:~/microbenchmarks/gcc/microbenchmarks# gprof hello
gmon.out: No such file or directory

It does not work as expected.

What is the version of your strace? and what is the repository where you got the package?

I have this:
root@debian-le-1-2:/home/BUILD/t/a# dpkg -l strace
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  strace         4.5.20-2.3+p ppc64el      A system call tracer

About strace, it runs on my debian ppc64el:
root@debian-le-1-2:/tmp/t# strace ls
execve("/bin/ls", ["ls"], [/* 25 vars */]) = 0
brk(0)                                  = 0x100326b0000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=93751, ...}) = 0
mmap(NULL, 93751, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3fff9ba50000
<snip>
openat(AT_FDCWD, ".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 2 entries */, 32768)     = 48
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
close(1)                                = 0
close(2)                                = 0
exit_group(0)                           = ?


About gprof, I get the same as you. But I have an "old" gcc-4.8, it could be a good thing to try with a recent gcc. I'll try this and let you know.

Regards,
Erwan.


Reply to: