QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1154|回复: 12

实在无招,求救!!!!!

[复制链接]
发表于 2005-7-2 16:46:46 | 显示全部楼层 |阅读模式
一运行就报“已放弃”

[root@prince occi]# ./rh_conn.o
已放弃
[root@prince occi]# gdb ./rh_conn.o
GNU gdb Red Hat Linux (6.1post-1.20040607.62rh)
Copyright 2004 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-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r
Starting program: /home/learn_program/engineer_rh/occi/rh_conn.o
[Thread debugging using libthread_db enabled]
[New Thread -1208058976 (LWP 3244)]

Program received signal SIGABRT, Aborted.
[Switching to Thread -1208058976 (LWP 3244)]
0x001277a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb)
发表于 2005-7-2 22:00:05 | 显示全部楼层
。。。原来 LC_*=zh_CN.* 的时候有这么可笑的提示……

程序被 SIGABRT 杀死。。。不常见的错误
回复

使用道具 举报

发表于 2005-7-3 11:54:52 | 显示全部楼层
.o后缀有点诡异
你哪来的程序,自己编译的还是什么,有源代码吗?
回复

使用道具 举报

 楼主| 发表于 2005-7-14 14:01:07 | 显示全部楼层
SIGABRT
回复

使用道具 举报

 楼主| 发表于 2005-7-14 14:04:43 | 显示全部楼层
弄了好多天,现在问题变成这个样子了!!!
[root@prince occi]# ./rh_conn.o
已放弃
[root@prince occi]#

[root@prince occi]# strace ./rh_conn.o
execve("./rh_conn.o", ["./rh_conn.o"], [/* 37 vars */]) = 0
uname({sys="Linux", node="prince.zhang.com", ...}) = 0
brk(0)                                  = 0x804b000
access("/etc/ld.so.preload", R_OK)      = 0
open("/etc/ld.so.preload", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=17, ...}) = 0
old_mmap(NULL, 17, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb7fff000
close(3)                                = 0
open("/etc/libcwait.so", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\3\0"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=4184, ...}) = 0
old_mmap(NULL, 5656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ffd000
old_mmap(0xb7ffe000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xb7ffe000
close(3)                                = 0
munmap(0xb7fff000, 17)                  = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=86281, ...}) = 0
old_mmap(NULL, 86281, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe7000
close(3)                                = 0
open("/usr/lib/libclntsh.so.10.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\370\246"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=13489635, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fe6000
old_mmap(NULL, 12115540, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7458000
old_mmap(0xb7ecd000, 1056768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa75000) = 0xb7ecd000
old_mmap(0xb7fcf000, 93780, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7fcf000
mprotect(0xbffff000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
close(3)                                = 0
open("/usr/lib/libocci.so.10.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\230\376"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0644, st_size=789820, ...}) = 0
old_mmap(NULL, 786300, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7398000
old_mmap(0xb7457000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xbf000) = 0xb7457000
close(3)                                = 0
open("/usr/lib/libstdc++.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0cA\000"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=744136, ...}) = 0
old_mmap(0x3d8000, 766068, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3d8000
old_mmap(0x489000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb0000) = 0x489000
old_mmap(0x48e000, 20596, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x48e000
close(3)                                = 0
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\f\365<"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=30856, ...}) = 0
old_mmap(0x3ce000, 32184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3ce000
old_mmap(0x3d5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x3d5000
close(3)                                = 0
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 O\25\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1454835, ...}) = 0
old_mmap(0x140000, 1215644, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x140000
old_mmap(0x263000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x123000) = 0x263000
old_mmap(0x267000, 7324, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x267000
close(3)                                = 0
open("/mnt/winD/develop_client/ora/lib/tls/i686/libnnz10.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/winD/develop_client/ora/lib/tls/i686", 0xbfffecbc) = -1 ENOENT (No such file or directory)
open("/mnt/winD/develop_client/ora/lib/tls/libnnz10.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/winD/develop_client/ora/lib/tls", 0xbfffecbc) = -1 ENOENT (No such file or directory)
open("/mnt/winD/develop_client/ora/lib/i686/libnnz10.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/winD/develop_client/ora/lib/i686", 0xbfffecbc) = -1 ENOENT (No such file or directory)
open("/mnt/winD/develop_client/ora/lib/libnnz10.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\243\4"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=2121817, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7397000
old_mmap(NULL, 1631352, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7208000
old_mmap(0xb7372000, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x169000) = 0xb7372000
old_mmap(0xb7394000, 9336, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7394000
close(3)                                = 0
open("/mnt/winD/develop_client/ora/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\v)"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=15384, ...}) = 0
old_mmap(0x290000, 12388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x290000
old_mmap(0x292000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x292000
close(3)                                = 0
open("/mnt/winD/develop_client/ora/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\343&"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=179139, ...}) = 0
old_mmap(0x26b000, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x26b000
old_mmap(0x28c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x28c000
close(3)                                = 0
open("/mnt/winD/develop_client/ora/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@87\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=94480, ...}) = 0
old_mmap(0x36f000, 70108, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x36f000
old_mmap(0x37d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x37d000
old_mmap(0x37f000, 4572, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x37f000
close(3)                                = 0
open("/mnt/winD/develop_client/ora/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\344"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0755, st_size=95320, ...}) = 0
old_mmap(0x6fb000, 88064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x6fb000
old_mmap(0x70d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x70d000
old_mmap(0x70f000, 6144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x70f000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7207000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7206000
mprotect(0xb7208000, 1482752, PROT_READ|PROT_WRITE) = 0
mprotect(0xb7208000, 1482752, PROT_READ|PROT_EXEC) = 0
mprotect(0x263000, 4096, PROT_READ)     = 0
mprotect(0xb7398000, 782336, PROT_READ|PROT_WRITE) = 0
mprotect(0xb7398000, 782336, PROT_READ|PROT_EXEC) = 0
mprotect(0xb7458000, 10964992, PROT_READ|PROT_WRITE) = 0
mprotect(0xb7458000, 10964992, PROT_READ|PROT_EXEC) = 0
mprotect(0x13c000, 4096, PROT_READ)     = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xb72066c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xb7fe7000, 86281)               = 0
set_tid_address(0xb720670             = 4132
rt_sigaction(SIGRTMIN, {0x3733c0, [], SA_SIGINFO}, NULL, = 0
rt_sigaction(SIGRT_1, {0x373430, [], SA_RESTART|SA_SIGINFO}, NULL, = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff5d8, 31, (nil), 0}) = 0
brk(0)                                  = 0x804b000
brk(0x806c000)                          = 0x806c000
mmap2(NULL, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb71e3000
futex(0x293060, FUTEX_WAKE, 2147483647) = 0
open("/mnt/winD/develop_client/ora/lib/libociei.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=86281, ...}) = 0
old_mmap(NULL, 86281, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb71cd000
close(3)                                = 0
open("/lib/tls/i686/libociei.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib/tls/libociei.so", O_RDONLY)  = -1 ENOENT (No such file or directory)
stat64("/lib/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib/i686/libociei.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib/libociei.so", O_RDONLY)      = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/i686/libociei.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/libociei.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/i686/libociei.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbfffe254)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libociei.so", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\7\0"..., 512) = 512fstat64(3, {st_mode=S_IFREG|0644, st_size=66159371, ...}) = 0
old_mmap(NULL, 66131448, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb32bb000
old_mmap(0xb32bc000, 66129920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xb32bc000
close(3)                                = 0
munmap(0xb71cd000, 86281)               = 0
mmap2(NULL, 385024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325d000
gettimeofday({1121320838, 37843}, NULL) = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=165, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\0\0\3\0"..., 4096) = 165close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
times(NULL)                             = 429798945
rt_sigaction(SIGILL, {0xb7ecc40c, ~[RTMIN RT_1], 0}, {SIG_DFL}, = 0
rt_sigprocmask(SIG_BLOCK, NULL, [],   = 0
rt_sigaction(SIGILL, {SIG_DFL}, NULL, = 0
getcwd("/home/learn_program/engineer_rh/occi", 256) = 37
access("./network/admin/sqlnet.ora", F_OK) = 0
open("./network/admin/sqlnet.ora", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
brk(0x808e000)                          = 0x808e000
fstat64(3, {st_mode=S_IFREG|0644, st_size=173, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "# sqlnet.ora Network Configurati"..., 4096) = 173
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
access("/root/.sqlnet.ora", F_OK)       = 0
open("/root/.sqlnet.ora", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=173, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "# sqlnet.ora Network Configurati"..., 4096) = 173
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
access("/home/learn_program/engineer_rh/occi/cli_4132.trc", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/intchg.ora", F_OK)         = -1 ENOENT (No such file or directory)
access("./network/admin/intchg.ora", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/tnsnav.ora", F_OK)         = -1 ENOENT (No such file or directory)
access("./network/admin/tnsnav.ora", F_OK) = -1 ENOENT (No such file or directory)
gettimeofday({1121320838, 375764}, NULL) = 0
open("./network/names/.sdns.ora", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
access("/root/.tnsnames.ora", F_OK)     = -1 ENOENT (No such file or directory)
access("/etc/tnsnames.ora", F_OK)       = -1 ENOENT (No such file or directory)
access("./network/admin/tnsnames.ora", F_OK) = 0
gettimeofday({1121320838, 431815}, NULL) = 0
stat64("./network/admin/tnsnames.ora", {st_mode=S_IFREG|0644, st_size=670, ...}) = 0
open("./network/admin/tnsnames.ora", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=670, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "# tnsnames.ora Network Configura"..., 4096) = 670
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
uname({sys="Linux", node="prince.zhang.com", ...}) = 0
getuid32()                              = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ECONNREFUSED (Connection refused)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ECONNREFUSED (Connection refused)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1686, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1686
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=86281, ...}) = 0
old_mmap(NULL, 86281, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb3247000
close(3)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\32"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=45868, ...}) = 0
old_mmap(NULL, 41604, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb323c000
old_mmap(0xb3245000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0xb3245000
close(3)                                = 0
munmap(0xb3247000, 86281)               = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1609, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "root:0:0:root:/root:/bin/bash\n"..., 4096) = 1609
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
getcwd("/home/learn_program/engineer_rh/occi", 256) = 37
getuid32()                              = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1609, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "root:0:0:root:/root:/bin/bash\n"..., 4096) = 1609
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
rt_sigprocmask(SIG_BLOCK, [INT], NULL, = 0
rt_sigaction(SIGINT, {0xb7d755c4, ~[ILL ABRT BUS FPE SEGV XCPU XFSZ SYS RTMIN RT_1], SA_RESTART|SA_SIGINFO}, {SIG_DFL}, = 0
rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, = 0
gettimeofday({1121320839, 290849}, NULL) = 0
gettimeofday({1121320839, 309777}, NULL) = 0
open("/etc/resolv.conf", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=40, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "search zhang.com\nnameserver 218."..., 4096) = 40
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ECONNREFUSED (Connection refused)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ECONNREFUSED (Connection refused)
close(3)                                = 0
open("/etc/host.conf", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=17, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "order hosts,bind\n", 4096)     = 17
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
futex(0x267ec0, FUTEX_WAKE, 2147483647) = 0
open("/etc/hosts", O_RDONLY)            = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=188, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "# Do not remove the following li"..., 4096) = 188
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
access("./network/admin/sqlnet.ora", F_OK) = 0
open("./network/admin/sqlnet.ora", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=173, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(3, "# sqlnet.ora Network Configurati"..., 4096) = 173
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb325c000, 4096)                = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(1521), sin_addr=inet_addr("192.168.1.10")}, 16) = 0
getsockname(3, {sa_family=AF_INET, sin_port=htons(53920), sin_addr=inet_addr("192.168.1.10")}, [16]) = 0
getsockopt(3, SOL_SOCKET, SO_SNDBUF, [50388], [4]) = 0
getsockopt(3, SOL_SOCKET, SO_RCVBUF, [87616], [4]) = 0
setsockopt(3, SOL_TCP, TCP_NODELAY, [1], 4) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
gettimeofday({1121320840, 214114}, NULL) = 0
write(3, "\0\363\0\0\1\0\0\0\0019\1,\f\1\10\0\177\377\177\10\0\0"..., 243) = 243read(3, "\0\10\0\0\v\0\0\0", 2064)      = 8
write(3, "\0\363\0\0\1\0\0\0\0019\1,\f\1\10\0\177\377\177\10\0\0"..., 243) = 243read(3, "\0 \0\0\2\0\0\0\0018\f\1\10\0\177\377\1\0\0\0\0 AA\0\0"..., 2064) = 32
gettimeofday({1121320840, 644297}, NULL) = 0
gettimeofday({1121320840, 691564}, NULL) = 0
write(3, "\0\234\0\0\6\0\0\0\0\0\336\255\276\357\0\222\n\20\3\0\0"..., 156) = 156
read(3, "\0\177\0\0\6\0\0\0\0\0\336\255\276\357\0u\t \4\0\0\4\0"..., 2064) = 127rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_DFL}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0readlink("/proc/self/fd/0", "/dev/pts/5", 4095) = 10
open("/proc/self/cmdline", O_RDONLY)    = 4
read(4, "./rh_conn.o\0", 255)           = 12
close(4)                                = 0
getuid32()                              = 0
open("/etc/passwd", O_RDONLY)           = 4
fcntl64(4, F_GETFD)                     = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1609, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb325c000
read(4, "root:0:0:root:/root:/bin/bash\n"..., 4096) = 1609
close(4)                                = 0
munmap(0xb325c000, 4096)                = 0
write(3, "\0/\0\0\6\0\0\0\0\0\1\6\5\4\3\2\1\0Linuxi386/Linu"..., 47) = 47
read(3, "\0\314\0\0\6\0\0\0\0\0\1\6\0Linuxi386/Linux-2.0"..., 2064) = 204
brk(0x80b3000)                          = 0x80b3000
mmap2(NULL, 303104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb31f2000
write(3, "\0<\0\0\6\0\0\0\0\0\2R\3R\3\2\33\6\1\1\1\r\1\1\3\1\1\1"..., 60) = 60
read(3, "\0\26\0\0\6\0\0\0\0\0\2\200\0\201\220\261<<\200\0\0\0", 2064) = 22
write(3, "\0\361\0\0\6\0\0\0\0\0\3v\2\230\256\5\10\f\0\0\0\1\0\0"..., 241) = 241read(3, "\0\245\0\0\6\0\0\0\0\0\10\1\0\f\0\0\0\fAUTH_SESSKEY \0"..., 2064) = 165getcwd("/home/learn_program/engineer_rh/occi", 256) = 37
gettimeofday({1121320842, 189218}, NULL) = 0
getuid32()                              = 0
getppid()                               = 4131
rt_sigaction(SIGTSTP, {SIG_IGN}, {SIG_IGN}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0readlink("/proc/self/fd/0", "/dev/pts/5", 4095) = 10
getuid32()                              = 0
open("/etc/passwd", O_RDONLY)           = 4
fcntl64(4, F_GETFD)                     = 0
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1609, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb31f1000
read(4, "root:0:0:root:/root:/bin/bash\n"..., 4096) = 1609
close(4)                                = 0
munmap(0xb31f1000, 4096)                = 0
gettimeofday({1121320842, 192112}, NULL) = 0
write(3, "\1\213\0\0\6\0\0\0\0\0\3s\3\230\256\5\10\f\0\0\0\1\1\0"..., 395) = 395read(3, "\0\v\0\0\f\0\0\0\1\0\1", 2064) = 11
write(3, "\0\v\0\0\f\0\0\0\1\0\2", 11)  = 11
read(3, "\0\v\0\0\f\0\0\0\1\0\2", 2064) = 11
read(3, "\0\255\0\0\6\0\0\0\0\0\4\1\0\0\0\1\0\0\0\0\25\4\0\0\0\0"..., 2064) = 173
setsockopt(3, SOL_SOCKET, SO_SNDTIMEO, "\0\0\0\0\0\0\0\0", 8) = 0
setsockopt(3, SOL_SOCKET, SO_RCVTIMEO, "\0\0\0\0\0\0\0\0", 8) = 0
write(3, "\0\n\0\0\6\0\0\0\0@", 10)     = 10
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [INT], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0xb7d755c4, ~[ILL ABRT BUS FPE KILL SEGV STOP XCPU XFSZ SYS RTMIN RT_1], SA_RESTART|SA_SIGINFO}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, 8) = 0
futex(0x48d934, FUTEX_WAKE, 2147483647) = 0
futex(0x3d5d7c, FUTEX_WAKE, 2147483647) = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(4132, 4132, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
[root@prince occi]#
回复

使用道具 举报

 楼主| 发表于 2005-7-14 14:06:55 | 显示全部楼层
请高手看看呀??
急死人呀!  半个多月了!!!

眼睛都哭出血了。。。。
回复

使用道具 举报

发表于 2005-7-14 15:24:12 | 显示全部楼层
看什么啊?
回复

使用道具 举报

 楼主| 发表于 2005-7-14 15:48:42 | 显示全部楼层
为什么会运行不起来呀
为什么会:--- SIGABRT (Aborted) @ 0 (0) --
回复

使用道具 举报

发表于 2005-7-14 16:28:00 | 显示全部楼层
你不把代码贴出来,不好看噻
回复

使用道具 举报

发表于 2005-7-14 16:30:45 | 显示全部楼层
申请内存太多了吧
回复

使用道具 举报

发表于 2005-7-14 16:32:25 | 显示全部楼层
申请内存太多了吧
回复

使用道具 举报

发表于 2005-7-17 19:20:21 | 显示全部楼层
忽然想起来,abort() 会发送 SIGABRT,而没有被 catch 的 C++ exception 和 abort 都会间接调用 abort() 所以……
回复

使用道具 举报

发表于 2005-7-20 11:54:09 | 显示全部楼层
gdb一下不就搞定了.

gdb ./rh_conn.o

在出现SIGABRT时候,用 bt 打印调用堆栈.

使用 p 打印当前运行堆栈中的变量值,还可以 up ,down 切换堆栈的位置.

例如这个程序
void sub_proc2()
{
    int *i = NULL;
    *i = 1; //这里会core
}

void sub_proc()
{
    sub_proc2();
}

int main(int argc,char **argv)
{
      int j = 10;
      sub_proc();
      return 0;
}

上面这个程序SIGABRT时候,l -- 查看当前出错的行. p i -- 显示 i的内容. p *i 显示 i指向的整形变量的内容.
另外,如果需要查看main()中 j 的值,可以bt -- 显示调用堆栈,然后 up up(定位到main()的堆栈). 接着 p j.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 17:30 , Processed in 0.049545 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表