From owner-freebsd-current Tue May 14 2:24:53 2002 Delivered-To: freebsd-current@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id 6B6CD37B405 for ; Tue, 14 May 2002 02:24:48 -0700 (PDT) Received: from pool0043.cvx21-bradley.dialup.earthlink.net ([209.179.192.43] helo=mindspring.com) by harrier.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 177YXe-0005mE-00; Tue, 14 May 2002 02:24:23 -0700 Message-ID: <3CE0D768.8756A096@mindspring.com> Date: Tue, 14 May 2002 02:22:48 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Martin Blapp Cc: Brian Somers , Jake Burkholder , freebsd-current@FreeBSD.ORG Subject: Re: CURRENT and P-IV problems References: <20020514104829.R58948-100000@levais.imp.ch> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Martin Blapp wrote: > Now rm(1) and make(1) coredump with sig 10. So I thought it > would be a good idea to recompile them with -g -ggdb and > retry. > > Now the strange part. The coredumps are gone. Ok, I did not > use -pipe then. I'll will now try to use -pipe and -g and -ggdb > all together. > > How the fuck this can have a effect on these coredumps ??? The VAX and Windows debuggers are famous for making pointer errors "disappear" when you compile /debug. GDB is better at not doing this, but isn't perfect. Compiling with and without debug will yield different code. -g makes binaries bigger, and prevents some optimizations, even if you aren't telling the compiler to optimize. Does a "strip -g"'ed version of the -g compiled binary have the same problem? Also, an "objdump -p" comparison of the two might be informative; there were a number of problems in Alpha-land when the compiler assumptions changed because of the new binutils. This might be a similar problem to the ld.so problems there, only with the ELF loader code. Without more investigation by you, though, all you are going to get is educated guesses. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message