- 论坛徽章:
- 0
|
我使用的编译器为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 有什么要注意的呢? |
|