Message-ID: <4DU7eg$BS1@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 71, Issue 7
Date: Tue, 03 Aug 2004 19:25:30 +0000
From: Galoisz.bbs@bbs.ustc.edu.cn (���博士)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.mbox.zip!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1091561130.A
Xref: 74.82.202.154 cn.bbs.comp.unix:1418


Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. strange sendmail behavior (was: Re: Please test
      /etc/rc.d/sendmail patch) (Alexander Leidinger)
   2. OpenSSL with hifn(4) (cryptodev) (Norikatsu Shigemura)
   3. Re: ATA driver races with interrupts (Ville-Pertti Keinonen)
   4. Re: strange sendmail behavior (was: Re: Please test
      /etc/rc.d/sendmail patch) (Willem Jan Withagen)
   5. RE: ATA driver races with interrupts (Daniel Eriksson)
   6. RE: ATA driver races with interrupts (Daniel Eriksson)
   7. [current tinderbox] failure on ia64/ia64 (FreeBSD Tinderbox)
   8. RE: ATA driver races with interrupts (Daniel Eriksson)
   9. Re: ATA driver races with interrupts (Ville-Pertti Keinonen)
  10. [current tinderbox] failure on powerpc/powerpc (FreeBSD Tinderbox)
  11. Re: squid on CURRENT: file descriptors leak (Sergey Matveychuk)
  12. Re: [HEADSUP] retire TIOCDCDTIMESTAMP (Barry Bouwsma)
  13. Re: [HEADSUP] retire TIOCDCDTIMESTAMP  (Poul-Henning Kamp)
  14. Re: squid on CURRENT: file descriptors leak (Bjoern A. Zeeb)
  15. Re: HEADS UP: tar -l is now (intentionally) broken.
      (Adam Weinberger)
  16. Re: ATA driver races with interrupts (Roman Neuhauser)
  17. HEADS UP: tar -l is now (intentionally) broken. (David Gilbert)
  18. Re: OpenSSL with hifn(4) (cryptodev) (Mike Tancsa)
  19. Re: nvidia binary drivers no longer work (David Gilbert)
  20. Re: nvidia binary drivers no longer work (Paul Mather)
  21. [Fwd: Re: cvs commit: src/libexec/rtld-elf map_object.c
      rtld.c	rtld.h rtld_tls.h src/libexec/rtld-elf/alpha reloc.c
      rtld_machdep.h	src/libexec/rtld-elf/i386	reloc.c rtld_machdep.h
      ...] (Doug Rabson)
  22. Re: OpenSSL with hifn(4) (cryptodev) (Sam Leffler)
  23. Re: nvidia binary drivers no longer work (Michal Varga)
  24. Stability? (Evan Dower)
  25. Re: Stability? (Scott Long)
  26. Re: upgrade of file(1) to 4.10 (including FreeBSD elf(5)
      fixes) (David O'Brien)
  27. Re: HEADS UP: tar -l is now (intentionally) broken.
      (Garance A Drosihn)
  28. fyi: snap from 080304 will not boot (Kim Culhan)
  29. Re: ATA driver races with interrupts (Jason Andresen)
  30. Re: HEADS UP: tar -l is now (intentionally) broken.
      (Jason Andresen)
  31. Re: OpenSSL with hifn(4) (cryptodev) (Doug White)
  32. Re: fyi: snap from 080304 will not boot (Doug White)
  33. Re: HEADS UP: tar -l is now (intentionally) broken.
      (David O'Brien)
  34. Re: upgrade of file(1) to 4.10 (including FreeBSD elf(5)
      fixes) (Oliver Eikemeier)


----------------------------------------------------------------------

Message: 1
Date: Tue, 3 Aug 2004 14:15:32 +0200
From: Alexander Leidinger <Alexander@Leidinger.net>
Subject: strange sendmail behavior (was: Re: Please test
	/etc/rc.d/sendmail patch)
To: "Willem Jan Withagen" <wjw@withagen.nl>
Cc: freebsd-current@freebsd.org
Message-ID: <20040803141532.623722ed@Magellan.Leidinger.net>
Content-Type: text/plain; charset=US-ASCII

On Tue, 3 Aug 2004 13:58:48 +0200
"Willem Jan Withagen" <wjw@withagen.nl> wrote:

> From: "Alexander Leidinger" <Alexander@Leidinger.net>
> > > Perhaps your sendmail running with periodic uses a different .cf???
> >
> > I don't think so. Regenerating the sendmail.cf was one of the first
> > things I did, so it isn't outdated. The submit.cf is also regenerated.
> > The only other .cf files are the freebsd ones, and those are also
> > up-to-date.
> 
> This is almost at the top of my *.cf
> 
> # level 10 config file format
> V10/Berkeley
> 
> This is a little further down the road:
> 
> # Configuration version number
> DZ8.12.10

As I already told here: the config is up-to-date.

> And this is at the end of:
> 
> strings /usr/libexec/sendmail/sendmail
> @(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
>         All rights reserved.
>      Copyright (c) 1983, 1995-1997 Eric P. Allman.  All rights reserved.
>      Copyright (c) 1988, 1993
>         The Regents of the University of California.  All rights reserved.
> 0123456789ABCDEF
> ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/
> ?456789:;<=
>  !"#$%&'()*+,-./0123
> >|Gt
> 8.12.10
> 
> My guess is that if in this last case has 8.9.3 in it, your running old
> binaries.

�$���(@trings /usr/libexec/sendmail/sendmail |grep 8.9.3

�$���(@trings /usr/libexec/sendmail/sendmail | grep 8.12.11
8.12.11

Bye,
Alexander.

-- 
           I'm available to get hired (preferred in .lu).

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7

------------------------------

Message: 2
Date: Tue, 3 Aug 2004 21:41:33 +0900
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: OpenSSL with hifn(4) (cryptodev)
To: sam@FreeBSD.org
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040803214133.31dd9b03.nork@FreeBSD.org>
Content-Type: text/plain; charset=US-ASCII

Hi sam!

	I have two Soekris vpn1401 crypto accelerator cards.  I installed
	these to 4-stable machine and 5-current machine.

4-stable(FreeBSD sakura.ninth-nine.com 4.10-STABLE FreeBSD 4.10-STABLE #16: Mon Aug  2 20:45:23 JST 2004     nork@sakura.ninth-nine.com:/usr/obj/usr/src/sys/SAKURA  i386)

	hifn0 mem 0xfa100000-0xfa107fff,0xfa108000-0xfa109fff,0xfa10e000-0xfa10efff irq 11 at device 9.0 on pci0
	hifn0: Hifn 7955, rev 0, 32KB dram, 64 sessions
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
options		INET			#InterNETworking
options		INET6			#IPv6 communications protocols
#options	FAST_IPSEC		# Fast IPsec
options		IPSEC			#IP security
options		IPSEC_ESP		#IP security (crypto; define w/ IPSEC)
options		IPSEC_DEBUG		#debug for IP security
pseudo-device	crypto			# core crypto support
pseudo-device	cryptodev		# /dev/crypto for access to h/w
device		hifn			# Hifn 7951, 7781, etc.
device		rndtest			# FIPS 140-2 entropy tester
options		HIFN_DEBUG		# enable debugging support: hw.hifn.debug
options		HIFN_RNDTEST		# enable rndtest support
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5-current(FreeBSD nadesico.ninth-nine.com 5.2-CURRENT FreeBSD 5.2-CURRENT #10: Tue Aug  3 02:18:55 JST 2004     nork@nadesico.ninth-nine.com:/devel/obj/devel/src/sys/NADESICO  i386)

	hifn0 mem 0xf7100000-0xf7107fff,0xf710e000-0xf710ffff,0xf7114000-0xf7114fff irq 16 at device 10.0 on pci0
	hifn0: [GIANT-LOCKED]
	hifn0: Hifn 7955, rev 0, 32KB dram, 64 sessions
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
options		INET			#InterNETworking
options		INET6			#IPv6 communications protocols
#options	IPSEC			#IP security
#options	IPSEC_ESP		#IP security (crypto; define w/ IPSEC)
#options	IPSEC_DEBUG		#debug for IP security
options		FAST_IPSEC		#new IPsec (cannot define w/ IPSEC)
device		crypto			# core crypto support
device		cryptodev		# /dev/crypto for access to h/w
device		rndtest			# FIPS 140-2 entropy tester
device		hifn			# Hifn 7951, 7781, etc.
options		HIFN_DEBUG		# enable debugging support: hw.hifn.debug
options		HIFN_RNDTEST		# enable rndtest support
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



	I confirmed `openssl speed -engine cryptodev', but it looks not
	works.  Because 1st: same speed (before/after install it), 2nd: CPU
	loadavg is always high. So I consider that openssl didn't use
	cryptodev.  Do you have any idea?

# If I confirm it looks good, I will enable FAST_IPSEC on 4-stable.

------------------------------

Message: 3
Date: Tue, 03 Aug 2004 15:51:43 +0300
From: Ville-Pertti Keinonen <will+freebsd-current@will.iki.fi>
Subject: Re: ATA driver races with interrupts
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@freebsd.org
Message-ID: <410F8A5F.9060200@will.iki.fi>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Daniel Eriksson wrote:

>My system also survives the stress-test after applying the patch, but it
>fails to fix all of my problems.
>
>One way for me to reliably mess my system up is to install
>/usr/ports/sysutils/smartmontools and then try to enable SMART on both the
>SATA discs (smartctl -s on /dev/ad20 && smartctl -s on /dev/ad22). This
>results in the first channel totally locking up, to the point where not even
>a reboot unlocks it (BIOS hangs, or if the SATA BIOS is turned off then
>FreeBSD hangs when detecting the channel on the controller). Trying to
>access the disc results in the process hanging indefinately without error
>message and with no way to kill it.
>
>The above problem is the same with or without your patch. However, without
>your patch I usually get an interrupt storm, followed by a detached disc and
>then a channel lockup. With your patch I get no storm and the disc is not
>detached (but the channel still locks up hard).
>  
>
The patch definitely isn't a complete solution.  Whether your remaining 
problems are related to the same race conditions is hard to say - some 
of what you're experiencing sounds different from what my problems 
were.  I had SMART enabled on both SATA disks even before patching 
things, that didn't cause any problems.

I also didn't see interrupt storms, just the DMA state getting 
confused.  This was on a -current from June 29th.

S�ren's patch (also posted on this thread) might be worth trying, 
although its effect should be very similar to the patch that you already 
tested.

>I'm not sure if this is a hardware problem or not. I've tried switching
>channels for the two discs (one Maxtor, one Western Digital), but it seems
>it is always the first channel that locks up. That seems to indicate that
>it's not a disc problem. It could still be a problem with the motherboard.
>Unfortunately I don't know how to proceed with troubleshooting this.
>  
>
One thing you could try is to see if you have any problems using only 
one SATA disk on the controller.  If so, there's probably something 
wrong that isn't related to the race conditions discussed in this thread...


------------------------------

Message: 4
Date: Tue, 3 Aug 2004 14:54:03 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: strange sendmail behavior (was: Re: Please test
	/etc/rc.d/sendmail patch)
To: "Alexander Leidinger" <Alexander@Leidinger.net>
Cc: freebsd-current@freebsd.org
Message-ID: <041701c47958$f431e4d0$471b3dd4@digiware.nl>
Content-Type: text/plain;	charset="iso-8859-1"

> > My guess is that if in this last case has 8.9.3 in it, your running old
> > binaries.
>
> �$����(@trings /usr/libexec/sendmail/sendmail |grep 8.9.3
>
> �$����(@trings /usr/libexec/sendmail/sendmail | grep 8.12.11
> 8.12.11

Well then my buck stops here. Why (and how) should your sendmail know about
8.9.3???
And why is 8.9.3 so special?

But that's even more questions to you essential one.

--WjW


------------------------------

Message: 5
Date: Tue, 3 Aug 2004 15:26:05 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: ATA driver races with interrupts
To: "'Ville-Pertti Keinonen'" <will+freebsd-current@will.iki.fi>
Cc: freebsd-current@freebsd.org
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAw/30wgQ6akmrPyldIrxIFQEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="us-ascii"

Ville-Pertti Keinonen wrote:

> One thing you could try is to see if you have any problems using only 
> one SATA disk on the controller.  If so, there's probably something 
> wrong that isn't related to the race conditions discussed in 
> this thread...

Just tested this, and everything seems to work perfectly fine with only one
disc attached. Stresstest works, SMART works, ...

I've only tested it on one of the channels so far though, but I'm confident
it will work on the other channel as well since I've used that channel in
single-drive-configuration in the past without problems.

/Daniel Eriksson



------------------------------

Message: 6
Date: Tue, 3 Aug 2004 15:30:30 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: ATA driver races with interrupts
To: "'Ville-Pertti Keinonen'" <will+freebsd-current@will.iki.fi>
Cc: freebsd-current@freebsd.org
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAwuenxO7DPUWFcyZ0Si+0QgEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="us-ascii"

By the way, I've ordered a Promise SATA150 TX4 that will show up in ~2
weeks. That should take care of my problems with the onboard SATA. However,
until then I'd be happy to try to help narrow this down (with the
understanding that I'm doing this on a production server, so uptime and data
integrity is important).

Let me know if there is anything else I should test, and I'll try to squeeze
some server downtime into the schedule.

/Daniel Eriksson



------------------------------

Message: 7
Date: Tue,  3 Aug 2004 09:35:10 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on ia64/ia64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<ia64@freebsd.org>
Message-ID: <20040803133510.712E37303F@freebsd-current.sentex.ca>

TB --- 2004-08-03 12:24:42 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2004-08-03 12:24:42 - starting CURRENT tinderbox run for ia64/ia64
TB --- 2004-08-03 12:24:42 - cleaning the sandbox
TB --- 2004-08-03 12:26:03 - checking out the source tree
TB --- 2004-08-03 12:26:03 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64
TB --- 2004-08-03 12:26:03 - /usr/bin/cvs -f -R -Q -d/home/ncvs checkout -P -A src
TB --- 2004-08-03 12:33:48 - WARNING: /home/tinderbox/sandbox/ia64.diff does not exist
TB --- 2004-08-03 12:33:48 - building world (CFLAGS=-O -pipe)
TB --- 2004-08-03 12:33:48 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src
TB --- 2004-08-03 12:33:48 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
>>> stage 4.4: building everything
TB --- 2004-08-03 13:32:34 - building generic kernel (COPTFLAGS=-O -pipe)
TB --- 2004-08-03 13:32:34 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src
TB --- 2004-08-03 13:32:34 - /usr/bin/make buildkernel KERNCONF=GENERIC
>>> Kernel build for GENERIC started on Tue Aug  3 13:32:34 UTC 2004
>>> stage 1: configuring the kernel
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3.1: making dependencies
>>> stage 3.2: building everything
[...]
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/tinderbox/CURRENT/ia64/ia64/src/sys -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/altq -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/pf -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ia64/libuwx/src -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000  -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata -ffreestanding -Werror  /tinderbox/CURRENT/ia64/ia64/src/sys/ddb/db_thread.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/tinderbox/CURRENT/ia64/ia64/src/sys -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/altq -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/pf -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ia64/libuwx/src -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000  -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata -ffreestanding -Werror  /tinderbox/CURRENT/ia64/ia64/src/sys/ddb/db_variables.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/tinderbox/CURRENT/ia64/ia64/src/sys -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/altq -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/pf -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ia64/libuwx/src -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000  -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata -ffreestanding -Werror  /tinderbox/CURRENT/ia64/ia64/src/sys/ddb/db_watch.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/tinderbox/CURRENT/ia64/ia64/src/sys -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/altq -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/pf -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ia64/libuwx/src -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000  -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata -ffreestanding -Werror  /tinderbox/CURRENT/ia64/ia64/src/sys/ddb/db_write_cmd.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/tinderbox/CURRENT/ia64/ia64/src/sys -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/altq -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/pf -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ia64/libuwx/src -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000  -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata -ffreestanding -Werror  /tinderbox/CURRENT/ia64/ia64/src/sys/dev/acpica/acpi.c
/tinderbox/CURRENT/ia64/ia64/src/sys/dev/acpica/acpi.c: In function `acpiioctl':
/tinderbox/CURRENT/ia64/ia64/src/sys/dev/acpica/acpi.c:2396: warning: 'hp' might be used uninitialized in this function
/tinderbox/CURRENT/ia64/ia64/src/sys/dev/acpica/acpi.c:2397: warning: 'error' might be used uninitialized in this function
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/obj/ia64/tinderbox/CURRENT/ia64/ia64/src/sys/GENERIC.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src.
TB --- 2004-08-03 13:35:10 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-08-03 13:35:10 - ERROR: failed to build generic kernel
TB --- 2004-08-03 13:35:10 - tinderbox aborted


------------------------------

Message: 8
Date: Tue, 3 Aug 2004 15:38:22 +0200
From: "Daniel Eriksson" <daniel_k_eriksson@telia.com>
Subject: RE: ATA driver races with interrupts
To: "'Ville-Pertti Keinonen'" <will+freebsd-current@will.iki.fi>
Cc: freebsd-current@freebsd.org
Message-ID:
	<!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAARXLDyj+1iEiEa1Em58RqLAEAAAAA@telia.com>
	
Content-Type: text/plain;	charset="us-ascii"


> Just tested this, and everything seems to work perfectly fine 
> with only one
> disc attached. Stresstest works, SMART works, ...

This used to work even before I applied your patch, by the way.

/Daniel Eriksson



------------------------------

Message: 9
Date: Tue, 03 Aug 2004 16:41:47 +0300
From: Ville-Pertti Keinonen <will+freebsd-current@will.iki.fi>
Subject: Re: ATA driver races with interrupts
To: Daniel Eriksson <daniel_k_eriksson@telia.com>
Cc: freebsd-current@freebsd.org
Message-ID: <410F961B.1080104@will.iki.fi>
Content-Type: text/plain; charset="iso-8859-1"

Daniel Eriksson wrote:

>Just tested this, and everything seems to work perfectly fine with only one
>disc attached. Stresstest works, SMART works, ...
>
>I've only tested it on one of the channels so far though, but I'm confident
>it will work on the other channel as well since I've used that channel in
>single-drive-configuration in the past without problems.
>  
>
The attached patch should enable serialization for the controller, which 
is the only completely reliable fix (without chipset documentation) 
according to S�ren.  Obviously it reduces performance since it doesn't 
allow both channels to operate simultaneously.

-------------- next part --------------
Index: ata-chipset.c
===================================================================
RCS file: /cvs/freebsd/src/sys/dev/ata/ata-chipset.c,v
retrieving revision 1.77
diff -u -r1.77 ata-chipset.c
--- ata-chipset.c	30 Jul 2004 13:33:09 -0000	1.77
+++ ata-chipset.c	3 Aug 2004 13:32:04 -0000
@@ -2602,6 +2602,7 @@
     if (ctlr->chip->max_dma >= ATA_SA150) {
 	pci_write_config(dev, PCIR_COMMAND,
 			 pci_read_config(dev, PCIR_COMMAND, 2) & ~0x0400, 2);
+	ctlr->locking = ata_serialize;
 	ctlr->setmode = ata_sata_setmode;
 	return 0;
     }

------------------------------

Message: 10
Date: Tue,  3 Aug 2004 09:52:37 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on powerpc/powerpc
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<powerpc@freebsd.org>
Message-ID: <20040803135237.B66327303F@freebsd-current.sentex.ca>

TB --- 2004-08-03 13:35:10 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2004-08-03 13:35:10 - starting CURRENT tinderbox run for powerpc/powerpc
TB --- 2004-08-03 13:35:10 - cleaning the sandbox
TB --- 2004-08-03 13:36:17 - checking out the source tree
TB --- 2004-08-03 13:36:17 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerpc
TB --- 2004-08-03 13:36:17 - /usr/bin/cvs -f -R -Q -d/home/ncvs checkout -P -A src
TB --- 2004-08-03 13:44:37 - WARNING: /home/tinderbox/sandbox/powerpc.diff does not exist
TB --- 2004-08-03 13:44:37 - building world (CFLAGS=-O -pipe)
TB --- 2004-08-03 13:44:37 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerpc/src
TB --- 2004-08-03 13:44:37 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
[...]
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6  -c asn1_TGS_REP.c -o asn1_TGS_REP.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6  -c asn1_TGS_REQ.c -o asn1_TGS_REQ.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6  -c asn1_Ticket.c -o asn1_Ticket.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6  -c asn1_TicketFlags.c -o asn1_TicketFlags.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6  -c asn1_TransitedEncoding.c -o asn1_TransitedEncoding.So
cc -fpic -DPIC -O -pipe  -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/asn1 -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../../crypto/heimdal/lib/roken -I. -DHAVE_CONFIG_H -I/tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1/../../include -DINET6  -c asn1_UNSIGNED.c -o asn1_UNSIGNED.So
building shared library libasn1.so.7
Abort trap (core dumped)
*** Error code 134

Stop in /tinderbox/CURRENT/powerpc/powerpc/src/kerberos5/lib/libasn1.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src.
TB --- 2004-08-03 13:52:37 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-08-03 13:52:37 - ERROR: failed to build world
TB --- 2004-08-03 13:52:37 - tinderbox aborted


------------------------------

Message: 11
Date: Tue, 03 Aug 2004 17:58:34 +0400
From: Sergey Matveychuk <sem@FreeBSD.org>
Subject: Re: squid on CURRENT: file descriptors leak
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc: Edwin Groothuis <edwin@mavetju.org>
Message-ID: <410F9A0A.3080803@FreeBSD.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Bjoern A. Zeeb wrote:
> On Tue, 3 Aug 2004, Sergey Matveychuk wrote:
> 
> 
>>Sergey Matveychuk wrote:
>>
>>>fstat -v shows:
>>>unknown file type 0 for file 3865 of pid 9086
>>>unknown file type 0 for file 3866 of pid 9086
>>>unknown file type 0 for file 3867 of pid 9086
>>>unknown file type 0 for file 3868 of pid 9086
>>
>>Thanks all guys!
>>After updating to HEAD all goes right.
> 
> 
> good to know. Did you ever manage to find out what type of fd it had
> been by repeatedly running pstat ?
> 

Hmm. It's looks like the problem just moved from squid to apache.
It's not a big problem for me because of apache on this machine has a 
little using. And lost FDs only one on each runned httpd (instead of 
tens thousands with squid):

unknown file type 0 for file 3 of pid 21232
unknown file type 0 for file 3 of pid 21231
unknown file type 0 for file 3 of pid 21230
unknown file type 0 for file 3 of pid 21229
unknown file type 0 for file 3 of pid 21228

I think it's former socket descriptors.

(I'll move the discussion from ports@ to current@ for somebody else can 
comment it).

-- 
Sem.

------------------------------

Message: 12
Date: Mon, 2 Aug 2004 15:16:42 +0200 (CEST)
From: Barry Bouwsma
	<freebsd-misuser@remove-NOSPAM-to-reply.NOSPAM.dyndns.dk>
Subject: Re: [HEADSUP] retire TIOCDCDTIMESTAMP
To: FreeBSD Current <current@freebsd.org>
Message-ID: <200408021316.i72DGfO86307@Mail.NOSPAM.DynDNS.dK>

[keep replies on the list, not to me, to avoid bounces, thanks]
[sorry for the lateness of this -- that's what I get for being offline]


"M. Warner Losh" <imp@bsdimp.com> wrote:

> In message: <23206.1087846355@critter.freebsd.dk>
>             Poul-Henning Kamp <phk@phk.freebsd.dk> writes:
> : The RFC 2783 PPS-API has been standardized to do everything
> : TIOCDCDTIMESTAMP did and quite a bit more.

> I think this is reasonable on its face.  Unless this breaks a bunch of
> ports I don't see a big problem with it.  I have some problems using
> pps api at times, but those aren't relevant for this change...

I have expanded TIOC*TIMESTAMP in my own personal hive of hackery
to also handle signals on the other modem status lines as well.
Therefore I'm curious.

As far as I know, I can simply revert this retirement in my own
personalized codebase without difficulty if I choose.  So far.

Supposing I want to use the PPS-API.  It seems that it's possible
for me to select whether I want it to work on the DCD status line,
or (hmm, one other, must grep code) status line.

But is it possible for the PPS-API to work simultaneously on more
than a single status line?  A preliminary perusal of the code would
suggest not, but I can't read code to save my life.

Basically, my TIOC*TIMESTAMP hacks allowed me to gather timestamps
from the four status lines, to be used by programs that could
handle four sources of PPS data on a single port.  I'd like to
be able to do that with PPS-API as well, if possible.

(The other wishlist item I have that might be applicable to PPS-API
is to be able to query system-uptime as well as system-time at a
status change, for cases where the system time has been stepped.
This may be something irrelevant to or outside the scope of PPS-API.
Clearly I need to figure out how to use that first, and maybe then
I won't have such stupid questions.)


thanks
barry bouwsma


------------------------------

Message: 13
Date: Tue, 03 Aug 2004 16:53:57 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: [HEADSUP] retire TIOCDCDTIMESTAMP 
To: Barry Bouwsma
	<freebsd-misuser@remove-NOSPAM-to-reply.NOSPAM.dyndns.dk>
Cc: FreeBSD Current <current@freebsd.org>
Message-ID: <3856.1091544837@critter.freebsd.dk>

In message <200408021316.i72DGfO86307@Mail.NOSPAM.DynDNS.dK>, Barry Bouwsma writes:

>Basically, my TIOC*TIMESTAMP hacks allowed me to gather timestamps
>from the four status lines, to be used by programs that could
>handle four sources of PPS data on a single port.  I'd like to
>be able to do that with PPS-API as well, if possible.

I tried to get multi-signal handling into the PPS-API and my failure
in that was a large part of the reason why I asked to not be listed
as an author of the RFC.

On the other hand, if you have very special needs, which I think
timestamping four signals with one serial port is, I would advocate
rolling your own.

You may want to look at the dev/ppbus/pps.c driver for inspiration.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 14
Date: Tue, 3 Aug 2004 14:51:26 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: squid on CURRENT: file descriptors leak
To: Sergey Matveychuk <sem@FreeBSD.org>
Cc: FreeBSD current mailing list <current@FreeBSD.org>
Message-ID:
	<Pine.BSF.4.53.0408031445050.69034@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 3 Aug 2004, Sergey Matveychuk wrote:

Hi,

> > good to know. Did you ever manage to find out what type of fd it had
> > been by repeatedly running pstat ?
>
..
> little using. And lost FDs only one on each runned httpd (instead of
> tens thousands with squid):
>
> unknown file type 0 for file 3 of pid 21232
> unknown file type 0 for file 3 of pid 21231
> unknown file type 0 for file 3 of pid 21230
> unknown file type 0 for file 3 of pid 21229
> unknown file type 0 for file 3 of pid 21228
>
> I think it's former socket descriptors.

are you sure ?

could you please repeatedly run pstat -f and check if you can manually
trigger the problem by loading a page from that apache and see if the
leftover really is a socket ?

what's the value of
	sysctl debug.mpsafenet
btw ?

> (I'll move the discussion from ports@ to current@ for somebody else can
> comment it).

for the others:
pstat -f returns a lot of "dead" FDs with everything but LOC cleared.

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT

------------------------------

Message: 15
Date: Tue, 3 Aug 2004 10:55:36 -0400
From: Adam Weinberger <adamw@FreeBSD.org>
Subject: Re: HEADS UP: tar -l is now (intentionally) broken.
To: Mike Bristow <mike@urgle.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040803145536.GC85775@toxic.magnesium.net>
Content-Type: text/plain; charset=us-ascii

>> (08.03.2004 @ 0709 PST): Mike Bristow said, in 1.4K: <<
> Means FreeBSD gets a POSIX tar; -STABLE users see the warning for ages;
> -CURRENT users see the warning for a while.  Everyone has ice-cream.
>> end of "Re: HEADS UP: tar -l is now (intentionally) broken." from Mike Bristow <<

I do not digest ice cream well. I demand that a suitable ice cream
replacement be made available by default. Ice cream should be served
only if it receives --with-lactose.

Furthermore, which flavour and colour of ice cream are we talking here?

# Adam


What. I just woke up.
--
Adam Weinberger
adamw@magnesium.net || adamw@FreeBSD.org
adamw@vectors.cx    ||   adamw@gnome.org
http://www.vectors.cx

------------------------------

Message: 16
Date: Tue, 3 Aug 2004 17:05:08 +0200
From: Roman Neuhauser <neuhauser@chello.cz>
Subject: Re: ATA driver races with interrupts
To: S?ren Schmidt <sos@DeepCore.dk>
Cc: freebsd-current@freebsd.org
Message-ID: <20040803150508.GB1620@isis.wad.cz>
Content-Type: text/plain; charset=us-ascii

# sos@DeepCore.dk / 2004-08-03 13:35:07 +0200:
> Ville-Pertti Keinonen wrote:
> >S?ren Schmidt wrote:
> >
> >>Reliable solutions needs reliable HW, we can narrow down the race 
> >>window here, but without HW support we cannot close it completely 
> >>unless we serialises access to the channels (what lots of OS's does 
> >>btw)..
> >
> >For now, I moved my SATA disks to the Promise controller, which seems to 
> >work with an unpatched -current.
> 
> Yeah, Promise makes HW thats designed to work ;)

    Do you think you could make a concise list of disk/controller makers
    who play nice (publish their specs), and/or produce hardware that
    tends to work well (or perhaps "didn't make writing support for
    major PITA")? Outright recommendations might cause trouble under US
    law FAIK, but buying hardware has always been sort of an adventure
    game.
    
    I've seen recommendations (in the form of code comments, commit
    messages, mailing list posts from relevant people, etc) against ASUS
    motherboards, VIA [almost-anything], Realtek network cards etc, and
    collecting relevant information is a time consuming task.

    If you can share your experience, I'll use that as a base for
    a FreeBSD-friendly Hardware Buyer's Guide, and maintain that.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html

------------------------------

Message: 17
Date: Tue, 3 Aug 2004 11:08:55 -0400
From: David Gilbert <dgilbert@dclg.ca>
Subject: HEADS UP: tar -l is now (intentionally) broken.
To: Tim Kientzle <kientzle@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <16655.43655.686564.873222@canoe.dclg.ca>
Content-Type: text/plain; charset=us-ascii

>>>>> "Tim" == Tim Kientzle <kientzle@freebsd.org> writes:

Tim> Since POSIX and GNU violently disagree about the meaning of "tar
Tim> -l", and there seem to be strong adherents to both
Tim> interpretations, I'm preparing to commit a patch that breaks "tar
Tim> -l" for everyone:

Tim> $ tar -cl foo Error: -l has different behaviors in different
Tim> tars.  For the GNU behavior, use --one-file-system instead.  For
Tim> the POSIX behavior, use --check-links instead.

Is this in any way related to the fact that /usr/bin/bsdtar seems
unable (after a new world from yesterday) to archive any files?

[2:1:301]dgilbert@canoe:~> bsdtar -cvf temp .bashrc
a .bashrc: tar format cannot archive this: Inappropriate file type or format

.. is what I get.

Dave.

-- 
============================================================================
|David Gilbert, Independent Contractor.       | Two things can only be     |
|Mail:       dave@daveg.ca                    |  equal if and only if they |
|http://daveg.ca                              |   are precisely opposite.  |
=========================================================GLO================

------------------------------

Message: 18
Date: Tue, 03 Aug 2004 11:22:41 -0400
From: Mike Tancsa <mike@sentex.net>
Subject: Re: OpenSSL with hifn(4) (cryptodev)
To: Norikatsu Shigemura <nork@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <6.1.2.0.0.20040803092531.08ffed10@64.7.153.2>
Content-Type: text/plain; charset="us-ascii"; format=flowed


At 08:41 AM 03/08/2004, Norikatsu Shigemura wrote:
>Hi sam!
>
>         I have two Soekris vpn1401 crypto accelerator cards.  I installed
>         these to 4-stable machine and 5-current machine.

Hi,
         Not all things are accelerated in openssl.  Also depending on the 
CPU you use, it wont be faster and might even be slower.  Where you really 
win is with concurrent jobs.  In our app, our backup server takes several 
ssh streams of dump and tar. The P4 2.4 keeps up just fine even when 50Mb/s 
of traffic is coming in with the card, but is too taxed without it.

Try the following tests

Create a test file first
dd if=/dev/urandom of=/tmp/big bs=1024k count=100

time /usr/bin/openssl enc -des3 -in /tmp/big -out /dev/null -k test

with and without acceleration.  The contrast is even greater, if you run

/usr/bin/openssl enc -des3 -in /tmp/big -out /dev/null -k test &
/usr/bin/openssl enc -des3 -in /tmp/big -out /dev/null -k test &
/usr/bin/openssl enc -des3 -in /tmp/big -out /dev/null -k test &

and watch the load avg and the time to completion.

You can compile the program /usr/src/tools/tools/crypto/hifnstats.c which 
will spit out simple stats about the card.

If you are using one of the newer HiFn cards, it will work with aes256 as 
well as des3.

One caveat is that with the newer cards, I keep running into a fairly 
easily repeatable bug. (perhaps 2).

On OpenBSD and FreeBSD I run into
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=3739

And this one is new and might be relevant to the FreeBSD driver as well

http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=3873

There is also
http://www.monkey.org/openbsd/archive/misc/0408/msg00008.html
.. Not sure if its applicable or not yet.

         ---Mike 


------------------------------

Message: 19
Date: Tue, 3 Aug 2004 11:19:08 -0400
From: David Gilbert <dgilbert@dclg.ca>
Subject: Re: nvidia binary drivers no longer work
To: Paul Mather <paul@gromit.dlib.vt.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <16655.44268.324878.440943@canoe.dclg.ca>
Content-Type: text/plain; charset=us-ascii

>>>>> "Paul" == Paul Mather <paul@gromit.dlib.vt.edu> writes:

Paul> On Sun, 01 Aug 2004 23:07:59 +0200, Michal Varga
Paul> <varga@stonehenge.sk> wrote:
>> Same here, stopped working about three days ago. Athlon 2500+,
>> GeForce 2 MX400, xorg-server-6.7.0_5, freezes when initializing
>> video card. Open source drive works fine as usually.
>> 
>> The problem seems to be not kernel related, use of two week old
>> kernel compiled on a different box didn't solve anything, so i
>> suppose the new GCC has something to do with this. Rebuilt nvidia
>> driver with no effect, xorg was not rebuilt yet, want to give it a
>> try sometime. If someone tried that already, you can save me a lot
>> of time by sending a notice..  (the system is very unstable after
>> all the latest changes in -current, so i suppose i will take 5-6
>> panics or lockups until i will be able to recompile xorg
>> succesfully, if ever..)

Paul> I don't think the GCC 3.4.2 import broke it.  I have a -CURRENT
Paul> kernel+world built post-import and the nVidia driver still works
Paul> for me.  (I did have to rebuilt the nvidia-driver port via
Paul> "portupgrade -fu" though: the original installed version locked
Paul> up my system when starting X.)  My kernel is dated "Sat Jul 31
Paul> 23:08:22 EDT 2004," and I think that's from sources cvsupped
Paul> sometime late 30th July/early 31st July.

One possible difference: I'm still using XFree84-4 ... and a current
from Sunday ... things are working.  Possibly something to do with
xorg is broken?

Dave.

-- 
============================================================================
|David Gilbert, Independent Contractor.       | Two things can only be     |
|Mail:       dave@daveg.ca                    |  equal if and only if they |
|http://daveg.ca                              |   are precisely opposite.  |
=========================================================GLO================

------------------------------

Message: 20
Date: Tue, 03 Aug 2004 11:34:05 -0400
From: Paul Mather <paul@gromit.dlib.vt.edu>
Subject: Re: nvidia binary drivers no longer work
To: David Gilbert <dgilbert@dclg.ca>
Cc: freebsd-current@freebsd.org
Message-ID: <1091547244.23445.5.camel@zappa.Chelsea-Ct.Org>
Content-Type: text/plain

On Tue, 2004-08-03 at 11:19, David Gilbert wrote:
> >>>>> "Paul" == Paul Mather <paul@gromit.dlib.vt.edu> writes:
> 
> Paul> On Sun, 01 Aug 2004 23:07:59 +0200, Michal Varga
> Paul> <varga@stonehenge.sk> wrote:
> >> Same here, stopped working about three days ago. Athlon 2500+,
> >> GeForce 2 MX400, xorg-server-6.7.0_5, freezes when initializing
> >> video card. Open source drive works fine as usually.
> >> 
> >> The problem seems to be not kernel related, use of two week old
> >> kernel compiled on a different box didn't solve anything, so i
> >> suppose the new GCC has something to do with this. Rebuilt nvidia
> >> driver with no effect, xorg was not rebuilt yet, want to give it a
> >> try sometime. If someone tried that already, you can save me a lot
> >> of time by sending a notice..  (the system is very unstable after
> >> all the latest changes in -current, so i suppose i will take 5-6
> >> panics or lockups until i will be able to recompile xorg
> >> succesfully, if ever..)
> 
> Paul> I don't think the GCC 3.4.2 import broke it.  I have a -CURRENT
> Paul> kernel+world built post-import and the nVidia driver still works
> Paul> for me.  (I did have to rebuilt the nvidia-driver port via
> Paul> "portupgrade -fu" though: the original installed version locked
> Paul> up my system when starting X.)  My kernel is dated "Sat Jul 31
> Paul> 23:08:22 EDT 2004," and I think that's from sources cvsupped
> Paul> sometime late 30th July/early 31st July.
> 
> One possible difference: I'm still using XFree84-4 ... and a current
> from Sunday ... things are working.  Possibly something to do with
> xorg is broken?

I forgot to mention that I am running Xorg, not XFree86-4:

xorg-clients-6.7.0_3 X client programs and related files from X.Org
xorg-fonts-100dpi-6.7.0 X.Org 100dpi bitmap fonts
xorg-fonts-75dpi-6.7.0 X.Org 75dpi bitmap fonts
xorg-fonts-cyrillic-6.7.0 X.Org Cyrillic bitmap fonts
xorg-fonts-encodings-6.7.0 X.Org font encoding files
xorg-fonts-miscbitmaps-6.7.0 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-6.7.0 X.Org TrueType fonts
xorg-fonts-type1-6.7.0 X.Org Type1 fonts
xorg-libraries-6.7.0_1 X11 libraries and headers from X.Org
xorg-server-6.7.0_5 X.Org X server and related programs

So, I don't think it is necessarily the GCC 3.4.2+Xorg combination to
blame.

FWIW, my kernel is built with #undef PREEMPTION.

Cheers,

Paul.
-- 
e-mail: paul@gromit.dlib.vt.edu

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
        --- Frank Vincent Zappa


------------------------------

Message: 21
Date: Tue, 03 Aug 2004 16:43:09 +0100
From: Doug Rabson <dfr@nlsystems.com>
Subject: [Fwd: Re: cvs commit: src/libexec/rtld-elf map_object.c
	rtld.c	rtld.h rtld_tls.h src/libexec/rtld-elf/alpha reloc.c
	rtld_machdep.h	src/libexec/rtld-elf/i386	reloc.c rtld_machdep.h ...]
To: freebsd-current@freebsd.org
Message-ID: <1091547788.1988.35.camel@builder02.qubesoft.com>
Content-Type: text/plain

For anyone who is interested that hasn't seen the commit mail...

-----Forwarded Message-----
From: Doug Rabson <dfr@nlsystems.com>
To: Doug Rabson <dfr@FreeBSD.org>
Cc: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject: Re: cvs commit: src/libexec/rtld-elf map_object.c rtld.c rtld.h rtld_tls.h src/libexec/rtld-elf/alpha reloc.c rtld_machdep.h src/libexec/rtld-elf/amd64 reloc.c rtld_machdep.h src/libexec/rtld-elf/i386 reloc.c rtld_machdep.h ...
Date: Tue, 03 Aug 2004 14:24:11 +0100

On Tue, 2004-08-03 at 09:51, Doug Rabson wrote:
> dfr         2004-08-03 08:51:00 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     libexec/rtld-elf     map_object.c rtld.c rtld.h 
>     libexec/rtld-elf/alpha reloc.c rtld_machdep.h 
>     libexec/rtld-elf/amd64 reloc.c rtld_machdep.h 
>     libexec/rtld-elf/i386 reloc.c rtld_machdep.h 
>     libexec/rtld-elf/ia64 reloc.c rtld_machdep.h 
>     libexec/rtld-elf/sparc64 reloc.c rtld_machdep.h 
>   Added files:
>     libexec/rtld-elf     rtld_tls.h 
>   Log:
>   Add support for Thread Local Storage.

Thread Local Storage is a gcc feature which allows you to add a
'__thread' modifier to the declaration of global and static variables.
This extra modifier means that the variable's value is 'thread local',
i.e. one thread changing its value will not affect any other thread. In
lots of ways its similar to the per-cpu variables we use in the kernel.

Most of the support is in the dynamic linker which discovers the TLS
blocks in each shared libary and allocates memory for them. It provides
hooks for threading libraries to allocate and initialise TLS blocks for
each new thread and hooks which the compiler uses to resolve the address
of a TLS variable.

The main user for this right now is the OpenGL api. In OpenGL, each
thread has a GL context object associated with it. Each call to a GL
function implicitly references this context object. For single-threaded
OpenGL, the context can be found by e.g. a global variable but for
thread-safe OpenGL, the most efficient mechanism is to use TLS. This is
how the NVidia OpenGL driver supports threading and the open source
OpenGL drivers will use TLS in the future as well.

As far as FreeBSD goes, there is nothing in the system right now that
uses TLS. Its possible that we might use TLS for 'errno' and similar
things in the 6.0 timeframe.



------------------------------

Message: 22
Date: Tue, 3 Aug 2004 09:02:59 -0700
From: Sam Leffler <sam@errno.com>
Subject: Re: OpenSSL with hifn(4) (cryptodev)
To: freebsd-current@freebsd.org
Cc: freebsd-stable@freebsd.org
Message-ID: <200408030902.59349.sam@errno.com>
Content-Type: text/plain;  charset="iso-8859-1"

On Tuesday 03 August 2004 05:41 am, Norikatsu Shigemura wrote:
> Hi sam!
>
> 	I have two Soekris vpn1401 crypto accelerator cards.  I installed
> 	these to 4-stable machine and 5-current machine.
	...

> 	I confirmed `openssl speed -engine cryptodev', but it looks not
> 	works.  Because 1st: same speed (before/after install it), 2nd: CPU
> 	loadavg is always high. So I consider that openssl didn't use
> 	cryptodev.  Do you have any idea?

Look in /usr/src/tools/tools/crypto for the cryptostats and hifnstats 
programs; they will tell you if the h/w is operating correctly.

	Sam

------------------------------

Message: 23
Date: Tue, 03 Aug 2004 18:17:08 +0200
From: Michal Varga <varga@stonehenge.sk>
Subject: Re: nvidia binary drivers no longer work
To: paul@gromit.dlib.vt.edu
Cc: freebsd-current@freebsd.org
Message-ID: <1091549828.720.8.camel@xenon.stonehenge.sk>
Content-Type: text/plain

With today's cvsup it is again working fine for me, just by installing
new kernel/world. Even without recompilation of nvidia-driver or xorg,
or any other change made from the previous state..

m.

On Tue, 2004-08-03 at 17:34, Paul Mather wrote:
> So, I don't think it is necessarily the GCC 3.4.2+Xorg combination to
> blame.
> 
> FWIW, my kernel is built with #undef PREEMPTION.
> 
> Cheers,
> 
> Paul.
-- 
Michal Varga <varga@stonehenge.sk>
Stonehenge


------------------------------

Message: 24
Date: Tue, 03 Aug 2004 09:31:58 -0700
From: "Evan Dower" <evantd@hotmail.com>
Subject: Stability?
To: freebsd-current@freebsd.org
Message-ID: <BAY8-F65Ezx0AEG2UYh0005e7c5@hotmail.com>
Content-Type: text/plain; format=flowed

135141400ptime
9:23AM  up 1 day, 15:42, 6 users, load averages: 0,98 1,19 1,25

With a recent cvsup (and all the rebuilding and installing involved) I have 
noticed what seems to be an improvement in stability. I must have missed any 
postings about it. Any, recent cvsup means about an hour before this:

135141400name -a
FreeBSD lojak.washington.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun Aug  1 
16:06:05 PDT 2004     root@lojak.washington.edu:/usr/obj/usr/src/sys/DEBUG  
i386

I noticed that my kernel has now started saying (in the dmesg):
WARNING: Kernel preemption is disabled, expect reduced performance.

Of course, I have WITNESS turned on in my debug kernel so I already expect 
reduced performance. Is this message suggesting that I put FULL_PREEMPTION 
in my kernel? I was under the impression that it was only useful for seeing 
where stuff broke. Is stuff so good now that it will improve performance 
without significant effect on stability? Or perhaps it is indicating that 
PREEMPTION is #undef'd? I didn't #undef it so if this is the case it must 
have been changed upstream.

In any case, I am very glad to have a more stable system again. Thanks very 
much to all who contributed. I'm just curious as to what it was the fixed 
the instability issues we had been having.

Thanks again,
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D

_________________________________________________________________
Planning a family vacation? Check out the MSN Family Travel guide! 
http://dollar.msn.com


------------------------------

Message: 25
Date: Tue, 03 Aug 2004 10:42:50 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: Stability?
To: Evan Dower <evantd@hotmail.com>
Cc: freebsd-current@freebsd.org
Message-ID: <410FC08A.7060702@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Evan Dower wrote:
> 135141400ptime
> 9:23AM  up 1 day, 15:42, 6 users, load averages: 0,98 1,19 1,25
> 
> With a recent cvsup (and all the rebuilding and installing involved) I 
> have noticed what seems to be an improvement in stability. I must have 
> missed any postings about it. Any, recent cvsup means about an hour 
> before this:
> 
> 135141400name -a
> FreeBSD lojak.washington.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sun 
> Aug  1 16:06:05 PDT 2004     
> root@lojak.washington.edu:/usr/obj/usr/src/sys/DEBUG  i386
> 
> I noticed that my kernel has now started saying (in the dmesg):
> WARNING: Kernel preemption is disabled, expect reduced performance.
> 

I turned off normal preemption a few days ago in order to cover up
the stability problems until the responsible parties (including myself)
get them fixed.  It is just a hack for now.

> Of course, I have WITNESS turned on in my debug kernel so I already 
> expect reduced performance. Is this message suggesting that I put 
> FULL_PREEMPTION in my kernel? I was under the impression that it was 
> only useful for seeing where stuff broke. Is stuff so good now that it 
> will improve performance without significant effect on stability? Or 
> perhaps it is indicating that PREEMPTION is #undef'd? I didn't #undef it 
> so if this is the case it must have been changed upstream.

You likely do not want to turn on FULL_PREEMPTION.  If you want the
old behavior, edit /sys/i386/include/param.h and reenable the
PREEMPTION definition.

Scott

------------------------------

Message: 26
Date: Tue, 3 Aug 2004 10:02:01 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: upgrade of file(1) to 4.10 (including FreeBSD elf(5)
	fixes)
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: Edwin Groothuis <edwin@mavetju.org>
Message-ID: <20040803170201.GA87300@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii

On Mon, Aug 02, 2004 at 07:59:14AM -0500, Jon Noack wrote:
> On 08/02/04 07:15, Oliver Eikemeier wrote:
> >I've prepared an upgrade to file-4.10 at:
> >
> >  <http://people.freebsd.org/~eik/patches/fileup.shar>
> >
> >This fixes
> >
> >  PR bin/63830: [patch] file(1) doesn't recognize FreeBSD 5.x 
> >executables properly
> >
> >and an MFC will fix the problems of FreeBSD 4.10 being identified as 
> >4.9.1. I'll do some more testing (GCC 3.4) and think we should commit 
> >this before the 5.3 src freeze, especially since it has been discussed 
> >over a month ago:
> >  <http://lists.freebsd.org/pipermail/freebsd-current/2004-June/thread.html#30172>
> 
> *sigh*  Why does Christos Zoulas ignore me?  He keeps telling me he'll 
> include my patch and then includes someone else's that doesn't fix the 
> problems.  In any case, my patch (against file 4.09) to fix the versioning:
> http://www.noacks.org/freebsd/readelf.c.diff

I really wish Christos had never added the code to *GUESS* at what
FreeBSD version a binary was compiled on.

The ELF binary format specification totally does NOT support the ability
to do this.  file(1) makes GUESSES and has to use very FRAGILE
HEURISTICS.  It is dependent on a totally optional ELF .note section I
add to binaries (which isn't even guaranteed to be in a binary), and
whose format could change in the future.

file(1) will forever have trouble accurately determining the OS version a
program is compiled for.  So we will surely have these types of bugs in
the foreseeable future.  I personally think the whole guessing code
should just be removed from file(1) so we can get back to worrying about
real bugs in FreeBSD.

-- 
-- David  (obrien@FreeBSD.org)

------------------------------

Message: 27
Date: Tue, 3 Aug 2004 13:57:55 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: HEADS UP: tar -l is now (intentionally) broken.
To: Johny Mattsson <lonewolf-freebsd@earthmagic.org>,	Tim Kientzle
	<kientzle@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <p0611044bbd358191dab5@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 7:27 PM +1000 8/3/04, Johny Mattsson wrote:
>Tim Kientzle wrote:
>>Since POSIX and GNU violently disagree about the
>>meaning of "tar -l", and there seem to be strong
>>adherents to both interpretations, I'm preparing to
>>commit a patch that breaks "tar -l" for everyone:
>>
>>$ tar -cl foo
>>   Error: -l has different behaviors in different tars.
>>     For the GNU behavior, use --one-file-system instead.
>>     For the POSIX behavior, use --check-links instead.
>
>Apologies if this is close to a bike-shed, but how about
>making the above message a transitional message, and
>changing it to:
>
>$ tar -cl foo
>   Error: -l has different behaviors in different tars.
>     For the GNU behavior, use --one-file-system instead.
>     For the POSIX behavior, use --check-links instead.
>     In future releases, POSIX behavior will be assumed, so
>     please adjust scripts and mentality as needed before then.

Note that this is kind of pointless.  What `-l' will do in
*future* releases will not help the user if they can not use
it right now.  I.e., the current behavior is going to force
script-writers to use either --one-file-system or --check-links
right now, or their script will not work at all.  They cannot
"adjust" their scripts to use -j at some unspecified point in
the future, if they can't use the option right now.

(btw, I do think this change is the right change to make,
given all the details of the `-l' option).

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

------------------------------

Message: 28
Date: Tue, 3 Aug 2004 11:03:07 -0700 (PDT)
From: Kim Culhan <w8hdkim@yahoo.com>
Subject: fyi: snap from 080304 will not boot
To: current@FreeBSD.org
Cc: snapshots@snapshots.se.FreeBSD.org
Message-ID: <20040803180307.85535.qmail@web50707.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii


Greetings-

Just an fyi here.. The latest snap, 080304, from
snapshots.se.FreeBSD.org did not install a bootable system here.

There is an 'information box' from the installer
which advises that the installation has used a
floppy which is not the same vintage as the installed
system.

Hitting enter or letting it time-out at:

F1 FreeBSD

returns

invalid partition
no /boot/loader

FreeBSD/i386 boot
default: 0:ad(0,c)/kernel


This machine has a 3ware 9000 series sata controller.
FWIW, installing -current on this hardware has not been a problem
in the recent past.

regards
-kim



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

------------------------------

Message: 29
Date: Tue, 03 Aug 2004 14:04:03 -0400
From: Jason Andresen <jandrese@mitre.org>
Subject: Re: ATA driver races with interrupts
To: Roman Neuhauser <neuhauser@chello.cz>
Cc: freebsd-current@freebsd.org
Message-ID: <410FD393.8090506@mitre.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Roman Neuhauser wrote:

>
>    
>    I've seen recommendations (in the form of code comments, commit
>    messages, mailing list posts from relevant people, etc) against ASUS
>    motherboards, 
>

Really?  I've always heard that ASUS boards are of decent quality.  The 
only compliant I've seen is that they sometimes bundle crappy components 
on the Deluxe models (an extra RealTek NIC, SiI 3112 SATA controller, 
crummy sound, etc...) but everybody does that.


------------------------------

Message: 30
Date: Tue, 03 Aug 2004 14:10:06 -0400
From: Jason Andresen <jandrese@mitre.org>
Subject: Re: HEADS UP: tar -l is now (intentionally) broken.
To: Michael Nottebrock <michaelnottebrock@gmx.net>
Cc: Roman Neuhauser <neuhauser@chello.cz>
Message-ID: <410FD4FE.4030409@mitre.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Michael Nottebrock wrote:

>On Tuesday 03 August 2004 09:28, Roman Neuhauser wrote:
>
>  
>
>>>In short, everyone wins on -o, everyone loses
>>>on -l.  That seems fair.  ;-)
>>>      
>>>
>>    I believe "loses" is the keyword here.
>>    
>>
>
>You don't loose anything if set POSIXLY_CORRECT
>  
>

I'm actually in favor of adding GNULY_CORRECT too, since you 
occasionally run into self extracting shellscripts and the like that 
assume GNU behavior (usually when installing Linux apps that come as a 
giant bash sharchive).  I don't think I've ever run into this specific 
problem, but there is a definate possability and getting those shell 
scripts to work is hard enough without having some way to override the 
correct (but incompatable) behaviour.

Just my $0.02


------------------------------

Message: 31
Date: Tue, 3 Aug 2004 11:16:58 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: OpenSSL with hifn(4) (cryptodev)
To: Mike Tancsa <mike@sentex.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040803111428.S15648@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 3 Aug 2004, Mike Tancsa wrote:

>
> At 08:41 AM 03/08/2004, Norikatsu Shigemura wrote:
> >Hi sam!
> >
> >         I have two Soekris vpn1401 crypto accelerator cards.  I installed
> >         these to 4-stable machine and 5-current machine.
>
> Hi,
>          Not all things are accelerated in openssl.  Also depending on the
> CPU you use, it wont be faster and might even be slower.  Where you really
> win is with concurrent jobs.  In our app, our backup server takes several
> ssh streams of dump and tar. The P4 2.4 keeps up just fine even when 50Mb/s
> of traffic is coming in with the card, but is too taxed without it.

Also, your app has to ask for the acceleration if they want it, by
requesting the 'cryptodev' engine.  And that requires OpenSSL 0.9.7, which
you probably have since the 'openssl engine' command exists.

nork, which app(s) are you trying to accelerate?

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 32
Date: Tue, 3 Aug 2004 11:21:54 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: fyi: snap from 080304 will not boot
To: Kim Culhan <w8hdkim@yahoo.com>
Cc: snapshots@snapshots.se.FreeBSD.org
Message-ID: <20040803112008.Q15648@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 3 Aug 2004, Kim Culhan wrote:

>
> Greetings-
>
> Just an fyi here.. The latest snap, 080304, from
> snapshots.se.FreeBSD.org did not install a bootable system here.

This looks like the boot2 breakage.  I think a fix was committed not too
long ago and its possible the snapshot server hadn't picked it up in time.
You might try tomorrow's.

> Hitting enter or letting it time-out at:
>
> F1 FreeBSD
>
> returns
>
> invalid partition
> no /boot/loader
>
> FreeBSD/i386 boot
> default: 0:ad(0,c)/kernel

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 33
Date: Tue, 3 Aug 2004 11:22:47 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: HEADS UP: tar -l is now (intentionally) broken.
To: Tim Kientzle <kientzle@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040803182247.GA92036@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii

On Mon, Aug 02, 2004 at 10:55:45PM -0700, Tim Kientzle wrote:
> I will consider
> suggestions for a corresponding environment variable
> for GNU behavior (GNULY_CORRECT?).

'GNU_ME_HARDER'.

------------------------------

Message: 34
Date: Tue, 3 Aug 2004 20:31:15 +0200
From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Subject: Re: upgrade of file(1) to 4.10 (including FreeBSD elf(5)
	fixes)
To: obrien@freebsd.org
Cc: Edwin Groothuis <edwin@mavetju.org>
Message-ID: <4DA0F154-E57B-11D8-9C56-00039312D914@fillmore-labs.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed

David O'Brien wrote:

> I really wish Christos had never added the code to *GUESS* at what
> FreeBSD version a binary was compiled on.

Everything what file(1) does is guesswork, nevertheless it is a great 
tool.

> The ELF binary format specification totally does NOT support the ability
> to do this.  file(1) makes GUESSES and has to use very FRAGILE
> HEURISTICS.  It is dependent on a totally optional ELF .note section I
> add to binaries (which isn't even guaranteed to be in a binary), and
> whose format could change in the future.

As usual, file(1) has to follow. Anyway, since it works for now, and 
currently there is no reason to break it, why is it bad? I actually like 
that feature, and it is useful for debugging ports that should have been 
recompiled after a system upgrade.

> file(1) will forever have trouble accurately determining the OS 
> version a
> program is compiled for.  So we will surely have these types of bugs in
> the foreseeable future.  I personally think the whole guessing code
> should just be removed from file(1) so we can get back to worrying about
> real bugs in FreeBSD.

As stated above: I consider this to be a useful feature. file(1) is 
great at guessing, even when it is wrong sometimes. We could document 
the format, when you are afraid it would be too dangerous to depend on 
something undocumented.

-Oliver


------------------------------

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 71, Issue 7
**********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]