From owner-freebsd-current@FreeBSD.ORG Wed Jul 27 09:35:59 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA18A16A41F for ; Wed, 27 Jul 2005 09:35:59 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACCF743D4C for ; Wed, 27 Jul 2005 09:35:58 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id j6R9Zsm6086327 for ; Wed, 27 Jul 2005 12:35:54 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Wed, 27 Jul 2005 12:35:54 +0300 (EEST) From: Dmitry Pryanishnikov To: freebsd-current@freebsd.org Message-ID: <20050727123015.V81389@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Mailman-Approved-At: Wed, 27 Jul 2005 11:45:27 +0000 Subject: kgdb problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 09:35:59 -0000 Hello! I'm trying to use kgdb in 6.0-BETA1 (on i386). It seems that either I'm doing something wrong, or kgdb is broken. I've got valid crashdump (at least info.0 file says so, and 'file vmcore.0' says that it's an ELF file), but 'core-file' command fails: root@homelynx# kgdb [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] 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-marcel-freebsd". (no debugging symbols found)...#0 0x00000000 in ?? () (kgdb) exec-file /boot/kernel/kernel.debug (kgdb) symbol-file /boot/kernel/kernel.debug Reading symbols from /boot/kernel/kernel.debug...done. (kgdb) core vmcore.0 warning: "/usr/var/crash/vmcore.0": no core file handler recognizes format, using default warning: you won't be able to access this core file until you terminate your kernel core files.; do ``info files'' (kgdb) info files Symbols from "/boot/kernel/kernel.debug". kernel core files.: Segmentation fault: 11 root@homelynx# How can I analyze vmcore file? Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE