如何调试基于 mozilla 的二进制应用程序?
Komodo Edit 在我的系统上崩溃了,我尝试调试它,在 komodo 脚本中添加了“-g”选项,
然后我得到:
[新线程 0xa80c2b70 (LWP 5102)] [新线程0xa78c1b70 (LWP 5107)]
Program received signal SIGSEGV, Segmentation fault.
0xa97e1f10 in ?? () from /usr/lib/librsvg-2.so.2
(gdb) bt
#0 0xa97e1f10 in ?? () from /usr/lib/librsvg-2.so.2
#1 0x00000000 in ?? ()
(gdb) c
Continuing.
Operation not permitted
有什么方法可以找出这里的真正问题吗? 我想知道最后一个字符串“不允许操作”来自哪里,但是是怎么来的? 非常感谢!
Komodo Edit crashed on my system , and i tried to debug it , added '-g' option inside komodo script,
And i got:
[New Thread 0xa80c2b70 (LWP 5102)]
[New Thread 0xa78c1b70 (LWP 5107)]
Program received signal SIGSEGV, Segmentation fault.
0xa97e1f10 in ?? () from /usr/lib/librsvg-2.so.2
(gdb) bt
#0 0xa97e1f10 in ?? () from /usr/lib/librsvg-2.so.2
#1 0x00000000 in ?? ()
(gdb) c
Continuing.
Operation not permitted
Is there any way to find out the real problem here ?
I wanted to know where that last string 'Operation not permitted' come from , but how ?
Many thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你这么说时,你的意思是你将
-g
作为命令行参数传递了吗?如果是这样,那就不行了。在 Komodo Edit 编译期间,需要将
-g
(或-ggdb
)传递给gcc
,以便调试符号包含在输出中。When you say this, do you mean that you passed
-g
as a command-line argument?If so, that won't work.
-g
(or-ggdb
) needs to be passed togcc
, during compilation of Komodo Edit, so that debugging symbols are included in the output.