免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-20 09:05 |只看该作者 |倒序浏览
我在solaris 8上 用gdb 调试程序,只要一执行r命令,就提示Bus Error (core dumped),怎么解决?
其调试信息如下:
svr1 # gdb ./mgr_clt
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) b main
Breakpoint 1 at 0x10d6c: file mgr_clt.c, line 31.
(gdb) r
Starting program: /export/home/test/mgr_clt/mgr_clt
Bus 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
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
Core was generated by `/export/home/test/mgr_clt/mgr_clt '.
Program terminated with signal 5, Trace/breakpoint trap.
Reading symbols from /u01/app/oracle/product/8.0.6/lib/libclntsh.so.1.0...done.
Loaded symbols for /u01/app/oracle/product/8.0.6/lib/libclntsh.so.1.0
Reading symbols from /u01/app/oracle/product/8.0.6/lib/liboi.so...Bus Error (core dumped)

是和liboi.so有关,如何解决呢?help me.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP