You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Use pprof like this: pprof /path/with/spa\ ce/in/it /path/to/profile.prof
What is the expected output? What do you see instead?
Only function addresses are printed instead of names.
What version of the product are you using? On what operating system?
perftools 1.8.3, Arch Linux (Kernel 3.0), 64 Bit
Please provide any additional information below.
It seems that spaces in paths or filenames are not handled correctly, which essentially
leads to addr2line being passed a broken path (see output below).
proj Tests$ pprof bin/Debug/proj\ Tests /tmp/proj-test.prof
Using local file bin/Debug/proj Tests.
Using local file /tmp/proj-test.prof.
/usr/bin/addr2line: 'bin/Debug/proj': No such file
Reported by sascha.liebsch on 2011-10-21 12:29:22
The text was updated successfully, but these errors were encountered:
Yeah, there are probably several places in pprof where we're not careful about quoting
arguments to system() or ``. If you wanted to write a patch to fix them up, that would
be great! Otherwise I'll add it to my list of things to do.
Ideally we'd change our system calls to use the list-form rather than the string-argument
form. If we could do that and still have it redirect stdout and stderr to /dev/null,
that would be ideal. May not be possible/easy, though.
Well, I'd need to learn Perl first before being able to write that patch, so I don't
think it's going to happen... ;)
However, having this bug report here should help people that run into the same issue
to not spend an hour or more ineffectively searching the web for help (like I did).
Once you know what's wrong, you can easily work around it, so no need to hurry. Spaces
are evil anyway.
Originally reported on Google Code with ID 372
Reported by
sascha.liebsch
on 2011-10-21 12:29:22The text was updated successfully, but these errors were encountered: