Program received signal SIGSEGV, Segmentation fault. 0x08098708 in listen_for_packets (run_election=false) at nmbd/nmbd_packets.c:1958 1958 if (!FD_ISSET(sock_array[i],&r_fds)) { (gdb) bt full #0 0x08098708 in listen_for_packets (run_election=false) at nmbd/nmbd_packets.c:1958 packet_type = NMB_PACKET packet = (struct packet_struct *) 0x28712400 client_port = 137 packet_name = 0x833cddc "nmb" client_fd = 8 i = 8 r_fds = {__fds_bits = {256, 0 }} w_fds = {__fds_bits = {0 }} selrtn = 1 timeout = {tv_sec = 1, tv_usec = 0} dns_fd = -1 processed_packet_list = (struct processed_packet *) 0x0 listen_set = (fd_set *) 0x28709280 listen_number = 12 sock_array = (int *) 0x28703100 maxfd = 13 __FUNCTION__ = "listen_for_packets" #1 0x080822e1 in process () at nmbd/nmbd.c:493 t = 1309298886 frame = (TALLOC_CTX *) 0x28703070 run_election = false #2 0x0808365d in main (argc=5, argv=0xbfbfea50) at nmbd/nmbd.c:1003 pc = 0x287041c0 p_lmhosts = 0x0 opt = -1 long_options = {{longName = 0x0, shortName = 0 '\0', argInfo = 4, arg = 0x840f3a0, val = 0, descrip = 0x8334716 "Help options:", argDescrip = 0x0}, {longName = 0x8334724 "daemon", shortName = 68 'D', argInfo = 0, arg = 0x0, val = 1000, descrip = 0x833472b "Become a daemon(default)", argDescrip = 0x0}, { longName = 0x8334744 "interactive", shortName = 105 'i', argInfo = 0, arg = 0x0, val = 1001, descrip = 0x8334750 "Run interactive (not a daemon)", argDescrip = 0x0}, {longName = 0x833476f "foreground", shortName = 70 'F', argInfo = 0, arg = 0x0, val = 1002, descrip = 0x833477c "Run daemon in foreground (for daemontools & etc)", argDescrip = 0x0}, { longName = 0x83347ad "no-process-group", shortName = 0 '\0', argInfo = 0, arg = 0x0, val = 1003, descrip = 0x83347c0 "Don't create a new process group", argDescrip = 0x0}, {longName = 0x83347e1 "log-stdout", shortName = 83 'S', argInfo = 0, arg = 0x0, val = 1004, descrip = 0x83347ec "Log to stdout", argDescrip = 0x0}, { longName = 0x83347fa "hosts", shortName = 72 'H', argInfo = 1, arg = 0xbfbfe9e0, val = 0, descrip = 0x8334800 "Load a netbios hosts file", argDescrip = 0x0}, {longName = 0x833481a "port", shortName = 112 'p', argInfo = 2, arg = 0x840ae00, val = 0, descrip = 0x833481f "Listen on the specified port", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\0', argInfo = 4, arg = 0x840f0a0, val = 0, descrip = 0x833483c "Common samba options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\0', argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}} frame = (TALLOC_CTX *) 0x0 is_daemon = true opt_interactive = true Fork = false no_process_group = false log_stdout = true __FUNCTION__ = "main" (gdb) p *(int(*)[50])sock_array $13 = {8, -1, 12, 10, 9, -1, 13, 11, -401273741, 0 }