From owner-freebsd-stable Sun Nov 12 18:56:22 2000 Delivered-To: freebsd-stable@freebsd.org Received: from intcon.net (linux.intcon.net [206.230.48.2]) by hub.freebsd.org (Postfix) with ESMTP id BDEAA37B479 for ; Sun, 12 Nov 2000 18:56:18 -0800 (PST) Received: from portal.megahack.com (portal.megahack.com [206.230.54.106]) by intcon.net (8.9.3/8.9.3) with ESMTP id UAA06795 for ; Sun, 12 Nov 2000 20:56:10 -0600 Received: (from steve@localhost) by portal.megahack.com (8.11.1/8.11.1) id eAD2u9F00538; Sun, 12 Nov 2000 20:56:09 -0600 (CST) (envelope-from steve) From: Steven Farmer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14863.22600.507386.659982@catbert.megahack.com> Date: Sun, 12 Nov 2000 20:56:08 -0600 (CST) To: freebsd-stable@freebsd.org Subject: savecore snafu, dirname vs dirname() X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here's wierd one. It seems to be a mixup between "char *dirname" in savecore.c and dirname() in libc... After today's cvsup/build/install, savecore dies during the reboot: pid 133 (savecore), uid 0: exited on signal 10 (core dumped) When I build savecore after adding -g to CFLAGS in /etc/make.conf, I see the following. Note the ld warnings: % uname -r4.2-BETA 4.2-BETA % pwd /usr/src/sbin/savecore % su Password: catbert# make clean rm -f savecore savecore.o zopen.o savecore.8.gz savecore.8.cat.gz catbert# make cc -g -pipe -I/usr/src/sbin/savecore/../../usr.bin/compress -c /usr/src/sbin/savecore/savecore.c cc -g -pipe -I/usr/src/sbin/savecore/../../usr.bin/compress -c /usr/src/sbin/savecore/../../usr.bin/compress/zopen.c cc -g -pipe -I/usr/src/sbin/savecore/../../usr.bin/compress -static -o savecore savecore.o zopen.o /usr/libexec/elf/ld: Warning: size of symbol `dirname' changed from 4 to 206 in dirname.o /usr/libexec/elf/ld: Warning: type of symbol `dirname' changed from 1 to 2 in dirname.o gzip -cn /usr/src/sbin/savecore/savecore.8 > savecore.8.gz catbert# cd /usr/obj/usr/src/sbin/savecore catbert# ./savecore /var/crash Bus error (core dumped) catbert# gdb ./savecore ./savecore.core GNU gdb 4.18 Copyright 1998 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-unknown-freebsd"... Core was generated by `savecore'. Program terminated with signal 10, Bus error. #0 0x8048298 in main (argc=1, argv=0xbfbff794) at /usr/src/sbin/savecore/savecore.c:178 178 dirname = argv[0]; (gdb) catbert# nm ./savecore | grep dirname 0804b9b4 T dirname If there's any more information I can provide, I'll do my best. Cheers, Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message