That's my output for strace ngrep. I am afraid i am unable to interpret it. root@ludmila:~# strace ngrep execve("/bin/ngrep", ["ngrep"], [/* 30 vars */]) = 0 uname({sys="Linux", node="ludmila", ...}) = 0 fcntl64(0, F_GETFD) = 0 fcntl64(1, F_GETFD) = 0 fcntl64(2, F_GETFD) = 0 geteuid32() = 0 getuid32() = 0 getegid32() = 0 getgid32() = 0 brk(0) = 0x80d9d8c brk(0x80dad8c) = 0x80dad8c brk(0x80db000) = 0x80db000 open("/dev/urandom", O_RDONLY) = 3 read(3, "qG\\-\2575[\27\'\267\251\310\23\226!\310\250\361\35jf\327"..., 32) = 32 close(3) = 0 rt_sigaction(SIGINT, {0x8049fd0, [INT], SA_RESTORER|SA_RESTART, 0x8062dd8}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGQUIT, {0x8049fd0, [QUIT], SA_RESTORER|SA_RESTART, 0x8062dd8}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGABRT, {0x8049fd0, [ABRT], SA_RESTORER|SA_RESTART, 0x8062dd8}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGPIPE, {0x8049fd0, [PIPE], SA_RESTORER|SA_RESTART, 0x8062dd8}, {SIG_DFL}, 8) = 0 rt_sigaction(SIGWINCH, {0x8049dd0, [WINCH], SA_RESTORER|SA_RESTART, 0x8062dd8}, {SIG_DFL}, 8) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 ioctl(3, SIOCGIFCONF, 0xbffff090) = 0 ioctl(3, SIOCGIFCONF, 0xbffff090) = 0 ioctl(3, SIOCGIFFLAGS, 0x80da078) = 0 ioctl(3, SIOCGIFNETMASK, 0x80da078) = 0 ioctl(3, SIOCGIFBRDADDR, 0x80da078) = 0 ioctl(3, SIOCGIFFLAGS, 0x80da098) = 0 ioctl(3, SIOCGIFNETMASK, 0x80da098) = 0 ioctl(3, SIOCGIFBRDADDR, 0x80da098) = 0 ioctl(3, SIOCGIFFLAGS, 0x80da0b8) = 0 ioctl(3, SIOCGIFNETMASK, 0x80da0b8) = 0 ioctl(3, SIOCGIFBRDADDR, 0x80da0b8) = 0 ioctl(3, SIOCGIFFLAGS, 0x80da0d8) = 0 ioctl(3, SIOCGIFNETMASK, 0x80da0d8) = 0 ioctl(3, SIOCGIFBRDADDR, 0x80da0d8) = 0 ioctl(3, SIOCGIFFLAGS, 0x80da0f8) = 0 ioctl(3, SIOCGIFNETMASK, 0x80da0f8) = 0 ioctl(3, SIOCGIFBRDADDR, 0x80da0f8) = 0 close(3) = 0 socket(PF_PACKET, SOCK_RAW, 768) = 3 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 ioctl(3, SIOCGIFHWADDR, 0xbfffedf0) = 0 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 bind(3, {sa_family=AF_PACKET, proto=0x03, if1, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\1\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 close(3) = 0 socket(PF_PACKET, SOCK_RAW, 768) = 3 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 ioctl(3, SIOCGIFHWADDR, 0xbfffedf0) = 0 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 bind(3, {sa_family=AF_PACKET, proto=0x03, if3, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\3\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 close(3) = 0 socket(PF_PACKET, SOCK_RAW, 768) = 3 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 ioctl(3, SIOCGIFHWADDR, 0xbfffedf0) = 0 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 bind(3, {sa_family=AF_PACKET, proto=0x03, if3, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\3\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 close(3) = 0 socket(PF_PACKET, SOCK_RAW, 768) = 3 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 ioctl(3, SIOCGIFHWADDR, 0xbfffedf0) = 0 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 bind(3, {sa_family=AF_PACKET, proto=0x03, if3, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\3\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 close(3) = 0 socket(PF_PACKET, SOCK_RAW, 768) = 3 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 ioctl(3, SIOCGIFHWADDR, 0xbfffedf0) = 0 ioctl(3, SIOCGIFINDEX, 0xbfffedf0) = 0 bind(3, {sa_family=AF_PACKET, proto=0x03, if4, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\4\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 close(3) = 0 socket(PF_PACKET, SOCK_DGRAM, 768) = 3 ioctl(3, SIOCGIFINDEX, 0xbfffee20) = 0 close(3) = 0 socket(PF_PACKET, SOCK_RAW, 768) = 3 ioctl(3, SIOCGIFINDEX, 0xbfffeed0) = 0 ioctl(3, SIOCGIFHWADDR, 0xbfffeed0) = 0 ioctl(3, SIOCGIFINDEX, 0xbfffeed0) = 0 bind(3, {sa_family=AF_PACKET, proto=0x03, if3, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 setsockopt(3, SOL_PACKET, PACKET_ADD_MEMBERSHIP, "\3\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0", 16) = 0 brk(0x80eb000) = 0x80eb000 socket(PF_FILE, SOCK_STREAM, 0) = 4 connect(4, {sa_family=AF_FILE, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory) close(4) = 0 open("/etc/nsswitch.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1083, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000 read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1083 read(4, "", 4096) = 0 close(4) = 0 munmap(0x40000000, 4096) = 0 open("/etc/ld.so.cache", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=46459, ...}) = 0 mmap2(NULL, 46459, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40000000 close(4) = 0 open("/lib/libnss_compat.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\22\0\000"..., 1024) = 1024 fstat64(4, {st_mode=S_IFREG|0755, st_size=34422, ...}) = 0 mmap2(NULL, 32012, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4000c000 mprotect(0x40013000, 3340, PROT_NONE) = 0 mmap2(0x40013000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x6) = 0x40013000 close(4) = 0 open("/lib/libnsl.so.1", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p<\0\000"..., 1024) = 1024 fstat64(4, {st_mode=S_IFREG|0755, st_size=87560, ...}) = 0 brk(0x80ec000) = 0x80ec000 mmap2(NULL, 85088, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40014000 mprotect(0x40026000, 11360, PROT_NONE) = 0 mmap2(0x40026000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x11) = 0x40026000 mmap2(0x40027000, 7264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40027000 close(4) = 0 open("/lib/libc.so.6", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320U\1"..., 1024) = 1024 fstat64(4, {st_mode=S_IFREG|0755, st_size=1330257, ...}) = 0 mmap2(NULL, 1138532, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40029000 mprotect(0x40135000, 40804, PROT_NONE) = 0 mmap2(0x40135000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x10c) = 0x40135000 mmap2(0x4013d000, 8036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4013d000 close(4) = 0 open("/lib/ld-linux.so.2", O_RDONLY) = 4 read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\t\0\000"..., 1024) = 1024 fstat64(4, {st_mode=S_IFREG|0755, st_size=96817, ...}) = 0 mmap2(NULL, 84060, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x4013f000 mprotect(0x40153000, 2140, PROT_NONE) = 0 mmap2(0x40153000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x14) = 0x40153000 close(4) = 0 munmap(0x40000000, 46459) = 0 brk(0) = 0x80ec000 brk(0x810d000) = 0x810d000 open("/etc/nsswitch.conf", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=1083, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40000000 read(4, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1083 read(4, "", 4096) = 0 close(4) = 0 munmap(0x40000000, 4096) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ On Thu, 28 Oct 2004 13:50:58 +0530, Rajsekar <raj--cutme--sekar@xxxxxxxxxxxxxxxxxxxxxxxx> wrote: > You could try > > $ strace ngrep > > It might give you more info (example the library that is causing the > problem). > > -- > Rajsekar > > - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html