免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3481 | 回复: 2
打印 上一主题 下一主题

solaris 8 上 用gdb 调试程序就Bus Error (core dumped)怎么解决? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-20 09:05 |只看该作者 |倒序浏览
我在solaris 8上 用gdb 调试程序,只要一执行r命令,就提示Bus Error (core dumped),怎么解决?\r\n其调试信息如下:\r\nsvr1 # gdb ./mgr_clt\r\nGNU gdb 6.0\r\nCopyright 2003 Free Software Foundation, Inc.\r\nGDB is free software, covered by the GNU General Public License, and you are\r\nwelcome to change it and/or distribute copies of it under certain conditions.\r\nType \"show copying\" to see the conditions.\r\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\r\nThis GDB was configured as \"sparc-sun-solaris2.8\"...\r\n(gdb) b main\r\nBreakpoint 1 at 0x10d6c: file mgr_clt.c, line 31.\r\n(gdb) r\r\nStarting program: /export/home/test/mgr_clt/mgr_clt \r\nBus Error (core dumped)

论坛徽章:
0
2 [报告]
发表于 2006-09-20 10:55 |只看该作者
后来发现是和oracle8有关系,只要一链接oracle8的库,加上-lclntsh  -loi 参数后调试就会出错,不链接这两个库就不会出错,为什么?谁有解决办法?

论坛徽章:
0
3 [报告]
发表于 2006-09-20 11:05 |只看该作者
svr1 # gdb ./mgr_clt  core \r\nGNU gdb 6.0\r\nCopyright 2003 Free Software Foundation, Inc.\r\nGDB is free software, covered by the GNU General Public License, and you are\r\nwelcome to change it and/or distribute copies of it under certain conditions.\r\nType \"show copying\" to see the conditions.\r\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\r\nThis GDB was configured as \"sparc-sun-solaris2.8\"...\r\nCore was generated by `/export/home/test/mgr_clt/mgr_clt \'.\r\nProgram terminated with signal 5, Trace/breakpoint trap.\r\nReading symbols from /u01/app/oracle/product/8.0.6/lib/libclntsh.so.1.0...done.\r\nLoaded symbols for /u01/app/oracle/product/8.0.6/lib/libclntsh.so.1.0\r\nReading symbols from /u01/app/oracle/product/8.0.6/lib/liboi.so...Bus Error (core dumped)\r\n\r\n是和liboi.so有关,如何解决呢?help me.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP