免费注册 查看新帖 |

Chinaunix

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

求助 在HP的aCC下使用 -G的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-08 14:37 |只看该作者 |倒序浏览
我使用的编译器为aCC: HP ANSI C++ B3910B A.03.50
编译的参数为  -g -v -AA +DD64 +DA2.0W  编译后使用正常
在改编译的参数为-G -v -AA +DD64 +DA2.0W 后 编译正常,但在运行时Memory fault(coredump)
gdb -c core的内容如下:

Detected 64-bit corefile.
Invoking /opt/langtools/bin/gdb64.
HP gdb 3.2 for PA-RISC 2.0 (wide), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.

Reading symbols from sync_wangtao...done.
Core was generated by `sync_wangtao'.
Program terminated with signal 11, Segmentation fault.

warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.


warning: section .data not found in /ora8i/app/oracle/product/8.1.7/lib64/libwtc8.sl
#0  0xc0000000000decb8 in pthread_mutex_destroy+0x20 () from /lib/pa20_64/libpthread.1
gdb) bt  
#0  0xc0000000000decb8 in pthread_mutex_destroy+0x20 () from /lib/pa20_64/libpthread.1
#1  0xc00000000030b8b8 in __thread_mutex_free+0x48 () from /lib/pa20_64/libc.2
#2  0xc000000000b4d690 in _HPMutexWrapper::~_HPMutexWrapper+0x40 () from /usr/lib/pa20_64/libstd_v2.2
#3  0x400000000001e82c in std::basic_string<char,std::char_traits<char>,std::allocator<char>>::_C_unlink+0x1dc ()
#4  0x400000000002c010 in std::basic_string<char,std::char_traits<char>,std::allocator<char>>::replace+0x880 ()
#5  0x4000000000038914 in std::basic_string<char,std::char_traits<char>,std::allocator<char>>:perator+=+0xc4 ()
#6  0x4000000000038034 in CTable::genSql+0x754 ()
#7  0x4000000000037898 in CTable::loadInfo+0x340 ()
#8  0x40000000000252f0 in CTableMgt::createTable+0x220 ()
#9  0x400000000003a758 in main+0x7f0 ()
使用-G 有什么要注意的呢?

论坛徽章:
0
2 [报告]
发表于 2006-12-08 16:15 |只看该作者
搞好了
少连接一个oracle的库(libwtc8.sl)导致的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP