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. [current tinderbox] failure on i386/pc98 (FreeBSD Tinderbox)
   2. [current tinderbox] failure on ia64/ia64 (FreeBSD Tinderbox)
   3. [current tinderbox] failure on powerpc/powerpc (FreeBSD Tinderbox)
   4. Re: [current tinderbox] failure on amd64/amd64 (Liam J. Foy)
   5. Re: Possible Threading problem with -CURRENT / MySQL?
      (Robert Watson)
   6. Re: Possible Threading problem with -CURRENT / MySQL?
      (Robert Watson)
   7. Loader failure when booting from CompactFlash
      (avleeuwen@piwebs.com)
   8. Re: Possible Threading problem with -CURRENT / MySQL?
      (Robert Watson)
   9. [current tinderbox] failure on sparc64/sparc64 (FreeBSD Tinderbox)
  10. Re: HA: Possible Threading problem with -CURRENT / MySQL?
      (Robert Watson)
  11. Re: [current tinderbox] failure on amd64/amd64 (Maxime Henrion)
  12. Re: Bogus signal handler causes kernel panic (5.2.1-p8/i386)
      (Bruce Evans)
  13. Re: Loader failure when booting from CompactFlash (Martin Nilsson)
  14. Re: ** HEADS UP **  GDB detached from the 5-CURRENT build
      (Brian Fundakowski Feldman)
  15. Re: USB woes.  (Ian FREISLICH)
  16. Re: Pioneer DVDR 105 issues (Brian Fundakowski Feldman)
  17. why timeradd() and co are hidden from the kernel space ?
      (Cyrille Lefevre)
  18. Re: Loader failure when booting from CompactFlash
      (avleeuwen@piwebs.com)
  19. Possible ATAPICAM problems? (m0f0x)
  20. Re: (continued) XFree86 problem? (Craig Boston)
  21. Re: Possible ATAPICAM problems? (Brian Fundakowski Feldman)
  22. 	Error compiling sources - Upgrading from FreeBSD 5.2.1-p6 ->
      Current (Daryl Chance)
  23. Re: [current tinderbox] failure on amd64/amd64 (Max Laier)
  24. ACPI killed my USB (Martin Nilsson)
  25. Re: USB woes. (Martin Nilsson)
  26. Re: ppp with dynamic IPs and ipfw "me" (Brad Knowles)
  27. 	Realtek RT8139 (onboard) - failed to receive packet in
      loopback mode (Andreas Braukmann)
  28. HEADSUP:  udev_t -> dev_t patch underway (Poul-Henning Kamp)
  29. Re: ** HEADS UP **  GDB detached from the 5-CURRENT build
      (David O'Brien)
  30. Re: ehci + axe panics (Luke)


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

Message: 1
Date: Thu, 17 Jun 2004 08:14:35 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on i386/pc98
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<i386@freebsd.org>
Message-ID: <20040617121435.EC8777306D@freebsd-current.sentex.ca>

TB --- 2004-06-17 11:23:02 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-17 11:23:02 - starting CURRENT tinderbox run for i386/pc98
TB --- 2004-06-17 11:23:02 - checking out the source tree
TB --- 2004-06-17 11:23:02 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98
TB --- 2004-06-17 11:23:02 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-06-17 11:28:01 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-17 11:28:01 - cd /home/tinderbox/sandbox/CURRENT/i386/pc98/src

TB --- 2004-06-17 11:28:01 - /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
[...]
7168+0 records out
7168 bytes transferred in 0.085597 secs (83741 bytes/sec)
===> sys/boot/pc98/boot2
cc -Os -mrtd  -fno-guess-branch-probability  -D_KERNEL -DPC98 -DBOOTWAIT=5000 
-DTIMEOUT= -DBOOTSEG=0x1000 -DBOOTSTACK=0xFFF0 -Wall -Wredundant-decls -Wneste
d-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -
Wcast-qual  -fformat-extensions -std=c99 -I/tinderbox/CURRENT/i386/pc98/src/sy
s/boot/pc98/boot2/../../.. -I. -DCOMCONSOLE=0x238  -DCOMCONSOLE_CLK=16  -DCOMC
ONSOLE_MODE=0x0c -DCOMSPEED=9600 -mno-align-long-strings -mpreferred-stack-bou
ndary=2 -ffreestanding -ffreestanding -mpreferred-stack-boundary=2 -Wall -Wred
undant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpoin
ter-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /tinderbox/CUR
RENT/i386/pc98/src/sys/boot/pc98/boot2/start.S
cc -Os -mrtd  -fno-guess-branch-probability  -D_KERNEL -DPC98 -DBOOTWAIT=5000 
-DTIMEOUT= -DBOOTSEG=0x1000 -DBOOTSTACK=0xFFF0 -Wall -Wredundant-decls -Wneste
d-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -
Wcast-qual  -fformat-extensions -std=c99 -I/tinderbox/CURRENT/i386/pc98/src/sy
s/boot/pc98/boot2/../../.. -I. -DCOMCONSOLE=0x238  -DCOMCONSOLE_CLK=16  -DCOMC
ONSOLE_MODE=0x0c -DCOMSPEED=9600 -mno-align-long-strings -mpreferred-stack-bou
ndary=2 -ffreestanding -ffreestanding -mpreferred-stack-boundary=2 -Wall -Wred
undant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpoin
ter-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -c /tinderbox/CUR
RENT/i386/pc98/src/sys/boot/pc98/boot2/table.c
In file included from /tinderbox/CURRENT/i386/pc98/src/sys/boot/pc98/boot2/boo
t.h:38,
                 from /tinderbox/CURRENT/i386/pc98/src/sys/boot/pc98/boot2/tab
le.c:54:
/tinderbox/CURRENT/i386/pc98/src/sys/boot/pc98/boot2/inode.h:72: error: syntax
 error before "dev_t"
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src/sys/boot/pc98/boot2.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src/sys/boot/pc98.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src/sys/boot.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src/sys.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src.
*** Error code 1

Stop in /tinderbox/CURRENT/i386/pc98/src.
TB --- 2004-06-17 12:14:35 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-06-17 12:14:35 - ERROR: failed to build world
TB --- 2004-06-17 12:14:35 - tinderbox aborted


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

Message: 2
Date: Thu, 17 Jun 2004 08:21:23 -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: <20040617122123.3B7707306D@freebsd-current.sentex.ca>

TB --- 2004-06-17 12:14:36 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-17 12:14:36 - starting CURRENT tinderbox run for ia64/ia64
TB --- 2004-06-17 12:14:36 - checking out the source tree
TB --- 2004-06-17 12:14:36 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64
TB --- 2004-06-17 12:14:36 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-06-17 12:19:11 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-17 12:19:11 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src

TB --- 2004-06-17 12:19:11 - /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
[...]
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c: At top level
:
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c:2831: error: 
syntax error before "_bfd_coff_generic_relocate_section"
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c: In function 
`_bfd_coff_generic_relocate_section':
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c:2868: error: 
`FALSE' undeclared (first use in this function)
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c:2941: error: 
structure has no member named `undefined_symbol'
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c:2943: error: 
`TRUE' undeclared (first use in this function)
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c:2951: error: 
structure has no member named `in_reloc_p'
/tinderbox/CURRENT/ia64/ia64/src/contrib/binutils/bfd/cofflink.c:3008: error: 
structure has no member named `reloc_overflow'
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src/gnu/usr.bin/binutils/libbfd.
*** Error code 1

Stop in /tinderbox/CURRENT/ia64/ia64/src/gnu/usr.bin/binutils.
*** Error code 1

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

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

Stop in /tinderbox/CURRENT/ia64/ia64/src.
TB --- 2004-06-17 12:21:23 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-06-17 12:21:23 - ERROR: failed to build world
TB --- 2004-06-17 12:21:23 - tinderbox aborted


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

Message: 3
Date: Thu, 17 Jun 2004 08:27:31 -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: <20040617122731.665617306D@freebsd-current.sentex.ca>

TB --- 2004-06-17 12:21:23 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-17 12:21:23 - starting CURRENT tinderbox run for powerpc/powerp
c
TB --- 2004-06-17 12:21:23 - checking out the source tree
TB --- 2004-06-17 12:21:23 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerp
c
TB --- 2004-06-17 12:21:23 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-06-17 12:25:21 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-17 12:25:21 - cd /home/tinderbox/sandbox/CURRENT/powerpc/powerp
c/src
TB --- 2004-06-17 12:25:21 - /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
[...]
sed -e 's,!!TRAD_HEADER!!,,g' /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.b
in/binutils/libbfd/config.h.fbsd > config.h
echo '#define BFD_VERSION	214920000'	> bfdver.h
echo '#define BFD_VERSION_DATE	20040510'	>> bfdver.h
echo '#define BFD_VERSION_STRING "2.15 [FreeBSD] 2004-05-23"'	>> bfdver.h
rm -f .depend
mkdep -f .depend -a    -I. -I/tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bi
n/binutils/libbfd/powerpc -I/tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin
/binutils/libbfd -I/tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils
/libbfd/../libbfd/powerpc -I/tinderbox/CURRENT/powerpc/powerpc/obj/powerpc/tin
derbox/CURRENT/powerpc/powerpc/src/i386/tinderbox/CURRENT/powerpc/powerpc/src/
gnu/usr.bin/binutils/libbfd/../libbfd -I/tinderbox/CURRENT/powerpc/powerpc/src
/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/include -DDEFAULT_VE
CTOR=bfd_elf32_powerpc_vec -D_GNU_SOURCE -I/tinderbox/CURRENT/powerpc/powerpc/
src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd -DSELECT_ARCH
ITECTURES=" &bfd_powerpc_arch" -DHAVE_bfd_elf32_powerpc_vec -DHAVE_bfd_elf32_p
owerpcle_vec -DHAVE_ppcboot_vec -DSELECT_VECS=" &bfd_elf32_powerpc_vec ,&bfd_e
lf32_powerpcle_vec ,&ppcboot_vec" -I/home/tinderbox/sandbox/CURRENT/powerpc/po
werpc/obj/powerpc/tinderbox/CURRENT/powerpc/powerpc/sr
 c/i386/legacy/usr/include /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/
binutils/libbfd/../../../../contrib/binutils/bfd/cpu-powerpc.c /tinderbox/CURR
ENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binuti
ls/bfd/cpu-rs6000.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutil
s/libbfd/../../../../contrib/binutils/bfd/elf32.c /tinderbox/CURRENT/powerpc/p
owerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32-
gen.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../..
/../../contrib/binutils/bfd/elf32-ppc.c /tinderbox/CURRENT/powerpc/powerpc/src
/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elflink.c /tinde
rbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contr
ib/binutils/bfd/ppcboot.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/b
inutils/libbfd/../../../../contrib/binutils/bfd/archive.c /tinderbox/CURRENT/p
owerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../.
 ./../contrib/binutils/bfd/archive64.c /tinderbox/CURRENT/powerpc/powerpc/src/
gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/archures.c /tinde
rbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contr
ib/binutils/bfd/bfd.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binut
ils/libbfd/../../../../contrib/binutils/bfd/binary.c /tinderbox/CURRENT/powerp
c/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/cac
he.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../
./../contrib/binutils/bfd/coffgen.c /tinderbox/CURRENT/powerpc/powerpc/src/gn
u/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/corefile.c /tinderb
ox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib
/binutils/bfd/elf.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutil
s/libbfd/../../../../contrib/binutils/bfd/elf-eh-frame.c /tinderbox/CURRENT/po
werpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../..
 /../contrib/binutils/bfd/elf-strtab.c /tinderbox/CURRENT/powerpc/powerpc/src/
gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/format.c /tinderb
ox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib
/binutils/bfd/hash.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binuti
ls/libbfd/../../../../contrib/binutils/bfd/ihex.c /tinderbox/CURRENT/powerpc/p
owerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/init.c
 /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../.
./contrib/binutils/bfd/libbfd.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr
.bin/binutils/libbfd/../../../../contrib/binutils/bfd/linker.c /tinderbox/CURR
ENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binuti
ls/bfd/merge.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/lib
bfd/../../../../contrib/binutils/bfd/opncls.c /tinderbox/CURRENT/powerpc/power
pc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib
 /binutils/bfd/reloc.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binu
tils/libbfd/../../../../contrib/binutils/bfd/section.c /tinderbox/CURRENT/powe
rpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/s
rec.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../..
/../../contrib/binutils/bfd/stab-syms.c /tinderbox/CURRENT/powerpc/powerpc/src
/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/stabs.c /tinderb
ox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib
/binutils/bfd/syms.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binuti
ls/libbfd/../../../../contrib/binutils/bfd/targets.c /tinderbox/CURRENT/powerp
c/powerpc/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/tek
hex.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd/../..
/../../contrib/binutils/bfd/dwarf1.c /tinderbox/CURRENT/powerpc/powerpc/src/gn
u/usr.bin/binutils/libbfd/../../../../contrib/binutils
 /bfd/dwarf2.c /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/lib
bfd/../../../../contrib/binutils/bfd/bfdio.c /tinderbox/CURRENT/powerpc/powerp
c/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/simple.c
/tinderbox/CURRENT/powerpc/powerpc/src/contrib/binutils/bfd/elf32-ppc.c:34:23:
 elf32-ppc.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils/libbfd.
*** Error code 1

Stop in /tinderbox/CURRENT/powerpc/powerpc/src/gnu/usr.bin/binutils.
*** 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-06-17 12:27:31 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-06-17 12:27:31 - ERROR: failed to build world
TB --- 2004-06-17 12:27:31 - tinderbox aborted


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

Message: 4
Date: Thu, 17 Jun 2004 13:32:07 +0100
From: "Liam J. Foy" <liamfoy@sepulcrum.org>
Subject: Re: [current tinderbox] failure on amd64/amd64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>
Cc: amd64@freebsd.org
Message-ID: <20040617133207.29a6f935.liamfoy@sepulcrum.org>
Content-Type: text/plain; charset=US-ASCII

On Thu, 17 Jun 2004 05:47:25 -0400 (EDT)
FreeBSD Tinderbox <tinderbox@freebsd.org> wrote:

> TB --- 2004-06-17 08:56:11 - tinderbox 2.3 running on freebsd-current.sentex
.ca
> TB --- 2004-06-17 08:56:11 - starting CURRENT tinderbox run for amd64/amd64

> TB --- 2004-06-17 08:56:11 - checking out the source tree
> TB --- 2004-06-17 08:56:11 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64

> TB --- 2004-06-17 08:56:11 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -
A src
> TB --- 2004-06-17 09:01:06 - building world (CFLAGS=-O2 -pipe)
> TB --- 2004-06-17 09:01:06 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd64/
src
> TB --- 2004-06-17 09:01:06 - /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
> [...]
> cc -O2 -pipe    -o nos-tun nos-tun.o 
> gzip -cn /tinderbox/CURRENT/amd64/amd64/src/sbin/nos-tun/nos-tun.8 > nos-tun
.8.gz
> ===> sbin/pfctl
> cc -O2 -pipe  -Wall -Wmissing-prototypes -Wno-uninitialized -Wstrict-prototy
pes -I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../contrib/pf/pfctl -I/
tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../sys/contrib/pf -DENABLE_ALT
Q -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /tinder
box/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl.c
> cc -O2 -pipe  -Wall -Wmissing-prototypes -Wno-uninitialized -Wstrict-prototy
pes -I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../contrib/pf/pfctl -I/
tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../sys/contrib/pf -DENABLE_ALT
Q -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c parse.c

> cc -O2 -pipe  -Wall -Wmissing-prototypes -Wno-uninitialized -Wstrict-prototy
pes -I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../contrib/pf/pfctl -I/
tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../sys/contrib/pf -DENABLE_ALT
Q -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /tinder
box/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl_parser.c
> /tinderbox/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl_parser.c: In funct
ion `print_status':
> /tinderbox/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl_parser.c:559: warn
ing: long long int format, long unsigned int arg (arg 3)
> *** Error code 1
> 
> Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl.
> *** Error code 1
> 
> Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin.
> *** Error code 1
> 
> Stop in /tinderbox/CURRENT/amd64/amd64/src.
> *** Error code 1
> 
> Stop in /tinderbox/CURRENT/amd64/amd64/src.
> *** Error code 1
> 
> Stop in /tinderbox/CURRENT/amd64/amd64/src.
> TB --- 2004-06-17 09:47:25 - WARNING: /usr/bin/make returned exit code  1 
> TB --- 2004-06-17 09:47:25 - ERROR: failed to build world
> TB --- 2004-06-17 09:47:25 - tinderbox aborted
> 
> _______________________________________________
> 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"


The following patch should solve this problem I believe:

--- /usr/src/contrib/pf/pfctl/pfctl_parser.c	Thu Jun 17 13:20:07 2004
+++ /home/liamfoy/pfctl_parser.c	Thu Jun 17 13:26:16 2004
@@ -555,7 +555,7 @@
 		printf("  %-25s %14u %14s\n", "current entries",
 		    s->src_nodes, "");
 		for (i = 0; i < SCNT_MAX; i++) {
-			printf("  %-25s %14lld ", pf_scounters[i],
+			printf("  %-25s %14lu ", pf_scounters[i],
 				    s->scounters[i]);
 			if (runtime > 0)
 				printf("%14.1f/s\n",



Correct me if I am wrong :), would someone care to commit it if its fine?

Thanks in advance,

Liam J. Foy <liamfoy@sepulcrum.org>

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

Message: 5
Date: Thu, 17 Jun 2004 08:50:08 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Possible Threading problem with -CURRENT / MySQL?
To: Brad Knowles <brad.knowles@skynet.be>
Cc: mike <mike@mike2k.com>
Message-ID:
	<Pine.NEB.3.96L.1040617084248.13466C-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Thu, 17 Jun 2004, Brad Knowles wrote:

> At 1:31 AM -0400 2004-06-17, Robert Watson wrote:
> 
> >  - Removing Giant from UNIX domain sockets
> 
> 	Out of curiosity, is this something that could be relatively
> safely done in general?  Any ideas on what the plan is for doing this as
> the default on -CURRENT? 

I'm in the process of merging the necessary support to CVS, but took a
break for a day or two to run some benchmarks and wait for some reviews of
specific pieces of it.  I'll restart the merge process this evening.  You
can find more more information at:

    http://www.watson.org/~robert/freebsd/netperf/

> >  - Disabling HTT
> >  - Using ADAPTIVE_MUTEXES
> 
> 	These both sound like typical improvements, based on what I've
> seen on this list.  Any ideas on when they might become the default?

There's an interaction with HTT that prevents the OS from disabling HTT
when running SCHED_ULE.  The benefits and costs of HTT vary based on load;
with this particular benchmark, HTT hurts quite a bit.

Regarding ADAPTIVE_MUTEXES -- I think we still need more information.  I'm
convinced that on high-contention local IPC workloads, ADAPTIVE_MUTEXES is
a clear win across all other variables -- regardless of scheduler, use of
HTT, fine-grained locking, etc.  However, I haven't benchmarked more
userspace-intensive workloads, and that's where you'd expect it might
hurt.  ADAPTIVE_MUTEXES should (may?) hurt "less" for high user loads when
contention spots are brief, such as in a more fine-grained locking
scenario rather than with a Giant lock.  After I finish the netperf merge,
I'll be doing a set of detailed performance measurements and optimizations
and we'll see if that notion plays out or not.  It could also well be that
ADAPTIVE_MUTEXES are simply a win.  There are also two proposed
modifications to ADAPTIVE_MUTEXES, one by Bosko Milekic and the other by
Alfred Perlstein, and we'll want to look at them as well.

> >  - Running with SCHED_4BSD instead of SCHED_ULE
> 
> 	This is the only one that really concerns me.  This shows that
> we clearly need more work on ULE.  Is there one particular thing that we
> seem to be tripping up on, or is it a multitude of things? 

It's not immediately clear; this benchmark is fairly thread-centric, so it
may just be that ULE is doing a bad job of sharing a quantum among
multiple threads in the same process.  Or, we could be looking at a
load-balancing issue or other issue.  For this benchmark, which involved
lots of smaller IPCs across processors, ULE hurt quite a bit compared to
4BSD.  On UP, the results were identical.  Since this benchmark is a very
specific and narrow workload (yet important), I think we don't yet have
enough information to make a decision as to whether to keep refining ULE
for 5.3, or switch back to 4BSD for 5.3.  Presumably the largest single
concern is actually whether Jeff or others will have time to work on ULE.y

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Senior Research Scientist, McAfee Research



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

Message: 6
Date: Thu, 17 Jun 2004 08:52:12 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Possible Threading problem with -CURRENT / MySQL?
To: Petri Helenius <pete@he.iki.fi>
Cc: mike <mike@mike2k.com>
Message-ID:
	<Pine.NEB.3.96L.1040617085024.13466E-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=ISO-8859-1

On Thu, 17 Jun 2004, Petri Helenius wrote:

> Brad Knowles wrote:
> 
> >>  - Disabling HTT
> >>  - Using ADAPTIVE_MUTEXES
> >
> >     These both sound like typical improvements, based on what I've 
> > seen on this list.  Any ideas on when they might become the default?
> >
> HTT defaults to the BIOS setting, which I think is the logical course of 
> action. I don�t think the OS should make assumptions the way or another 
> over what the user has set in the BIOS.
> (this used not to be the case earlier, and I asked it to default to 
> disable HTT back then)

I agree in principle; however, as a variable in this benchmark, it seems
like regardless of scheduler it's a net loss.  A question we haven't yet
answered is whether (for this workload, or other interesting workloads) it
should be a net loss, and therefore whether it's simply our support to HTT
is not yet mature enough to offer the theoretical advantage, or whether
HTT is just a bad idea. :-)

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Senior Research Scientist, McAfee Research


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

Message: 7
Date: Thu, 17 Jun 2004 14:58:25 +0200 (CEST)
From: avleeuwen@piwebs.com
Subject: Loader failure when booting from CompactFlash
To: freebsd-current@freebsd.org
Message-ID:
	<25271.212.83.93.49.1087477105.squirrel@winston.piwebs.com>
Content-Type: text/plain;charset=iso-8859-1

I'm trying to boot a compact -CURRENT installation from a CompactFlash
disk on a Lex Light mini system (see www.lex.com.tw).

If I boot from a hard drive, it works fine, but when I boot from the
CompactFlash, it crashes immediately when attempting to start the loader.
It gives an error message, but the system immediately restarts, so I can't
read it. The CompactFlash disk boots fine in a completely different
system.

Is there something strange about the BIOS of this PC that requires special
options for the bootloader? If not, is there a way to stop the system from
rebooting so that I can see the error message?

Thanks,

Arjan

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

Message: 8
Date: Thu, 17 Jun 2004 09:00:08 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Possible Threading problem with -CURRENT / MySQL?
To: Jon Noack <noackjr@alumni.rice.edu>
Cc: mike <mike@mike2k.com>
Message-ID:
	<Pine.NEB.3.96L.1040617085226.13466F-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Thu, 17 Jun 2004, Jon Noack wrote:

> On 06/17/04 01:07, Brad Knowles wrote:
> > At 1:31 AM -0400 2004-06-17, Robert Watson wrote:
> >> - Removing Giant from UNIX domain sockets
> > 
> > Out of curiosity, is this something that could be relatively safely 
> > done in general?  Any ideas on what the plan is for doing this as the
> >  default on -CURRENT?
> 
> Wasn't this already done?  See this commit: 
> http://lists.freebsd.org/pipermail/cvs-src/2004-June/025082.html

The locks have been introduced to protect UNIX domain sockets, but the
merge of locking for the cross-protocol socket infrastructure isn't
complete yet.  This means that if you disable Giant, the UNIX domain bits
work fine, but the socket buffers, socket state, and socket event handling
will probably corrupt themselves rapidly on SMP.  Per an earlier e-mail,
I'm working to complete that merge, but took a break to run some
benchmarks.  Looks for more information here in about a week and a half. 

> >> - Disabling HTT - Using ADAPTIVE_MUTEXES
> > 
> > These both sound like typical improvements, based on what I've seen 
> > on this list.  Any ideas on when they might become the default?
> 
> ADAPTIVE_MUTEXES was already enabled by default on amd64.  See this
> commit (read thread for discussion): 
> http://lists.freebsd.org/pipermail/cvs-src/2004-June/025234.html
> 
> It appears no comprehensive testing has been done to check whether it
> really does improve performance.  Many signs do point that way, though. 

Agreed.  I think we need to run a broad range of benchmarks across a
number of hardware configurations in order to make this decision.  Results
on a couple of interesting benchmarks, though, are very suggestive, so we
should probably do this sooner rather than later.

> >> - Running with SCHED_4BSD instead of SCHED_ULE
> > 
> > This is the only one that really concerns me.  This shows that we 
> > clearly need more work on ULE.  Is there one particular thing that we
> >  seem to be tripping up on, or is it a multitude of things?
> 
> I think I'll switch to 4BSD until I see more work being done on ULE (I
> read cvs-src as a hobby already so I'll know when to switch back).  I
> noticed a performance drop from 5.2.1-p8 (with 4BSD) to -CURRENT (with
> ULE) when I upgraded, but I attributed it to other things.  However, the
> system still feels slower than before despite having since disabled
> INVARIANTS, WITNESS, and userspace malloc debugging flags. 

ULE seems to do a very good job of scheduling interactive tasks over other
workloads, resulting in a very "snappy" feel on my boxes, despite heavy
CPU load from background builds, etc.  The workload I looked at had no
real "interactive" component, although it was a latency-centric RPC test,
so timely hand-off as well as high throughput would be important.  I know
that Jeff's measurement work on ULE had a substantial focus on deadlines
-- whether or not ULE was timely in scheduling tasks, etc, and that he
demonstrated that it was much stronger than most other available
schedulers in this area.

One of the next obvious steps in optimizing either ULE or 4BSD is going to
be to spend a lot of time sitting with KTR(4) and looking at context
switch traces for "dumb things", such as bouncing between CPUs, rapid
switches back and forth, undo multiple wakeups, etc.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Senior Research Scientist, McAfee Research


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

Message: 9
Date: Thu, 17 Jun 2004 09:08:40 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on sparc64/sparc64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<sparc64@freebsd.org>
Message-ID: <20040617130840.B97C87306D@freebsd-current.sentex.ca>

TB --- 2004-06-17 12:27:31 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-06-17 12:27:31 - starting CURRENT tinderbox run for sparc64/sparc6
4
TB --- 2004-06-17 12:27:31 - checking out the source tree
TB --- 2004-06-17 12:27:31 - cd /home/tinderbox/sandbox/CURRENT/sparc64/sparc6
4
TB --- 2004-06-17 12:27:31 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A 
src
TB --- 2004-06-17 12:29:39 - building world (CFLAGS=-O2 -pipe)
TB --- 2004-06-17 12:29:39 - cd /home/tinderbox/sandbox/CURRENT/sparc64/sparc6
4/src
TB --- 2004-06-17 12:29:39 - /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
[...]
cc -O2 -pipe  -DHAVE_CONFIG_H -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr
.bin/tar -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../../con
trib/tar/lib -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../..
/contrib/tar/src  -c /tinderbox/CURRENT/sparc64/sparc64/src/contrib/tar/lib/ex
clude.c
cc -O2 -pipe  -DHAVE_CONFIG_H -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr
.bin/tar -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../../con
trib/tar/lib -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../..
/contrib/tar/src  -c /tinderbox/CURRENT/sparc64/sparc64/src/contrib/tar/lib/fu
ll-write.c
cc -O2 -pipe  -DHAVE_CONFIG_H -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr
.bin/tar -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../../con
trib/tar/lib -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../..
/contrib/tar/src  -c /tinderbox/CURRENT/sparc64/sparc64/src/contrib/tar/lib/ge
tdate.c
cc -O2 -pipe  -DHAVE_CONFIG_H -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr
.bin/tar -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../../con
trib/tar/lib -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../..
/contrib/tar/src  -c /tinderbox/CURRENT/sparc64/sparc64/src/contrib/tar/lib/ge
tline.c
cc -O2 -pipe  -DHAVE_CONFIG_H -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr
.bin/tar -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../../con
trib/tar/lib -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../..
/contrib/tar/src  -c /tinderbox/CURRENT/sparc64/sparc64/src/contrib/tar/lib/ge
tstr.c
cc -O2 -pipe  -DHAVE_CONFIG_H -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr
.bin/tar -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../../con
trib/tar/lib -I/tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar/../../..
/contrib/tar/src  -c /tinderbox/CURRENT/sparc64/sparc64/src/contrib/tar/lib/ha
sh.c
{standard input}: Assembler messages:
{standard input}:1283: Error: Illegal operands
*** Error code 1

Stop in /tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin/tar.
*** Error code 1

Stop in /tinderbox/CURRENT/sparc64/sparc64/src/gnu/usr.bin.
*** Error code 1

Stop in /tinderbox/CURRENT/sparc64/sparc64/src/gnu.
*** Error code 1

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

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

Stop in /tinderbox/CURRENT/sparc64/sparc64/src.
TB --- 2004-06-17 13:08:40 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-06-17 13:08:40 - ERROR: failed to build world
TB --- 2004-06-17 13:08:40 - tinderbox aborted


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

Message: 10
Date: Thu, 17 Jun 2004 09:07:27 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: HA: Possible Threading problem with -CURRENT / MySQL?
To: astesin@ukrtelecom.net
Cc: freebsd-current@freebsd.org
Message-ID:
	<Pine.NEB.3.96L.1040617090640.13466J-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Thu, 17 Jun 2004 astesin@ukrtelecom.net wrote:

> > the HTT disabling sysctl/tunable with ULE results in a hang. 
> 
> It's not to be news maybe, anyway I confirm this.

Ditto.  Ran into this yesterday while doing benchmarking.  Jeff mentioned
to me last night that this was something he thought John Baldwin was going
to fix, but I'm not sure if John knows that.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Senior Research Scientist, McAfee Research



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

Message: 11
Date: Thu, 17 Jun 2004 15:21:11 +0200
From: Maxime Henrion <mux@freebsd.org>
Subject: Re: [current tinderbox] failure on amd64/amd64
To: "Liam J. Foy" <liamfoy@sepulcrum.org>
Cc: amd64@freebsd.org
Message-ID: <20040617132111.GO9228@elvis.mu.org>
Content-Type: text/plain; charset=us-ascii

Liam J. Foy wrote:
> On Thu, 17 Jun 2004 05:47:25 -0400 (EDT)
> FreeBSD Tinderbox <tinderbox@freebsd.org> wrote:
> 
> > TB --- 2004-06-17 08:56:11 - tinderbox 2.3 running on freebsd-current.sent
ex.ca
> > TB --- 2004-06-17 08:56:11 - starting CURRENT tinderbox run for amd64/amd6
4
> > TB --- 2004-06-17 08:56:11 - checking out the source tree
> > TB --- 2004-06-17 08:56:11 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd6
4
> > TB --- 2004-06-17 08:56:11 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd
 -A src
> > TB --- 2004-06-17 09:01:06 - building world (CFLAGS=-O2 -pipe)
> > TB --- 2004-06-17 09:01:06 - cd /home/tinderbox/sandbox/CURRENT/amd64/amd6
4/src
> > TB --- 2004-06-17 09:01:06 - /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
> > [...]
> > cc -O2 -pipe    -o nos-tun nos-tun.o 
> > gzip -cn /tinderbox/CURRENT/amd64/amd64/src/sbin/nos-tun/nos-tun.8 > nos-t
un.8.gz
> > ===> sbin/pfctl
> > cc -O2 -pipe  -Wall -Wmissing-prototypes -Wno-uninitialized -Wstrict-proto
types -I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../contrib/pf/pfctl -
I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../sys/contrib/pf -DENABLE_A
LTQ -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /tind
erbox/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl.c
> > cc -O2 -pipe  -Wall -Wmissing-prototypes -Wno-uninitialized -Wstrict-proto
types -I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../contrib/pf/pfctl -
I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../sys/contrib/pf -DENABLE_A
LTQ -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c parse
.c
> > cc -O2 -pipe  -Wall -Wmissing-prototypes -Wno-uninitialized -Wstrict-proto
types -I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../contrib/pf/pfctl -
I/tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl/../../sys/contrib/pf -DENABLE_A
LTQ -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /tind
erbox/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl_parser.c
> > /tinderbox/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl_parser.c: In fun
ction `print_status':
> > /tinderbox/CURRENT/amd64/amd64/src/contrib/pf/pfctl/pfctl_parser.c:559: wa
rning: long long int format, long unsigned int arg (arg 3)
> > *** Error code 1
> > 
> > Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin/pfctl.
> > *** Error code 1
> > 
> > Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin.
> > *** Error code 1
> > 
> > Stop in /tinderbox/CURRENT/amd64/amd64/src.
> > *** Error code 1
> > 
> > Stop in /tinderbox/CURRENT/amd64/amd64/src.
> > *** Error code 1
> > 
> > Stop in /tinderbox/CURRENT/amd64/amd64/src.
> > TB --- 2004-06-17 09:47:25 - WARNING: /usr/bin/make returned exit code  1 

> > TB --- 2004-06-17 09:47:25 - ERROR: failed to build world
> > TB --- 2004-06-17 09:47:25 - tinderbox aborted
> > 
> > _______________________________________________
> > 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"

> 
> 
> The following patch should solve this problem I believe:
> 
> --- /usr/src/contrib/pf/pfctl/pfctl_parser.c	Thu Jun 17 13:20:07 2004
> +++ /home/liamfoy/pfctl_parser.c	Thu Jun 17 13:26:16 2004
> @@ -555,7 +555,7 @@
>  		printf("  %-25s %14u %14s\n", "current entries",
>  		    s->src_nodes, "");
>  		for (i = 0; i < SCNT_MAX; i++) {
> -			printf("  %-25s %14lld ", pf_scounters[i],
> +			printf("  %-25s %14lu ", pf_scounters[i],
>  				    s->scounters[i]);
>  			if (runtime > 0)
>  				printf("%14.1f/s\n",
> 
> 
> 
> Correct me if I am wrong :), would someone care to commit it if its fine?

It's actually not correct.  The scounters[i] here is of type u_int64_t,
so long is not the correct format here (longs are 32bit on many 32bit
architectures such as FreeBSD/i386).  The correct format to use here is
%llu (long long's are at least 64bit), with a cast to (unsigned long long),
but most of the time we prefer to use %ju and a cast to uintmax_t.  C99
also provides macros for fixed-size type formats, and we could thus use
the PRIu64 macro here, but we don't use them because they're too ugly.

I won't commit a fix because this code is in contrib/ and is maintained
by Max Laier (see /usr/src/MAINTAINERS).  I'm CC'ing him this mail though.

Cheers,
Maxime

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

Message: 12
Date: Thu, 17 Jun 2004 22:27:16 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: Bogus signal handler causes kernel panic (5.2.1-p8/i386)
To: Simon Barner <barner@in.tum.de>
Cc: current@freebsd.org
Message-ID: <20040617215851.V1012@gamplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 17 Jun 2004, Bruce Evans wrote:

> On Wed, 16 Jun 2004, Simon Barner wrote:
>
> > I tried the local denial of service attack described in [1], that was
> > reported for Linux 2.4 and 2.6 some days ago (see [2] for the original
> > thread in linux.kernel)  on my FreeBSD 5.2.1-p8 system.
> >
> > The result is a kernel panic (back trace attached).
> >
> > Since des@ told me in a private mail, that he could not reprocduce the
> > panic on -CURRENT, I'd like to ask how to proceed from here.
>
> I couldn't reproduce it either, but I think this is just accidental.
> It takes a particular combination of FPU exceptions and masks to cause
> the panic.

I can now reproduce it.  The case of it involving signal handlers takes
all of the following:
(a) doing FP calculations in a signal handler.  This is not normally
    useful, and is not supported in RELENG_4.
(b) generating an unmasked pending but not trapped on exception in (a).
(c) using an old CPU, or using CPU_DISABLE_SSE.  The bug doesn't affect
    the SSE (FXSR) case like I first thought.
(d) running 5.x.  The bug is not in RELENG_4 like I first thought.
(e) running 5.x unmodified.  I use 4.x signal handlers in my 5.x userland
    for backwards compatibility.  This unsupports doing FP in signal
    handlers as in (a) and happens to avoid going near the bug.

> Try the following quick fix.  It is for -current but should work for
> RELENG_5 and RELENG_4 too.  (Note that it changes fpurstor(), not
> fpusave().  The patch context is not large enough to be unambigous.)
> It might be incomplete.

Try the following not so quick fix.  It is for -current but should work
for RELENG_5 too.

%%%
Index: npx.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/isa/npx.c,v
retrieving revision 1.149
diff -u -2 -r1.149 npx.c
--- npx.c	6 Jun 2004 15:17:44 -0000	1.149
+++ npx.c	17 Jun 2004 11:28:13 -0000
@@ -873,4 +924,13 @@
 	struct thread *td;

+	/*
+	 * Discard pending exceptions in the !cpu_fxsr case so that unmasked
+	 * ones don't cause a panic on the next frstor.
+	 */
+#ifdef CPU_ENABLE_SSE
+	if (!cpu_fxsr)
+#endif
+		fnclex();
+
 	td = PCPU_GET(fpcurthread);
 	PCPU_SET(fpcurthread, NULL);
%%%

> I think RELENG_4 has the problem too in the (CPU_ENABLE_SSE && cpu_fxsr)
> case.  Then fpusave() doesn't reset the npx state, so there may be a
> pending exception from the previous process.  fpurstor() then traps if
> it happens to restore a state that has the exception unmasked.  There
> used to be no problem because the previous state was always put away
> using the fnsave instruction, and fnsave has the side effect of
> initializing a clean state, in particular a state that doesn't have
> any pending exceptions.  This has been broken in 2 ways:
> - in RELENG_4 and -current, fxsave is used instead of fnsave in the
>   (CPU_ENABLE_SSE && cpu_fxsr) case).  fxsave doesn't have the side
>   effect.
> - in -current, the previous state is sometimes dropped instead of
>   saved.  This is entirely in software, so it doesn't have the side
>   effect.

Actually, there is only a problem from dropping the state, only in the
!fxsr case.  There is no problem using fxsave+fxrstor because fxrstor
works right.

> > [1] http://linuxreviews.org/news/2004-06-11_kernel_crash/#toc1
> > [2] http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&frame=right&th=f7580
d647408b95b&seekm=26hGq-Zr-31%40gated-at.bofh.it#link1
>
> The bug is a little different in Linux.  Linux uses more synchronization
> instructions, perhaps unnecessarily.  Its version of dropping the state
> isn't entirely in software.  It has an fwait that was not preceded by an
> fnclex, so it paniced if there were any pending exceptions in the state
> being dropped.

The above fix makes the difference littler.  It puts the fnclex in
npxdrop() instead of in fpurstor() because the later is called more
often.

Bruce

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

Message: 13
Date: Thu, 17 Jun 2004 15:26:01 +0200
From: Martin Nilsson <martin@gneto.com>
Subject: Re: Loader failure when booting from CompactFlash
To: avleeuwen@piwebs.com
Cc: freebsd-current@freebsd.org
Message-ID: <40D19BE9.2090802@gneto.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

avleeuwen@piwebs.com wrote:
> I'm trying to boot a compact -CURRENT installation from a CompactFlash
> disk on a Lex Light mini system (see www.lex.com.tw).

I've installed ThinBSD (which is based on 5.2.1) on a Lex Light and it 
works.

> If I boot from a hard drive, it works fine, but when I boot from the
> CompactFlash, it crashes immediately when attempting to start the loader.
> It gives an error message, but the system immediately restarts, so I can't
> read it. The CompactFlash disk boots fine in a completely different
> system.

How have you formatted (slices/labels) the flash? I was unable to get it 
to boot if I did it in another computer with a 7in1 cardreader.. I had 
to boot on a FreeBSD CD in the lex and run sysinstall from there. (CD 
was connected via USB).

	/Martin

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

Message: 14
Date: Thu, 17 Jun 2004 09:36:20 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: ** HEADS UP **  GDB detached from the 5-CURRENT build
To: freebsd-current@freebsd.org
Message-ID: <20040617133620.GB15918@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Jun 17, 2004 at 01:28:31AM -0700, David O'Brien wrote:
> On Wed, Jun 16, 2004 at 03:38:20PM -0400, Brian Feldman wrote:
> > On Tue, Jun 15, 2004 at 10:23:31PM -0700, David O'Brien wrote:
> > > I have disconnected (i.e., disabled) `gdb` from 'make world' due to the

> > > impending binutils 2.15 import.  GDB 5.12 cannot consume the 2.15 bfd an
d
> > > libiberty.
> > > 
> > > For now GDB users will have to use the devel/gdb6 port.  There will be a
n
> > > import of GDB 6.x into the /usr/src tree before 5.3-RELEASE.
> > 
> > The distfiles are gone for the snapshot currently specified in the gdb6
> > port.
> 
> You need to CVSup more often:
> 
>     obrien      2004-06-14 08:33:19 UTC
> 
>     FreeBSD ports repository
>     Modified files:
>         devel/gdb6           Makefile distinfo
>     Log:
>         Update to the 2003-05-25 snapshot.
> 
> Bento should also have older ones.  You're also capable of bumping the
> snapshot date and updating the port. :-)

It's already off the mirrors, that version :-(  I tried doing a simple
bump and it patched fine but there were API changes that meant having
to learn GDB internals if I wanted to fix it.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


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

Message: 15
Date: Thu, 17 Jun 2004 15:49:47 +0200
From: Ian FREISLICH <if@hetzner.co.za>
Subject: Re: USB woes. 
To: ticso@cicely.de
Cc: current@freebsd.org
Message-ID: <E1BaxH1-000JhK-00@hetzner.co.za>

> OK - we have a problem, but we don't know which :(
> Add USB_DEBUG to your kernel and you should get more data out of this
> case.

I'll send output tomorrow or later tonight.

> > If I boot with the device attached, 'usbdevs -v' pauses for quite
> > a long time and gives the correct probe line:
> > 
> > [brane-dead] ~ # usbdevs -v
> > Controller /dev/usb0:
> > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0
x
0000), rev 1.00
> >  port 1 powered
> >  port 2 addr 2: full speed, power 500 mA, config 1, Flash Reader(0xa600), 
D
ATAFAB(0x07c4), rev 1.19
> 
> Interesting.
> 
> > However, the device is still unusable.
> 
> Mmm - but usbdevs gets it's data by directly talking to the device, so
> everytime you invoke usbdevs the device is involved.
> What excactly is _unuseable_?

Just did enough stuff to get these, but now the machine has locked
up, so I can do no more before I get home.

umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT

Ian

--
Ian Freislich

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

Message: 16
Date: Thu, 17 Jun 2004 09:58:54 -0400
From: Brian Fundakowski Feldman <green@FreeBSD.org>
Subject: Re: Pioneer DVDR 105 issues
To: Grover Lines <grover@ceribus.net>
Cc: current@FreeBSD.org
Message-ID: <20040617135854.GC15918@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Wed, Jun 16, 2004 at 02:08:39PM -0400, Brian Feldman wrote:
> On Fri, Jun 11, 2004 at 12:15:10PM -0700, Grover Lines wrote:
> > The only way I can get the system to boot up fully is by closing the drive

> > door to prevent a ata timeout hang. 
> > 
> > Motherboard is a via p4x266
> 
> I think there is just general media sense bugginess these days :-/  By
> just reading an audio CD I can kill ATAPICAM (and the whole system) with
> what looks like a totally lost SCSI request, and cause unlimited atapi-cd
> pain by trying to eject a drive that's already ejected.

Try upgrading firmware -- updating from that available two months ago
made this problem mostly disappear.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


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

Message: 17
Date: Thu, 17 Jun 2004 16:00:46 +0200
From: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Subject: why timeradd() and co are hidden from the kernel space ?
To: <current@freebsd.org>
Cc: hackers@freebsd.org
Message-ID: <043601c45473$7dbb36d0$7890a8c0@dyndns.org>
Content-Type: text/plain;	charset="iso-8859-1"

Hi,

is there any reasons to hide timeradd() and co in <sys/time.h>
from the kernel space (! _KERNEL) ?

how about to remove #ifndef _KERNEL/#endif ?

CC -hackers

Cyrille Lefevre.
-- 
home: mailto:cyrille.lefevre@laposte.net

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

Message: 18
Date: Thu, 17 Jun 2004 16:25:32 +0200 (CEST)
From: avleeuwen@piwebs.com
Subject: Re: Loader failure when booting from CompactFlash
To: "Martin Nilsson" <martin@gneto.com>
Cc: freebsd-current@freebsd.org
Message-ID:
	<26504.212.83.93.49.1087482332.squirrel@winston.piwebs.com>
Content-Type: text/plain;charset=iso-8859-1

> avleeuwen@piwebs.com wrote:
>> I'm trying to boot a compact -CURRENT installation from a CompactFlash
>> disk on a Lex Light mini system (see www.lex.com.tw).
>
> I've installed ThinBSD (which is based on 5.2.1) on a Lex Light and it
> works.
>
>> If I boot from a hard drive, it works fine, but when I boot from the
>> CompactFlash, it crashes immediately when attempting to start the
>> loader.
>> It gives an error message, but the system immediately restarts, so I
>> can't
>> read it. The CompactFlash disk boots fine in a completely different
>> system.
>
> How have you formatted (slices/labels) the flash? I was unable to get it
> to boot if I did it in another computer with a 7in1 cardreader.. I had
> to boot on a FreeBSD CD in the lex and run sysinstall from there. (CD
> was connected via USB).

Thanks! An install from CD works indeed. But as soon as I overwrite the
data on the partition with my own (with a dump/restore in the cardreader),
the same thing happens again. I guess it's not the partitioning that is to
blame. I'll experiment with leaving /boot alone.

Arjan


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

Message: 19
Date: Thu, 17 Jun 2004 11:26:19 -0300
From: m0f0x <m0f0x@sdf.lonestar.org>
Subject: Possible ATAPICAM problems?
To: "FreeBSD CURRENT" <current@freebsd.org>
Message-ID: <opr9qs150irfodl0@localhost.localdomain>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1

Hi,

I have an old CD-R/W IDE drive, HP CD-Writer 9300i (firmware: 1.0c), and  
I'm expecting problems using it on applications like cdrecord (SCSI  
emulation by using ATAPICAM).

I'm using FreeBSD 5.2.1-p8, and even sending a simple blank-CD command  
(blank=fast, blank=all, no matter the kind of blank command), I got a  
kernel panic. On FreeBSD 5.0 & 5.1, these problems never occoured.

Using burncd, I can burn everything without any problem (as expected, not  
using ATAPICAM), but I want to use cdrecord to write audio CDs using DAO  
recording method, since I want to backup some live CDs that I own.

I know that burncd supports DAO writing mode, but passing the -d switch  
gives me an error (the recorder refuses the cue sheet and aborts the  
writing).

Anybody here is getting this kind of problem using IDE CD-R/W drives?  Any  
possible solutions?

Thanks in advance,
m0f0x

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

Message: 20
Date: Thu, 17 Jun 2004 09:27:38 -0500
From: Craig Boston <craig@xfoil.gank.org>
Subject: Re: (continued) XFree86 problem?
To: Kris Kennaway <kris@obsecurity.org>
Cc: freebsd-current@freebsd.org
Message-ID: <200406170927.38606.craig@xfoil.gank.org>
Content-Type: text/plain;  charset="iso-8859-1"

On Wednesday 16 June 2004 08:05 pm, Kris Kennaway wrote:
> Does xrestop show anything for you (it didn't for the OP, but it may
> not be the same problem)?

Nothing really useful:

(top)
  769 root     104    0   441M   416M RUN    576:24 20.31% 20.31% XFree86

(xrestop)
xrestop - Display: localhost:0
          Monitoring 36 clients. XErrors: 0
          Pixmaps:   30123K total, Other:    1003K total, All:   31127K total


Glancing through the list of clients, I don't see any that look obviously 
wrong.  All of them correspond to currently running processes.  There is only 

1 unknown but it doesn't seem to be taking up much memory:

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier   
 
4200000     6   39    1    6   27      192K      2K    194K   ?   <unknown>

So if it's a client resource leak, it's not one that xrestop can detect...  
Also, usage as reported by xrestop has gone down by 25M since my post 
yesterday (I have a lot less running now), but the XFree86 process is still 
at 416 resident -- only a 4M drop.

It could just be XFree86 being overly aggressive with its pixmap cache, but I 

don't know how to check that and/or tune it to more reasonable values.

Craig

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

Message: 21
Date: Thu, 17 Jun 2004 10:39:32 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: Possible ATAPICAM problems?
To: m0f0x <m0f0x@sdf.lonestar.org>
Cc: FreeBSD CURRENT <current@freebsd.org>
Message-ID: <20040617143932.GD15918@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Jun 17, 2004 at 11:26:19AM -0300, m0f0x wrote:
> Hi,
> 
> I have an old CD-R/W IDE drive, HP CD-Writer 9300i (firmware: 1.0c), and  
> I'm expecting problems using it on applications like cdrecord (SCSI  
> emulation by using ATAPICAM).
> 
> I'm using FreeBSD 5.2.1-p8, and even sending a simple blank-CD command  
> (blank=fast, blank=all, no matter the kind of blank command), I got a  
> kernel panic. On FreeBSD 5.0 & 5.1, these problems never occoured.
> 
> Using burncd, I can burn everything without any problem (as expected, not  

> using ATAPICAM), but I want to use cdrecord to write audio CDs using DAO  
> recording method, since I want to backup some live CDs that I own.
> 
> I know that burncd supports DAO writing mode, but passing the -d switch  
> gives me an error (the recorder refuses the cue sheet and aborts the  
> writing).
> 
> Anybody here is getting this kind of problem using IDE CD-R/W drives?  Any  

> possible solutions?

Please try to get more information about this crash, at least a backtrace
from DDB, certainly.

<http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kernelde
bug.html>

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


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

Message: 22
Date: Thu, 17 Jun 2004 08:21:30 -0700 (PDT)
From: Daryl Chance <chancedj@yahoo.com>
Subject: 	Error compiling sources - Upgrading from FreeBSD 5.2.1-p6 ->
	Current
To: freebsd-current@freebsd.org
Message-ID: <20040617152130.97655.qmail@web53702.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

Last cvsup was no more then an hour ago(did a complete
rm of the /usr/src dir).

i do a make buildworld and i get this error:

cc -O -pipe -I.
-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd
-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../libbfd/i386
-I/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../lib
bfd
-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutil
s/include
-DDEFAULT_ARCH=\"i386\" -DTARGET_CPU=\"i386\"
-DTARGET_CANONICAL=\"i386-obrien-freebsd\"
-DTARGET_ALIAS=\"i386-obrien-freebsd\"
-DVERSION=\""2.15 [FreeBSD] 2004-05-23"\"
-D_GNU_SOURCE
-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutil
s/gas
-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutil
s/gas/config
-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutil
s
-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/.. 
-I/usr/obj/usr/src/i386/legacy/usr/include  -static
-L/usr/obj/usr/src/i386/legacy/usr/lib -o as app.o
as.o atof-generic.o atof-ieee.o bignum-copy.o cond.o
dwarf2dbg.o ecoff.o expr.o flonum-copy.o
flonum-konst.o flonum-mult.o frags.o hash.o
input-file.o input-scrub.o listing.o literal.o macro.o
messages.o output-file.o read.o sb.o stabs.o subsegs.o
symbols.o write.o depend.o ehopt.o dw2gencfi.o
obj-elf.o tc-i386.o ../../libbfd/libbfd.a
./../libiberty/libiberty.a
./../libopcodes/libopcodes.a
/usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a
-legacy
as.o: In function `parse_args':
as.o(.text+0x3b8): undefined reference to
`getopt_long_only'
*** Error code 1

