[Gammaray-interest] LD_PRELOADing on QNX
Volker Krause
volker.krause at kdab.com
Tue Mar 26 09:41:27 CET 2019
Hi,
GammaRay on QNX should work, and ARM64 also works, the combination however is
untested.
Regarding "raw" injection with LD_PRELOAD, while not officially intended that
way, it mostly works in practice. The main problem is getting settings to the
probe, as the usual channel for that isn't available (a local socket, which is
where the error Christian posted comes from).
By default GammaRay will try to pick the right network interface to listen for
connections on, but it might end up picking some internal interface or none at
all. The --listen command line parameter allows you to change that normally,
to send this to a manually injected GammaRay use the GAMMARAY_ServerAddress
environment variable.
So the following example works here on Linux at least, forcing a non-standard
port and making it listen only for local connection (you probably want the
external IP instead, to achieve the opposite):
export GAMMARAY_ServerAddress="tcp://127.0.0.1:12345"
LD_PRELOAD=<prefix>/gammaray/2.11/qt5_12-x86_64/gammaray_probe.so <target>
I hope this helps a bit.
Regards,
Volker
On Friday, 22 March 2019 18:48:53 CET Cristian Adam wrote:
> Hi,
>
> I am trying to use Gamma Ray on a QNX ARM64 system.
>
> The system has Qt 5.12 configured without "useless" things like QProcess,
> which leaves me the option to just build the GammaRay probe.
>
> I have successfully build it. But now I don't know how to enable it in the
> system.
>
> I've tried putting in /etc/profile in
> LD_PRELOAD=/opt/qt5/lib/libgammaray_probe-qt5_12-arm.so, but if I do an
> nmap -sT, no network port gets opened.
>
> How do I enable remote access to this system?
>
> Cheers,
> Cristian.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4664 bytes
Desc: not available
URL: <http://mail.kdab.com/pipermail/gammaray-interest/attachments/20190326/91655ed9/attachment.p7s>
More information about the Gammaray-interest
mailing list