From owner-freebsd-hackers@FreeBSD.ORG Sun May 18 06:02:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7BAA37B401 for ; Sun, 18 May 2003 06:02:48 -0700 (PDT) Received: from mwinf0302.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CB1E43F93 for ; Sun, 18 May 2003 06:02:47 -0700 (PDT) (envelope-from rmkml@wanadoo.fr) Received: from wanadoo.fr (unknown [80.15.82.22]) by mwinf0302.wanadoo.fr (SMTP Server) with ESMTP id 07AE5C00029B for ; Sun, 18 May 2003 15:02:46 +0200 (CEST) Sender: test@wanadoo.fr Message-ID: <3EC78490.532D5A75@wanadoo.fr> Date: Sun, 18 May 2003 15:03:12 +0200 From: rmkml X-Mailer: Mozilla 4.8 [en] (...; U; Linux 2.4.21-pre2 i686) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: core with incorrect fd ... (File Descriptor) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2003 13:02:49 -0000 Hi, I use Freebsd 4.8 Release (with no patch/cvs) and no debug option in kernel I have a program that use libc_r Program is client / server This morning, this program have a core with signal 10, Bus error on incorrect fd : (gdb) bt ful #0 0x804b387 in select_fd (fd=-1207959548, maxtime=1275068416, writep=0) at cnx_utils.c:44 fds = {fds_bits = {0 }} exceptfds = {fds_bits = {0 , 672012529, 672321100, 3145641596, 672048692, 672321100, 1, 137907200, 0, 0, 4294967295, 3145641644, 672049282, 3087007748, 0, 0, 672040120, 672321100, 0}} #1 0x804b4ce in get_line_from_sock (fd=-1207959548, buf=0xbb7ebf
, len=503316496, timeout=1275068416) at cnx_utils.c:105 buf = 0xbb7eae9c "" len = 4096 res = -1 cur = -1140850688 ptr = 0xbb7ebfb8 "" #2 0x804c7 in ?? () No symbol table info available. Cannot access memory at address 0xe3bb7ecf. A process since to crash after a valid connection (accept()) so the fd is normally correct ... A program has run well, with an average one connexion by second, and uptime box is 13 days ... Have anyone any ideas where to look for ? Can we trust in gdb values ? (because gdb is not multi-thread) Thanks for Answers Regards.