[Gammaray-interest] trying gamma ray
Kevin Funk
kevin.funk at kdab.com
Thu Feb 23 09:28:47 CET 2017
On Wednesday, 22 February 2017 10:07:36 CET Aras Balali Moghaddam wrote:
> Hello gammaray people!
> I would like to try GammaRay with my project. I have not been able to use
> it yet. I am building and running my app using 64bit Ubuntu 16.04 and Qt
> 5.8.1 that I build from source. I build and install gammaray according to
> readme file and then I can start gammaray from terminal as root. Then I run
> my app from qt creator. Once my app is running I can see it in the list of
> processes in gammaray. However, when I select the process for my app and
> click attach, I see the following error:
>
> ```
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
> Detected ABI qt5_8-x86_64, using ABI qt5_8-x86_64.
> Uh-oh, there is no default attach injector on this platform.
> See <https://github.com/KDAB/GammaRay/wiki/Known-Issues> for troubleshooting
> ```
Heya,
This got solved on the #gammaray IRC channel in the meantime.
The problem was that the system security feature to disallow attaching to
other processes was not disabled. Read:
https://github.com/KDAB/GammaRay/wiki/Known-Issues#gdb-method-fails-to-attach-to-running-process
I've pushed a series of patches to 2.7 branch which make gammaray print better
diagnostics in such scenarios. If that happens again, gammaray will now print:
Potential errors:
Error: gdb: Yama security extension is blocking runtime attaching, see
/proc/sys/kernel/yama/ptrace_scope
Error: lldb: The debugger executable 'lldb' could not be found
Uh-oh, there is no default attach injector on this platform.
See <https://github.com/KDAB/GammaRay/wiki/Known-Issues> for
troubleshooting
Hope that helps,
Kevin
> I looked at the known-issues wiki but I could not find a solution that
> applies to me. Do I need to install an injector? What is it and how can I
> install it?
--
Kevin Funk | kevin.funk at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7021 bytes
Desc: not available
URL: <http://mail.kdab.com/pipermail/gammaray-interest/attachments/20170223/759efdec/attachment.p7s>
More information about the Gammaray-interest
mailing list