Randall Stewart | 1 Mar 2007 01:00
Picon
Favicon

Re: HEADS UP: UNIX domain socket locking changes merged to CVS HEAD

Robert Watson wrote:
> 
> On Wed, 28 Feb 2007, Stephane E. Potvin wrote:
> 
>>> Please let me know if you experience any problems with UNIX domain 
>>> sockets -- these changes will affect applications that consume UNIX 
>>> domain sockets directly, like MySQL and Postfix, as well as consumers 
>>> of POSIX fifos, which are implemented using UNIX domain sockets 
>>> in-kernel.
>>
>> Since this commit, I've been observing frequent deadlocks on my 
>> laptop, mostly when starting-up gnome. It usually takes less than 5 to 
>> 10 minutes for the deadlock to happens.
>>
>> I was able to drop into ddb once and got the following information: 
>> (there might be some typos as I had to copy this manually)
> 
> Thanks, this information was very helpful, and indeed the problem is as 
> you surmise: cases existed where more than one unpcb lock was acquired 
> at a time when holding only a global read lock, not a global write 
> lock.  I guess these slipped through from an earlier version of the 
> patch.  In any case, could you try the patch at:
> 
>   http://www.watson.org/~robert/freebsd/netperf/20070228-unp_deadlock.diff
> 
> This eliminates overlapped unpcb lock acquisition in both datagram and 
> stream cases, and with any luck will fix the deadlock problem.  It may 
> also marginally improve performance by further reducing unpcb lock 
> contention.
> 
(Continue reading)

FreeBSD Tinderbox | 1 Mar 2007 02:05
Picon
Favicon

[head tinderbox] failure on sparc64/sparc64

TB --- 2007-02-28 23:42:30 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2007-02-28 23:42:30 - starting HEAD tinderbox run for sparc64/sparc64
TB --- 2007-02-28 23:42:30 - cleaning the object tree
TB --- 2007-02-28 23:43:28 - checking out the source tree
TB --- 2007-02-28 23:43:28 - cd /tinderbox/HEAD/sparc64/sparc64
TB --- 2007-02-28 23:43:29 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src
TB --- 2007-03-01 00:01:01 - building world (CFLAGS=-O2 -pipe)
TB --- 2007-03-01 00:01:01 - cd /src
TB --- 2007-03-01 00:01:01 - /usr/bin/make -B buildworld
>>> World build started on Thu Mar  1 00:01:04 UTC 2007
>>> 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  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/ipsec.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/bpf.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
(Continue reading)

Daniel Gerzo | 1 Mar 2007 02:05
Picon
Favicon

mount/fstab parsing broken

Hello current,

Having the following fstab makes my system 100% unbootable under
7.0 with sources from Wed Feb 28 23:47:39 CET 2007 (it works under
6.2).

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/gm0s1b      none            swap    sw              0       0
/dev/mirror/gm0s1a      /               ufs     rw,nodev,noatime                1       1
/dev/mirror/gm0s1f      /data           ufs     rw,nosuid,nodev,noatime         2       2
/dev/mirror/gm0s1d      /usr            ufs     rw,nodev,noatime                2       2
/dev/mirror/gm0s1e      /var            ufs     rw,nosuid,nodev,noexec,noatime          2       2
/dev/cd0                /cdrom          cd9660  ro,noauto       0       0

it fails with some errors with getty (maybe /dev is not mounted or
something)

Also, having this fstab and trying to mount -u -a on a running system,
causes to produce the following messages in the messages log:

Mar  1 01:23:13 db2 kernel: mount option <dev> is unknown

The following fstab works w/o any problem.

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/mirror/gm0s1b      none            swap    sw              0       0
/dev/mirror/gm0s1a      /               ufs     rw              1       1
/dev/mirror/gm0s1f      /data           ufs     rw              2       2
/dev/mirror/gm0s1d      /usr            ufs     rw              2       2
/dev/mirror/gm0s1e      /var            ufs     rw              2       2
(Continue reading)

FreeBSD Tinderbox | 1 Mar 2007 02:32
Picon
Favicon

[head tinderbox] failure on sparc64/sun4v

TB --- 2007-03-01 00:26:34 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2007-03-01 00:26:34 - starting HEAD tinderbox run for sparc64/sun4v
TB --- 2007-03-01 00:26:34 - cleaning the object tree
TB --- 2007-03-01 00:27:02 - checking out the source tree
TB --- 2007-03-01 00:27:02 - cd /tinderbox/HEAD/sparc64/sun4v
TB --- 2007-03-01 00:27:02 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src
TB --- 2007-03-01 00:39:49 - building world (CFLAGS=-O2 -pipe)
TB --- 2007-03-01 00:39:49 - cd /src
TB --- 2007-03-01 00:39:49 - /usr/bin/make -B buildworld
>>> World build started on Thu Mar  1 00:39:51 UTC 2007
>>> 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  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/ipsec.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/bpf.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
(Continue reading)

M. Warner Losh | 1 Mar 2007 03:00

Re: mount/fstab parsing broken

In message: <1687213025.20070301020540 <at> rulez.sk>
            Daniel Gerzo <danger <at> freebsd.org> writes:
: Hello current,
: 
: Having the following fstab makes my system 100% unbootable under
: 7.0 with sources from Wed Feb 28 23:47:39 CET 2007 (it works under
: 6.2).
: 
: # Device                Mountpoint      FStype  Options         Dump    Pass#
: /dev/mirror/gm0s1b      none            swap    sw              0       0
: /dev/mirror/gm0s1a      /               ufs     rw,nodev,noatime                1       1
: /dev/mirror/gm0s1f      /data           ufs     rw,nosuid,nodev,noatime         2       2
: /dev/mirror/gm0s1d      /usr            ufs     rw,nodev,noatime                2       2
: /dev/mirror/gm0s1e      /var            ufs     rw,nosuid,nodev,noexec,noatime          2       2
: /dev/cd0                /cdrom          cd9660  ro,noauto       0       0
: 
: it fails with some errors with getty (maybe /dev is not mounted or
: something)
: 
: Also, having this fstab and trying to mount -u -a on a running system,
: causes to produce the following messages in the messages log:
: 
: Mar  1 01:23:13 db2 kernel: mount option <dev> is unknown

Have you tried removing the 'nodev' option from /usr and /data?

Warner
_______________________________________________
freebsd-current <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
(Continue reading)

Bruce M. Simpson | 1 Mar 2007 03:12
Picon
Favicon

Re: [head tinderbox] failure on sparc64/sun4v

Dealt with
_______________________________________________
freebsd-current <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe <at> freebsd.org"

FreeBSD Tinderbox | 1 Mar 2007 03:46
Picon
Favicon

[head tinderbox] failure on amd64/amd64

TB --- 2007-03-01 01:35:00 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2007-03-01 01:35:00 - starting HEAD tinderbox run for amd64/amd64
TB --- 2007-03-01 01:35:00 - cleaning the object tree
TB --- 2007-03-01 01:36:10 - checking out the source tree
TB --- 2007-03-01 01:36:10 - cd /tinderbox/HEAD/amd64/amd64
TB --- 2007-03-01 01:36:10 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src
TB --- 2007-03-01 01:49:54 - building world (CFLAGS=-O2 -pipe)
TB --- 2007-03-01 01:49:54 - cd /src
TB --- 2007-03-01 01:49:54 - /usr/bin/make -B buildworld
>>> World build started on Thu Mar  1 01:49:55 UTC 2007
>>> 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  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/ipsec.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/bpf.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
(Continue reading)

FreeBSD Tinderbox | 1 Mar 2007 03:46
Picon
Favicon

[head tinderbox] failure on arm/arm

TB --- 2007-03-01 01:35:00 - tinderbox 2.3 running on freebsd-current.sentex.ca
TB --- 2007-03-01 01:35:00 - starting HEAD tinderbox run for arm/arm
TB --- 2007-03-01 01:35:00 - cleaning the object tree
TB --- 2007-03-01 01:35:52 - checking out the source tree
TB --- 2007-03-01 01:35:52 - cd /tinderbox/HEAD/arm/arm
TB --- 2007-03-01 01:35:52 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src
TB --- 2007-03-01 01:49:54 - building world (CFLAGS=-O2 -pipe)
TB --- 2007-03-01 01:49:54 - cd /src
TB --- 2007-03-01 01:49:54 - /usr/bin/make -B buildworld
>>> World build started on Thu Mar  1 01:49:55 UTC 2007
>>> 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  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/ipsec.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -c /src/usr.bin/netstat/bpf.c
cc -O2 -pipe  -DIPSEC -DFAST_IPSEC -DINET6 -DIPX -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
(Continue reading)

Alex Kozlov | 1 Mar 2007 02:48
Picon

Re: mount/fstab parsing broken

On Thu, Mar 01, 2007 at 02:05:40AM +0100, Daniel Gerzo wrote:
> Hello current,
> 
> Having the following fstab makes my system 100% unbootable under
> 7.0 with sources from Wed Feb 28 23:47:39 CET 2007 (it works under
> 6.2).
> 
> # Device                Mountpoint      FStype  Options         Dump    Pass#
> /dev/mirror/gm0s1b      none            swap    sw              0       0
> /dev/mirror/gm0s1a      /               ufs     rw,nodev,noatime                1       1
> /dev/mirror/gm0s1f      /data           ufs     rw,nosuid,nodev,noatime         2       2
> /dev/mirror/gm0s1d      /usr            ufs     rw,nodev,noatime                2       2
> /dev/mirror/gm0s1e      /var            ufs     rw,nosuid,nodev,noexec,noatime          2       2
> /dev/cd0                /cdrom          cd9660  ro,noauto       0       0
> 
> it fails with some errors with getty (maybe /dev is not mounted or
> something)
> 
> Also, having this fstab and trying to mount -u -a on a running system,
> causes to produce the following messages in the messages log:
> 
> Mar  1 01:23:13 db2 kernel: mount option <dev> is unknown
Remove nodev and try again.

--
Adios
_______________________________________________
freebsd-current <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe <at> freebsd.org"
(Continue reading)

Scott Robbins | 1 Mar 2007 04:19
Picon

Re: HEADS UP: UNIX domain socket locking changes merged to CVS HEAD

On Wed, Feb 28, 2007 at 07:00:15PM -0500, Randall Stewart wrote:
> Robert Watson wrote:
> >On Wed, 28 Feb 2007, Stephane E. Potvin wrote:
> >>
> >>Since this commit, I've been observing frequent deadlocks on my laptop, 
> >>mostly when starting-up gnome. It usually takes less than 5 to 10 minutes for 
> >>the deadlock to happens.

I too have been having unexpected lockups--like Randall, I figured it
was something to do with my machine.  Interestingly enough, though X
will lock up completely (and I can't ssh to the machine, though I can
ping it) the jail, which runs a small web site, running on an alias ip
address continues to work--I can still access the web site from outside.

However, I haven't been able to apply Robert's patch yet.  As some of
you have noticed, there's a bunch of tinderbox failures dying in
netstat.  It's happening to me too, so I haven't been able to rebuild.

(this is more of a me too post at this point--I haven't had a chance to
do any investigation).

--

-- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Buffy: What do you want?
(Continue reading)


Gmane