Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile system is broken #234

Closed
aleixpol opened this issue Apr 13, 2020 · 4 comments
Closed

Profile system is broken #234

aleixpol opened this issue Apr 13, 2020 · 4 comments
Labels

Comments

@aleixpol
Copy link
Contributor

Describe the bug
None of the two options (kdesu, kdesudo) are current anymore.
I also tried modifying the code and use sudo, enter the password from the terminal, but it still didn't give me any profile information.

To Reproduce
Try to profile the system.

That's the output I got:

[sudo] password for apol: 
rewriting to /tmp/hotspot.DCEbKv
tee: /tmp/hotspot.DCEbKv: Permission denied
querying current privileges...
kernel.kptr_restrict = 0
kernel.perf_event_paranoid = -1
/sys/kernel/debug 755
/sys/kernel/debug/tracing 755

elevating privileges...
kernel.kptr_restrict = 0
kernel.perf_event_paranoid = -1
/sys/kernel/debug 755
/sys/kernel/debug/tracing 755

privileges elevated!

Then the stop button never really showed anything and pressing it again gave a
[warning] hotspot (unknown:0) - QProcess: Destroyed while process ("/usr/bin/sudo") is still running..

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Version Info (please complete the following information):

  • Linux Kernel version: 5.6.3-arch1-1
  • perf version: 5.6.g7111951b8d49
  • hotspot version (selfcompiled): master
  • elfutils: 0.178-2
@aleixpol aleixpol added the bug label Apr 13, 2020
@milianw
Copy link
Member

milianw commented Apr 21, 2020

hmm I'll have to check this. To admit, I rarely if ever use this mode as it creates huge files which are often hard to analyze.

@milianw
Copy link
Member

milianw commented May 15, 2020

very odd: https://stackoverflow.com/questions/61827673/root-cannot-write-to-file-in-tmpfs

I'll try to workaround this, but do you know why this is? afaik this used to work as-is, but now root cannot write to files in /tmp/ that are owned by other users?

milianw added a commit that referenced this issue May 15, 2020
Fixes disabled 'profile system' when an error was
visible on one of the other record type subpages.

Relates-To: #234
milianw added a commit that referenced this issue May 15, 2020
@milianw
Copy link
Member

milianw commented May 15, 2020

OK, latest master now works again for me - does it work for you too? I'm really surprised by the changed behavior though...

@aleixpol
Copy link
Contributor Author

aleixpol commented Jul 7, 2020

Sorry for the delay ^^' the issue in hotspot is fixed for me.

I tried to reproduce your problem from stack overflow and I couldn't reproduce. It doesn't make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants