免费注册 查看新帖 |

Chinaunix

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

help!!! redhat 下C++ "Segmentation fault "的原因? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-07-01 16:29 |只看该作者 |倒序浏览
我的一个应用程序,在我装的一台redhat 9.0和一台redhat 7.2下面运行一段时间后便会core dump,但在另外一台别人装的redhat 7.2机器下运行正常。

运行正常的机器不是我装的,所以不知道是不是我少装了补丁什么的,哪位大侠知道为什么啊。

下面是gdb看到的内容,fram 4以后是我自己写的内容
GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
Copyright 2001 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 "i386-redhat-linux"...
Core was generated by `./GSMGateWay'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/i686/libpthread.so.0...done.

warning: Unable to set global thread event mask: generic error
[New Thread 1024 (LWP 5339)]
Error while reading shared library symbols:
Can't attach LWP 5339: No such process
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libstdc++-libc6.2-2.so.3...done.
Loaded symbols for /usr/lib/libstdc++-libc6.2-2.so.3
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 chunk_free (ar_ptr=0x401e8620, p=0x809a85 at malloc.c:3180
3180 malloc.c: No such file or directory.
in malloc.c
(gdb) bt
#0 chunk_free (ar_ptr=0x401e8620, p=0x809a85 at malloc.c:3180
#1 0x40134bf4 in __libc_free (mem=0x809a860) at malloc.c:3154
#2 0x400761f6 in __builtin_delete (ptr=0x809a860) from /usr/lib/libstdc++-libc6.2-2.so.3
#3 0x4007621f in __builtin_vec_delete (ptr=0x809a860) from /usr/lib/libstdc++-libc6.2-2.so.3
#4 0x080559f9 in RTCS_CTstring::~RTCS_CTstring (this=0x8099fec, __in_chrg=2) at ../source/RTCSCString.cpp:58
.......
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP