From owner-freebsd-isp Fri Feb 5 06:30:06 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA24229 for freebsd-isp-outgoing; Fri, 5 Feb 1999 06:30:06 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from netdev.comsys.com (comsys.com [192.94.236.129] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA24202 for ; Fri, 5 Feb 1999 06:30:02 -0800 (PST) (envelope-from alex@comsys.com) Received: from comsys.com (ptp35.sopris.net [209.38.22.35]) by netdev.comsys.com (8.8.8/8.8.8) with ESMTP id HAA18652; Fri, 5 Feb 1999 07:29:10 -0700 (MST) Message-ID: <36BB002A.5AA90900@comsys.com> Date: Fri, 05 Feb 1999 07:28:58 -0700 From: Alex Huppenthal X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Ronald Wiplinger CC: xiyuan qian , pasha@sim.net.ua, freebsd-isp@FreeBSD.ORG Subject: Re: Segmentation fault - core dump? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Pointers to static memory in the 128MB kernel are trying to access memory which doesn't exist on the 64MB system I suspect. Segmentation fault. you could check the actual memory value being accessed, but :) tradition encourages one to look at the FreeBSD kernel configuration, and see if you can't set the memory size.. or determine if it's discovered by the kernel.. Has this area changed in recent versions? Ronald Wiplinger wrote: > > On Fri, 5 Feb 1999, xiyuan qian wrote: > > > > > > > xiyuan qian wrote: > > > > > > > > Hi, I run a server program on two FreeBSD box. One is IBM Netfinity3000 (host1) > > > > and the other is IBM PC Server 325(host2). On host2, everything seems OK, but > > > > on host1, the program always suddenly core dumped. The result code is: > > > > "Segmentation fault--core dumped" (Signal 11). The host1 has 128M mem and the > > > > host2 64M mem. The kernel and all the others all the same. What's the reason? > > > > How can I debug the core to find it? > > Have you compiled the 64 or 128 MB into the kernel??? > > > > First of all > > > # man signal > > > > > > To debug program simplest way is to compile programm with -g switch and > > > after its crashes run > > > # gdb progname progname.core > > > In gdb shell type where > > > > > > > Thanks a lot. Now the debug result is: Program terminated with signal 11. > > Segmentation fault. Can not access memory at address 0x8075080 > > #0 0x2e2f6 in printablestring() > > > > What's the next for me to find out what's wrong? > > > > --xiyuan > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-isp" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message