当前位置: 技术问答>linux和unix
solaris下程序运行错误
来源: 互联网 发布时间:2015-10-26
本文导语: make通过了,但是运行时出错了,还没进主程序,起线程时就中断了,signal 6中断,信息如下: E45004% adp* 退出 ((主存储器)信息转储) E45004% gdb adp* core GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free...
make通过了,但是运行时出错了,还没进主程序,起线程时就中断了,signal 6中断,信息如下:
E45004% adp*
退出 ((主存储器)信息转储)
E45004% gdb adp* 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.9"...
Core was generated by `adpTest_fuj'.
Program terminated with signal 6, Aborted.
Reading symbols from /export/home/ace/ACE-5.4.2/lib/libACE.so.5.4.2...done.
Loaded symbols for /export/home/ace/ACE-5.4.2/lib/libACE.so.5.4.2
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libcurses.so.1...done.
Loaded symbols for /usr/lib/libcurses.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /export/home/oracle/product/9.2/lib32//libclntsh.so.9.0...done.
Loaded symbols for /export/home/oracle/product/9.2/lib32//libclntsh.so.9.0
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /usr/local/lib/libstdc++.so.5...done.
Loaded symbols for /usr/local/lib/libstdc++.so.5
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /export/home/oracle/product/9.2/lib32//libwtc9.so...done.
Loaded symbols for /export/home/oracle/product/9.2/lib32//libwtc9.so
Reading symbols from /usr/lib/libsched.so.1...done.
Loaded symbols for /usr/lib/libsched.so.1
Reading symbols from /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
#0 0xfefb9740 in __sigprocmask () from /usr/lib/libthread.so.1
(gdb) where
#0 0xfefb9740 in __sigprocmask () from /usr/lib/libthread.so.1
#1 0xfefae970 in _resetsig () from /usr/lib/libthread.so.1
#2 0xfefae110 in _sigon () from /usr/lib/libthread.so.1
#3 0xfefb1150 in _thrp_kill () from /usr/lib/libthread.so.1
(gdb) quit
什么原因中断?
E45004% adp*
退出 ((主存储器)信息转储)
E45004% gdb adp* 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.9"...
Core was generated by `adpTest_fuj'.
Program terminated with signal 6, Aborted.
Reading symbols from /export/home/ace/ACE-5.4.2/lib/libACE.so.5.4.2...done.
Loaded symbols for /export/home/ace/ACE-5.4.2/lib/libACE.so.5.4.2
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libcurses.so.1...done.
Loaded symbols for /usr/lib/libcurses.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libgen.so.1...done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /export/home/oracle/product/9.2/lib32//libclntsh.so.9.0...done.
Loaded symbols for /export/home/oracle/product/9.2/lib32//libclntsh.so.9.0
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /usr/local/lib/libstdc++.so.5...done.
Loaded symbols for /usr/local/lib/libstdc++.so.5
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/libgcc_s.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /export/home/oracle/product/9.2/lib32//libwtc9.so...done.
Loaded symbols for /export/home/oracle/product/9.2/lib32//libwtc9.so
Reading symbols from /usr/lib/libsched.so.1...done.
Loaded symbols for /usr/lib/libsched.so.1
Reading symbols from /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
#0 0xfefb9740 in __sigprocmask () from /usr/lib/libthread.so.1
(gdb) where
#0 0xfefb9740 in __sigprocmask () from /usr/lib/libthread.so.1
#1 0xfefae970 in _resetsig () from /usr/lib/libthread.so.1
#2 0xfefae110 in _sigon () from /usr/lib/libthread.so.1
#3 0xfefb1150 in _thrp_kill () from /usr/lib/libthread.so.1
(gdb) quit
什么原因中断?
|
make -lthread
|
pstack core 看一下core文件的内容,多半儿可以定位出错的位置(函数)