From owner-freebsd-current Thu Oct 17 13:59:00 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA29291 for current-outgoing; Thu, 17 Oct 1996 13:59:00 -0700 (PDT) Received: from mx.serv.net (mx.serv.net [199.201.191.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA29282 for ; Thu, 17 Oct 1996 13:58:55 -0700 (PDT) Received: from MindBender.serv.net by mx.serv.net (8.7.5/SERV Revision: 2.30) id NAA18026; Thu, 17 Oct 1996 13:58:57 -0700 (PDT) Received: from localhost.HeadCandy.com (michaelv@localhost.HeadCandy.com [127.0.0.1]) by MindBender.serv.net (8.7.5/8.7.3) with SMTP id NAA12875; Thu, 17 Oct 1996 13:58:44 -0700 (PDT) Message-Id: <199610172058.NAA12875@MindBender.serv.net> X-Authentication-Warning: MindBender.serv.net: Host michaelv@localhost.HeadCandy.com [127.0.0.1] didn't use HELO protocol To: Keith Mitchell cc: nate@mt.sri.com (Nate Williams), current@freebsd.org Subject: Re: Weirdness in current In-reply-to: Your message of Thu, 17 Oct 96 14:03:12 -0400. <199610171803.OAA23823@unix.guru.org> Date: Thu, 17 Oct 1996 13:58:44 -0700 From: "Michael L. VanLoon -- HeadCandy.com" Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >> Where is it dumping core? >I checked my program again and did find a small bug in it that would cause >it to reference an array out of bounds. Its amazing that compiling in the >math library would fix this and the dynamic/static executable made a >difference. ;-) And at that only on output redirection. Go Figure. ;->> Not necessarily. Compiling in the math library may have given you just enough extra allocated memory somewhere that you were writing into valid memory, even if it was out of your stack bounds. Lacking the math library may have made that particular area of memory non-allocated. Asserts are a developer's best friend. Assert! Assert! Assert! ----------------------------------------------------------------------------- Michael L. VanLoon michaelv@MindBender.serv.net --< Free your mind and your machine -- NetBSD free un*x >-- NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3, Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32... NetBSD ports in progress: PICA, others... -----------------------------------------------------------------------------