Stop in /usr/src/gnu/usr.bin/binutils/as/i386-freebsd.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/binutils/as.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/binutils.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


The only response I've gotten so far is that I
possibly have an outdated libc.  So I go to the libc
directory to upgrade it and get the following:

cc -O -pipe -mcpu=pentiumpro
-I/usr/src/lib/libc/include
-I/usr/src/lib/libc/../../include
-I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE
-I/usr/src/lib/libc/../../contrib/gdtoa -DINET6
-I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE
-I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP
-DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD
-Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized  -c nslexer.c
/dev/stdout: In function `_nsyylex':
/dev/stdout:711: warning: label `find_rule' defined
but not used
/usr/src/lib/libc/net/nslexer.l: At top level:
/dev/stdout:1678: warning: `yy_flex_realloc' defined
but not used
*** Error code 1

Stop in /usr/src/lib/libc.

I think it has something to do with the -Werror since
it's breaking on warnings, but I can't find where it
adds that to the command line.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Message: 23
Date: Thu, 17 Jun 2004 17:28:43 +0200
From: Max Laier <max@love2party.net>
Subject: Re: [current tinderbox] failure on amd64/amd64
To: freebsd-current@freebsd.org
Cc: "Liam J. Foy" <liamfoy@sepulcrum.org>
Message-ID: <200406171728.51186.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"

On Thursday 17 June 2004 15:21, Maxime Henrion wrote:
> It's actually not correct.  The scounters[i] here is of type u_int64_t,
> so long is not the correct format here (longs are 32bit on many 32bit
> architectures such as FreeBSD/i386).  The correct format to use here is
> %llu (long long's are at least 64bit), with a cast to (unsigned long long),

> but most of the time we prefer to use %ju and a cast to uintmax_t.  C99
> also provides macros for fixed-size type formats, and we could thus use
> the PRIu64 macro here, but we don't use them because they're too ugly.
>
> I won't commit a fix because this code is in contrib/ and is maintained
> by Max Laier (see /usr/src/MAINTAINERS).  I'm CC'ing him this mail though.

Thanks and sorry for the delay, really was thinking that I gave the 
tinderboxes enough time to speak up before I went to bed. Anyway, just 
committed a fix. For pf we use a cast to (unsigned long long) in order to 
feed those changes back to OpenBSD (where they have no C99 and thus no 
uintmax_t).

-- 
Best regards,				| mlaier@freebsd.org
Max Laier				| ICQ #67774661
http://pf4freebsd.love2party.net/	| mlaier@EFnet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040617/
ee0ec7da/attachment-0001.bin

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

Message: 24
Date: Thu, 17 Jun 2004 17:39:41 +0200
From: Martin Nilsson <martin@gneto.com>
Subject: ACPI killed my USB
To: freebsd-current@freebsd.org
Message-ID: <40D1BB3D.9060702@gneto.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

I'm running yesterdays current but this problem have probably been there 
for a while since I don't normally use any USB gadgets.

Chipset: Serverworks III-LE
USB hw: ohci controller on motherboard - 7in1 cardreader, logitech mouse.

Symptoms: Cardreader hangs system with CF inserted, mousepointer visoble 
but does not move.

Without ACPI I can use both the cardreader and the mouse.

What should I do to help debug this?

	/Martin

dmesg from Boot with ACPI enabled.

Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 5.2-CURRENT #0: Wed Jun 16 23:41:00 CEST 2004
 
root@freedom7.gneto.com:/usr/obj/home/FreeBSD/FreeBSD-current/src/sys/FREEDOM7

Preloaded elf kernel "/boot/kernel/kernel" at 0xc0abd000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0abd26c.
ACPI APIC Table: <RCC    RCCNILE >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(TM) CPU                1400MHz (1396.27-MHz 
686-class CPU)
   Origin = "GenuineIntel"  Id = 0x6b4  Stepping = 4
 
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536805376 (511 MB)
avail memory = 515616768 (491 MB)
     ACPI-0697: *** Warning: Type override - [DEB_] had invalid type 
(Integer) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [MLIB] had invalid type 
(Integer) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [IO__] had invalid type 
(Integer) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [DATA] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [SIO_] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [SB__] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [PM__] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [ICNT] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [ACPI] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [CSB5] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [PM__] had invalid type 
(String) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [BIOS] had invalid type 
(Integer) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [CMOS] had invalid type 
(Integer) for Scope operator, changed to (Scope)
     ACPI-0697: *** Warning: Type override - [OEM_] had invalid type 
(Integer) for Scope operator, changed to (Scope)
ioapic0: Changing APIC ID to 4
ioapic1: Changing APIC ID to 5
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
random: <entropy source, Software, Yarrow>
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <RCC RCCNILE> on motherboard
acpi0: [GIANT-LOCKED]
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
pcibios: BIOS version 2.10
unknown: dependant functions not supported

.. lots of these ...

unknown: dependant functions not supported
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0
cpu0: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 15 INTA is routed to irq 10
fxp0: <Intel 82559 Pro/100 Ethernet> port 0xb800-0xb83f mem 
0xfe800000-0xfe8fffff,0xfe9fb000-0xfe9fbfff irq 20 at device 2.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:c0:9f:08:79:63
fxp0: [GIANT-LOCKED]
pci0: <unknown> at device 6.0 (no driver attached)
pci0: <network, ethernet> at device 9.0 (no driver attached)
pci0: <display, VGA> at device 11.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 15.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <ServerWorks CSB5 UDMA100 controller> port 
0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ohci0: <OHCI (generic) USB controller> mem 0xfe9fe000-0xfe9fefff irq 10 
at device 15.2 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ums0: B16_b_02 USB-PS/2 Optical Mouse, rev 2.00/98.02, addr 2, iclass 3/1
ums0: 4 buttons and Z dir.
umass0: Genesys Logic Flash Reader, rev 2.00/1.25, addr 3
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0:0:0:-1: Attached to scbus0
pcib1: <ACPI Host-PCI bridge> on acpi0
pci1: <ACPI PCI bus> on pcib1
pcib2: <PCI-PCI bridge> at device 2.0 on pci1
pci2: <PCI bus> on pcib2
amr0: <LSILogic MegaRAID> mem 0xfc4f0000-0xfc4fffff irq 16 at device 2.1 
on pci1
amr0: [GIANT-LOCKED]
amr0: <Series 467> Firmware H79N, BIOS 2.10, 128MB RAM
ti0: <Netgear GA620 1000baseT Gigabit Ethernet> mem 
0xfebf4000-0xfebf7fff irq 18 at device 3.0 on pci1
ti0: Ethernet address: 00:02:e3:00:48:8b
ti0: [GIANT-LOCKED]
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0: I/O to control range incorrect
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
fdc0: I/O to control range incorrect
orm0: <Option ROMs> at iomem 0xc8800-0xc9fff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1396274285 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 29314MB <IBM-DTLA-307030> [59560/16/63] at ata0-master UDMA100
acd0: CDROM <ATAPI-CD ROM-DRIVE-56MAX> at ata1-master UDMA33
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT

. here i Removed the CF card from the reader ...

Mounting root from ufs:/dev/ad0s1a
ti0: gigabit link up
ti0: gigabit link up
usbd_setup_pipe: failed to start endpoint, TIMEOUT

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

Message: 25
Date: Thu, 17 Jun 2004 17:42:06 +0200
From: Martin Nilsson <martin@gneto.com>
Subject: Re: USB woes.
To: Ian FREISLICH <if@hetzner.co.za>
Cc: ticso@cicely.de
Message-ID: <40D1BBCE.1000300@gneto.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

Ian FREISLICH wrote:
> Just did enough stuff to get these, but now the machine has locked
> up, so I can do no more before I get home.
> 
> umass0: BBB reset failed, TIMEOUT
> umass0: BBB bulk-in clear stall failed, TIMEOUT

I have the same problem, It works for me if I boot without ACPI have you 
tested that?

	/Martin


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

Message: 26
Date: Thu, 17 Jun 2004 17:21:56 +0200
From: Brad Knowles <brad.knowles@skynet.be>
Subject: Re: ppp with dynamic IPs and ipfw "me"
To: Oliver Fromme <olli@lurza.secnetix.de>
Cc: freebsd-current@FreeBSD.ORG
Message-ID: <p0600202dbcf7675b9773@[10.0.1.3]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

At 12:16 PM +0200 2004-06-17, Oliver Fromme wrote:

>  Uhm, well, in my /etc/ppp/ppp.linkup script I simply
>  "killall ntpd" and then restart it with the options
>  from my /etc/rc.conf.  It's not really a big deal.
>
>  If there's a better, cleaner approach to the problem,
>  I'd certainly like to hear about it as well.

	The generally preferred approach is to configure your machine to 
manage the ntpd operation using the ntpdc program, and then use ntpdc 
to do things like cleanly shut the program down.

-- 
Brad Knowles, <brad.knowles@skynet.be>

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
     -Benjamin Franklin, Historical Review of Pennsylvania.

   SAGE member since 1995.  See <http://www.sage.org/> for more info.

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

Message: 27
Date: Thu, 17 Jun 2004 18:29:12 +0200
From: Andreas Braukmann <braukmann@tse-online.de>
Subject: 	Realtek RT8139 (onboard) - failed to receive packet in
	loopback mode
To: freebsd-current@freebsd.org
Message-ID: <17680000.1087489752@bitrot.bitlab.unixxinu.de>
Content-Type: text/plain; charset=us-ascii

Hi there,

I'm using a bunch of Portwell SBCs with five onboard Realtek
8139C+ NICs. Currently they're running 5.0 kernels from around
April, 2003 and the NICs are driven by rl(4). Since then the
8139C+ was moved to re(4). 

re(4) doesn't like the chips, though.

pciconf -lv output:
 
re0@pci0:9:0:   class=0x020000 card=0x813910ec chip=0x813910ec rev=0x20 hdr=0x
00
    vendor   = 'Realtek Semiconductor'
    device   = 'RT8139 (A/B/C/813x/C+) Fast Ethernet Adapter'
    class    = network
    subclass = ethernet

dmesg output:

re0: <RealTek 8139C+ 10/100BaseTX> port 0xdc00-0xdcff mem 0xe3400000-0xe34000f
f irq 11 at device 9.0 on pci0
re0: Ethernet address: 00:90:fb:04:1b:31
re0: diagnostic failed, failed to receive packet in loopback mode
re0: attach aborted due to hardware diag failure
device_attach: re0 attach returned 5


It seems that the 8169-specific hardware diagnostic (re_diag(sc))
should only carried out for chips being identified as 8169 based.

I did this trivial patch (v 1.24):


gate# diff -C2 if_re.c.sav if_re.c
*** if_re.c.sav Thu Jun 17 17:08:48 2004
--- if_re.c     Thu Jun 17 17:09:58 2004
***************
*** 1277,1287 ****
  
        /* Perform hardware diagnostic. */
!       error = re_diag(sc);
  
!       if (error) {
!               printf("re%d: attach aborted due to hardware diag failure\n",

!                   unit);
!               ether_ifdetach(ifp);
!               goto fail;
        }
  
--- 1277,1289 ----
  
        /* Perform hardware diagnostic. */
!       if (sc->rl_type == RL_8169) {
!               error = re_diag(sc);
  
!               if (error) {
!                       printf("re%d: attach aborted due to hardware diag fail
ure\n",
!                                       unit);
!                       ether_ifdetach(ifp);
!                       goto fail;
!               }
        }


The neat result:
gate# kldload ./if_re.ko

re0: <RealTek 8139C+ 10/100BaseTX> port 0xdc00-0xdcff mem 0xe3400000-0xe34000f
f irq 11 at device 9.0 on pci0
re0: Ethernet address: 00:90:fb:04:1b:31
re0: [GIANT-LOCKED]
[... same for the other four nics ...]


I see no ill effects so far.


-Andreas



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

Message: 28
Date: Thu, 17 Jun 2004 18:33:56 +0200
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
Subject: HEADSUP:  udev_t -> dev_t patch underway
To: current@freebsd.org
Message-ID: <960.1087490036@critter.freebsd.dk>


I am in final testing of the second half of the dev_t cleanup: the
patch which makes a dev_t be the same in userland and the kernel.

Expect to see a commit in a few hours.

-- 
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: 29
Date: Thu, 17 Jun 2004 09:54:39 -0700
From: "David O'Brien" <obrien@freebsd.org>
Subject: Re: ** HEADS UP **  GDB detached from the 5-CURRENT build
To: Roman Kurakin <rik@cronyx.ru>
Cc: freebsd-current@freebsd.org
Message-ID: <20040617165439.GA91734@dragon.nuxi.com>
Content-Type: text/plain; charset=us-ascii

On Wed, Jun 16, 2004 at 08:22:54PM +0400, Roman Kurakin wrote:
> David O'Brien wrote:
> >I have disconnected (i.e., disabled) `gdb` from 'make world' due to the
> >impending binutils 2.15 import.  GDB 5.12 cannot consume the 2.15 bfd and
> >libiberty.
> >
> >For now GDB users will have to use the devel/gdb6 port.  There will be an
> >import of GDB 6.x into the /usr/src tree before 5.3-RELEASE.
> 
> How long it may take?

Not sure.  But it would be emancely useful if people would use the gdb6
port so gdb6 gets wider testing on FreeBSD before 5.3.

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

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

Message: 30
Date: Thu, 17 Jun 2004 10:03:00 -0700 (PDT)
From: Luke <luked@pobox.com>
Subject: Re: ehci + axe panics
To: Luke <luked@pobox.com>
Cc: freebsd-current@freebsd.org
Message-ID: <Pine.NEB.4.60.0406170942030.14781@ukato.freeshell.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


I have some more information to add to this.
I'm still working on it.

I've added
#define DIAGNOSTIC
#define USB_DEBUG
to usb.h

When I set hw.usb.ehci.debug to 3 or higher.... everything works.  I can 
run ssh sessions across the axe interface and even run iperf.  The higher 
I set hw.usb.ehci.debug, the more debugging information is displayed, and 
the slower the throughput of the connection.  At hw.usb.ehci.debug=3, I'm 
getting around 250Kb/s - similar to the speeds I get when I use the device 
with ohci.
As soon as I drop hw.usb.ehci.debug down to 2 or lower, throughput goes up 
and there's a page fault panic.  Unfortunately, the debugging information 
at level 2 isn't very helpful.

Right up before the panic, there are a few "usbd_transfer_cb: short 
transfer 0 < 2" and "axe1: read PHY failed" interspersed with all of the 
normal spam.  There's normally about three sets of these, then there's a 
page fault panic in one of three or four different places.

I'm trying to get enough information to put together a coherent PR or 
perhaps fix the problem myself, but this seems to be one of those problems 
in science that can't be observed closely without changing it.

I'm still wondering if my device is trying to use a feature of ehci that 
isn't implemented yet... but if it were, why would the device work at low 
throughput?

> Date: Wed, 9 Jun 2004 22:55:13 -0700 (PDT)
> From: Luke <luked@pobox.com>
> To: freebsd-current@freebsd.org
> Subject: ehci + axe panics
> 
>
> I recently built the ehci driver into my CURRENT kernel so that I could try 

> out USB 2.0 with my Netgear FA120 USB 2.0 network interface.  I've been usin
g 
> it with just ohci for several weeks, and since Ian Dowse's last patch to the
 
> axe driver, I've had no trouble with it except for the slow USB 1 speed.
>
> Since I've started using ehci, I've started getting a variety of different 

> kernel panics whenever I ifconfig the axe device and attempt to use it. As 

> long as I don't assign an IP address to the device and don't send any traffi
c 
> across it, there's no problem.  I can usually ping across it for a few 
> minutes too, but very soon it becomes angry and panics.
>
> I've added "#define USB_DEBUG" to usb.h, rebuilt the kernel, and played 
> around with the hw.usb sysctl settings trying to get more information, but i
t 
> all means little to me.
>
> I've seen three varieties of panics so far, and there may be more variations
. 
> They're all "Fatal trap 12: page faults".
> The most common one I've seen is thrown by (irq9: ehci0), the interrupt 
> assigned to my ehci controller.  One variety of it ends with "memcpy", 
> preceded by "ehci_idone" and "ehci_checkintr".
> Another variety, also thrown by (irq9: ehci0), ends with "usb_freemem" 
> preceded by "ehci_freemem", "usb_transfer_complete", "ehci_done", and 
> "ehci_checkintr".
> The third variety I've seen was thrown by (swi1: net), and I'd seen so many 

> variations by now I didn't bother writing it down.
>
> In all cases, a mere second or two  before the panic occurs, the bright 
> system message "read PHY failed" appears on the console, sometimes twice.
>
> When I turned up the debugging levels, the "read PHY failed" messages became
 
> "usbd_transfer_cb: short transfer 0<2" followed by "axe1: read PHY failed". 

> I think this is the key to the whole thing - the herald of the coming panic.

>
> Am I attempting to make use of a feature that the ehci driver does not yet 

> support?
>
> If anybody would like any debugging information, I'll be happy to provide 
> what I'm able.  So far I've been unsuccessful at getting the debugger to sav
e 
> a dump to the disk, but I can take scripts and copy down debugger traces if 

> that would be useful to anyone.
> _______________________________________________
> 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"
>

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

_______________________________________________
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 65, Issue 14
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......
�� ��源:������� bbs.ustc.edu.cn��[FROM: 210.45.72.234]