-
Notifications
You must be signed in to change notification settings - Fork 71
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
./qtinspector pid can not work #5
Comments
You need to find out why the program is crashing when trying to call dlopen(). In Change this:
To
And let me know what output you get in gdb.log |
uname -a info: Linux centos66 2.6.32-504.el6.i686 #1 SMP Wed Oct 15 03:02:07 UTC 2014 i686 i686 i386 GNU/Linux |
That stacktrace is missing useful information unfortunately because as GDB's output says, it put the program back into the state it was in before the crash happened. Can you try adding the 'set unwindonsignal off' command before the 'call dlopen(...)' command as it suggests:
|
after add gdbStream << "set unwindonsignal off\n"; |
Ah, that's interesting. What is the full path to the 'qthello' program? There might be an issue with handling of non-ASCII characters. Can you also install the QtCore debugging libraries (typically in an Apt package such as libqt4-dbg) and repeat the steps above. That will give more info in the backtrace. Also, to repeat what I said earlier, you don't need to email me manually when you reply to the bug report. GitHub sends me notification emails automatically. |
I move qthello to non-ASCII path, but the output is just same as before. And I try to install the libqt4-dbg by yum install libqt4-dbg, but there is no this package. |
gdb.log info:
&"call dlopen("/home/kkk/fk/Qt-Inspector-master/lib/libQtInspector.so",2)\n"
~"\nProgram received signal "
~"SIGSEGV, Segmentation fault.\n"
~"0x00000002 in ?? ()\n"
shell output:
Local socket state changed QLocalSocket::ConnectingState
Local socket reported error QLocalSocket::ServerNotFoundError
Local socket state changed QLocalSocket::UnconnectedState
Failed to connect to local socket server in target process 6656
Failed to inject helper library into process
Failed to send top-level widget request fetch to child process
How to fix it?
The text was updated successfully, but these errors were encountered: