From owner-freebsd-current Tue Apr 4 10:57:52 2000 Delivered-To: freebsd-current@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.9.224.2]) by hub.freebsd.org (Postfix) with ESMTP id BE26D37BC3D for ; Tue, 4 Apr 2000 10:57:29 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from vega.vega.com (dialup1-14.iptelecom.net.ua [212.9.226.14]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id VAA10666 for ; Tue, 4 Apr 2000 21:03:49 +0300 (EEST) Received: from altavista.net (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.9.3/8.9.3) with ESMTP id UAA01433 for ; Tue, 4 Apr 2000 20:56:38 +0300 (EEST) (envelope-from sobomax@altavista.net) Message-ID: <38EA2CD6.24636F65@altavista.net> Date: Tue, 04 Apr 2000 20:56:38 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: current@freebsd.org Subject: Dangerously looking glitch (4.0-STABLE) Content-Type: multipart/mixed; boundary="------------3D64CAE46133EFA188180FFD" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------3D64CAE46133EFA188180FFD Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Hi, I've tried to track down why my own script which is cleaning non-matching distfiles from time to time produce incorrect results (just cvsup'ed 4.0). After some digging I've found that this bug could be easily reproduced by doing "find -exec md5" on large set of files several times consequiently, and then comparing results. You can see that md5 checksum of the one of the files is different in the run #3. Most often this happens with big distfiles, like XFree, jdk etc and only after some amount of previous activity. Memory/CPU/HDD bug is highly unlikely, as this box often up and running w/o reboot from release to release, so it looks like glitch in disk cache, fs, soft-updates or md5. -Maxim root@vega# find -H /usr/ports/distfiles -type f -exec md5 {} \; | sort > /tmp/1 root@vega# find -H /usr/ports/distfiles -type f -exec md5 {} \; | sort > /tmp/2 root@vega# find -H /usr/ports/distfiles -type f -exec md5 {} \; | sort > /tmp/3 root@vega# md5 /tmp/1 /tmp/2 /tmp/3 MD5 (/tmp/1) = 8ca51e2ce47c49f8a58776ca4b3567a2 MD5 (/tmp/2) = 8ca51e2ce47c49f8a58776ca4b3567a2 MD5 (/tmp/3) = 61f7ef39f30783d42c9b93dab4695398 root@vega# diff /tmp/2 /tmp/3 129c129 < MD5 (/usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz) = 07992302128f36c7f802b579e041604c --- > MD5 (/usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz) = a78b523bcc2875a5d0fa8be1e1b73ac3 root@vega# md5 /usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz MD5 (/usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz) = 07992302128f36c7f802b579e041604c root@vega# md5 /usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz MD5 (/usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz) = 07992302128f36c7f802b579e041604c root@vega# md5 /usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz MD5 (/usr/ports/distfiles/jdk1.1.8_ELF.V1999-11-9.tar.gz) = 07992302128f36c7f802b579e041604c root@vega# mount [...] /dev/ad0s1f on /usr (ufs, NFS exported, local, noatime, soft-updates, writes: sync 2 async 63, reads: sync 4977 async 13395) [...] root@vega# du -d1 /usr/ports/distfiles/ 7392 /usr/ports/distfiles/mpich 1 /usr/ports/distfiles/amaya 145 /usr/ports/distfiles/wdm 3513 /usr/ports/distfiles/python 69860 /usr/ports/distfiles/xc 20465 /usr/ports/distfiles/pm3 199 /usr/ports/distfiles/unroff 1841 /usr/ports/distfiles/povray31 949 /usr/ports/distfiles/squid2.3 1 /usr/ports/distfiles/timidity 13 /usr/ports/distfiles/xengine 341295 /usr/ports/distfiles/ --------------3D64CAE46133EFA188180FFD Content-Type: text/plain; charset=koi8-r; name="dmesg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg" Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 4.0-STABLE #9: Tue Apr 4 17:32:40 EEST 2000 root@vega.vega.com:/usr/src/sys/compile/VEGA Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 100227617 Hz CPU: Pentium/P54C (100.23-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x524 Stepping = 4 Features=0x1bf real memory = 41943040 (40960K bytes) avail memory = 38395904 (37496K bytes) Preloaded elf kernel "kernel" at 0xc0287000. Intel Pentium detected, installing workaround for F00F bug npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 pci0: at 7.2 irq 11 chip1: port 0x5000-0x500f at device 7.3 on pci0 ed0: port 0x6500-0x651f irq 10 at device 17.0 on pci0 ed0: address 00:40:05:3b:1c:23, type NE2000 (16 bit) fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 vga0: at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ad0: 6187MB [13410/15/63] at ata0-master using UDMA33 Mounting root from ufs:/dev/ad0s1a --------------3D64CAE46133EFA188180FFD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message