kern/159621: [panic] panic: soabort: so_count

2011-08-09 Thread Pavel Polyakov

>Number: 159621
>Category:   kern
>Synopsis:   [panic] panic: soabort: so_count
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 09 08:10:11 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Pavel Polyakov
>Release:FreeBSD 8.2-STABLE 224067
>Organization:
>Environment:
FreeBSD 8.2-STABLE #8 r224067: Sat Jul 16 01:23:48 EEST 2011

>Description:
Panic during normal operations.
kern/145825 may be related.

==

db:0:kdb.enter.panic>  run lockinfo
db:1:lockinfo> show locks
exclusive rw tcpinp (tcpinp) r = 0 (0x8d01df64) locked @ 
/usr/src/sys/netinet/tcp_input.c:962
exclusive rw tcp (tcp) r = 0 (0x80c3eb0c) locked @ 
/usr/src/sys/netinet/tcp_usrreq.c:1507


db:1:locks>  show alllocks
..
Process 93609 (sshd) thread 0x88c4f8a0 (100118)
exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0x89f686fc) locked @ 
/usr/src/sys/kern/uipc_sockbuf.c:148
Process 2819 (vtund) thread 0x88c878a0 (100125)
exclusive rw tcpinp (tcpinp) r = 0 (0x8d01df64) locked @ 
/usr/src/sys/netinet/tcp_input.c:962
exclusive rw tcp (tcp) r = 0 (0x80c3eb0c) locked @ 
/usr/src/sys/netinet/tcp_usrreq.c:1507
Process 2692 (mysqld) thread 0x89475000 (100259)
exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0x89f96228) locked @ 
/usr/src/sys/kern/uipc_sockbuf.c:148
Process 2692 (mysqld) thread 0x88c515c0 (100109)
exclusive sx so_rcv_sx (so_rcv_sx) r = 0 (0x8d0a7898) locked @ 
/usr/src/sys/kern/uipc_sockbuf.c:148

db:0:kdb.enter.panic>  show pcpu
cpuid= 0
dynamic pcpu = 0x567300
curthread= 0x88c878a0: pid 2819 "vtund"
curpcb   = 0xd6780d80
fpcurthread  = none
idlethread   = 0x868718a0: tid 13 "idle"
APIC ID  = 0
currentldt   = 0x50
spin locks held:

 2819 1  2819 0  Rs  CPU 0   vtund


db:0:kdb.enter.panic>  bt
Tracing pid 2819 tid 100125 td 0x88c878a0
kdb_enter(80a0e225,80a0e225,80a186dd,d6780840,d6780840,...) at kdb_enter+0x3a
panic(80a186dd,346,0,d67808b8,0,...) at panic+0xd1
soabort(88961670,80a2dc03,346,0,0,...) at soabort+0x1b
syncache_expand(d6780a60,d6780a40,8c78cb5c,d6780a5c,8c78cb00,...) at 
syncache_expand+0xdb3
tcp_input(8c78cb00,14,86c17800,1,0,...) at tcp_input+0xc49
ip_input(8c78cb00,4,80a0c98c,109,24,...) at ip_input+0x65b
netisr_dispatch_src(1,0,8c78cb00,d6780b34,80766ae1,...) at 
netisr_dispatch_src+0xd1
netisr_dispatch(1,8c78cb00,0,86c17800,8c78cb3a,...) at netisr_dispatch+0x20
ether_demux(86c17800,8c78cb00,3,0,3,...) at ether_demux+0x1a1
ether_input(86c16400,8c78cb00,6,2,2,...) at ether_input+0x393
tapwrite(88b85d00,d6780c28,0,0,0,...) at tapwrite+0xef
devfs_write_f(89f7c8c0,d6780c28,8686cb80,0,88c878a0,...) at devfs_write_f+0xac
dofilewrite(d6780c28,,,0,89f7c8c0,...) at dofilewrite+0x95
kern_writev(88c878a0,5,d6780c28,d6780c48,1,...) at kern_writev+0x58
write(88c878a0,d6780cec,d6780d28,80a12db8,0,...) at write+0x4f
syscallenter(88c878a0,d6780ce4,d6780ce4,0,806d4a26,...) at syscallenter+0x246
syscall(d6780d28) at syscall+0x34
Xint0x80_syscall() at Xint0x80_syscall+0x21
--- syscall (4, FreeBSD ELF32, write), eip = 0x28324d2b, esp = 0x7fbfeb2c, ebp 
= 0x7fbfec08 ---


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
 >> kdb_enter (80a0e225,80a0e225,80a186dd,d6780840,d6780840,...) @ 
 >> kdb_enter=806e1930 + 0x3a == 806e196a
 /usr/src/sys/kern/subr_kdb.c:351
 
 >> panic (80a186dd,346,0,d67808b8,0,...) @ panic=806b23d0 + 0xd1 == 806b24a1
 /usr/src/sys/kern/kern_shutdown.c:597
 
 >> soabort (88961670,80a2dc03,346,0,0,...) @ soabort=8071ba90 + 0x1b == 
 >> 8071baab
 /usr/src/sys/kern/uipc_socket.c:758
 
 >> syncache_expand (d6780a60,d6780a40,8c78cb5c,d6780a5c,8c78cb00,...) @ 
 >> syncache_expand=80848750 + 0xdb3 == 80849503
 /usr/src/sys/netinet/tcp_syncache.c:841
 
 >> tcp_input (8c78cb00,14,86c17800,1,0,...) @ tcp_input=8083f5a0 + 0xc49 == 
 >> 808401e9
 /usr/src/sys/netinet/tcp_input.c:1036
 
 >> ip_input (8c78cb00,4,80a0c98c,109,24,...) @ ip_input=807daa70 + 0x65b == 
 >> 807db0cb
 /usr/src/sys/netinet/ip_input.c:787
 
 >> netisr_dispatch_src (1,0,8c78cb00,d6780b34,80766ae1,...) @ 
 >> netisr_dispatch_src=80771420 + 0xd1 == 807714f1
 /usr/src/sys/net/netisr.c:859
 
 >> netisr_dispatch (1,8c78cb00,0,86c17800,8c78cb3a,...) @ 
 >> netisr_dispatch=80771750 + 0x20 == 80771770
 /usr/src/sys/net/netisr.c:947
 
 >> ether_demux (86c17800,8c78cb00,3,0,3,...) @ ether_demux=80766940 + 0x1a1 == 
 >> 80766ae1
 /usr/src/sys/net/if_ethersubr.c:894
 
 >> ether_input (86c16400,8c78cb00,6,2,2,...) @ ether_input=80766d40 + 0x393 == 
 >> 807670d3
 /usr/src/sys/net/if_ethersubr.c:755
 
 
 
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/159625: [PATCH] replace hardcoded /usr/local with a variable in devd.conf to make it easier to override

2011-08-09 Thread Robert Millan

>Number: 159625
>Category:   misc
>Synopsis:   [PATCH] replace hardcoded /usr/local with a variable in 
>devd.conf to make it easier to override
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 09 10:00:22 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Robert Millan
>Release:FreeBSD 8.1
>Organization:
>Environment:
GNU/kFreeBSD thorin 8.1-1-amd64 #0 Mon Feb 21 22:03:13 UTC 2011 x86_64 amd64 
AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ GNU/kFreeBSD

>Description:
Please could you replace the hardcoded /usr/local with a variable in devd.conf?

This will make it easier to override this value (specially useful for 
downstream distributors of FreeBSD code).

Patch attached.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: devd.conf
===
--- devd.conf   (revision 224728)
+++ devd.conf   (working copy)
@@ -8,12 +8,14 @@
 # NB: device-name is shorthand for 'match device-name'
 
 options {
+   set prefix "/usr/local";
+
# Each directory directive adds a directory the list of directories
# that we scan for files.  Files are read-in in the order that they
# are returned from readdir(3).  The rule-sets are combined to
# create a DFA that's used to match events to actions.
directory "/etc/devd";
-   directory "/usr/local/etc/devd";
+   directory "$prefix/etc/devd";
pid-file "/var/run/devd.pid";
 
# Setup some shorthand for regex that we use later in the file.
@@ -101,7 +103,7 @@
 #attach 100 {
 #  match "vendor" "0x0cf3";
 #  match "product" "0x3000";
-#  action "sleep 2 && /usr/sbin/ath3kfw -d $device-name -f 
/usr/local/etc/ath3k-1.fw";
+#  action "sleep 2 && /usr/sbin/ath3kfw -d $device-name -f 
$prefix/etc/ath3k-1.fw";
 #};
 
 # When a USB keyboard arrives, attach it as the console keyboard.
@@ -131,7 +133,7 @@
match "vendor"  "0x0854";
match "product" "0x0100";
match "release" "0x";
-   action "/usr/local/bin/ezdownload -f 
/usr/local/share/usb/firmware/0854.0100.0_01.hex $device-name";
+   action "$prefix/bin/ezdownload -f 
$prefix/share/usb/firmware/0854.0100.0_01.hex $device-name";
 };
 
 # Firmware download for Entrega Serial DB25 adapter.
@@ -143,8 +145,8 @@
 };
 
 # This entry starts the ColdSync tool in daemon mode. Make sure you have an up
-# to date /usr/local/etc/palms. We override the 'listen' settings for port and
-# type in /usr/local/etc/coldsync.conf.
+# to date $prefix/etc/palms. We override the 'listen' settings for port and
+# type in $prefix/etc/coldsync.conf.
 notify 100 {
match "system"  "USB";
match "subsystem"   "DEVICE";
@@ -152,7 +154,7 @@
match "vendor"  "0x082d";
match "product" "0x0100";
match "release" "0x0100";
-   action "/usr/local/bin/coldsync -md -p /dev/$cdev -t usb";
+   action "$prefix/bin/coldsync -md -p /dev/$cdev -t usb";
 };
 
 #
@@ -267,7 +269,7 @@
 
 # The following might be an example of something that a vendor might
 # install if you were to add their device.  This might reside in
-# /usr/local/etc/devd/deqna.conf.  A deqna is, in this hypothetical
+# $prefix/etc/devd/deqna.conf.  A deqna is, in this hypothetical
 # example, a pccard ethernet-like device.  Students of history may
 # know other devices by this name, and will get the in-jokes in this
 # entry.
@@ -320,7 +322,7 @@
 notify 0 {
match "system"  "RCTL";
match "rule""user:70:swap:.*";
-   action  "/usr/local/etc/rc.d/postgresql restart"
+   action  "$prefix/etc/rc.d/postgresql restart"
 };
 
 */


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: misc/159601: [patch] in_scrubprefix() - loopback route refcount malfunction

2011-08-09 Thread Svatopluk Kraus
The following reply was made to PR misc/159601; it has been noted by GNATS.

From: Svatopluk Kraus 
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: misc/159601: [patch] in_scrubprefix() - loopback route refcount 
malfunction
Date: Tue, 9 Aug 2011 16:07:53 +0200

 I'm sorry, the category should be [kern] and correct patch is following:
 
 Index: sys/netinet/in.c
 ===
 --- sys/netinet/in.c   (revision 224705)
 +++ sys/netinet/in.c   (working copy)
 @@ -1126,8 +1126,10 @@
RT_LOCK(ia_ro.ro_rt);
if (ia_ro.ro_rt->rt_refcnt <= 1)
freeit = 1;
 -  else
 +  else if (flags & LLE_STATIC) {
RT_REMREF(ia_ro.ro_rt);
 +  target->ia_flags &= ~IFA_RTSELF;
 +  }
RTFREE_LOCKED(ia_ro.ro_rt);
}
if (freeit && (flags & LLE_STATIC)) {
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: conf/159625: [PATCH] replace hardcoded /usr/local with a variable in devd.conf to make it easier to override

2011-08-09 Thread Marcin Wisnicki
The following reply was made to PR conf/159625; it has been noted by GNATS.

From: Marcin Wisnicki 
To: bug-follo...@freebsd.org, r...@debian.org
Cc:  
Subject: Re: conf/159625: [PATCH] replace hardcoded /usr/local with a variable
 in devd.conf to make it easier to override
Date: Tue, 9 Aug 2011 23:02:06 +0200

 To be consistent with ports this should be called $localbase.
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/159601: [netinet] [patch] in_scrubprefix() - loopback route refcount malfunction

2011-08-09 Thread linimon
Old Synopsis: [patch] in_scrubprefix() - loopback route refcount malfunction
New Synopsis: [netinet] [patch] in_scrubprefix() - loopback route refcount 
malfunction

Responsible-Changed-From-To: freebsd-bugs->freebsd-net
Responsible-Changed-By: linimon
Responsible-Changed-When: Wed Aug 10 00:27:54 UTC 2011
Responsible-Changed-Why: 
Over to maintainer(s).

http://www.freebsd.org/cgi/query-pr.cgi?pr=159601
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/159600: [patch] in_addprefix() - lookup by source address instead of destination one

2011-08-09 Thread kevlo
Synopsis: [patch] in_addprefix() - lookup by source address instead of 
destination one

State-Changed-From-To: open->closed
State-Changed-By: kevlo
State-Changed-When: Wed Aug 10 06:17:24 UTC 2011
State-Changed-Why: 
Committed, thanks.

http://www.freebsd.org/cgi/query-pr.cgi?pr=159600
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: kern/159600: commit references a PR

2011-08-09 Thread dfilter service
The following reply was made to PR kern/159600; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: kern/159600: commit references a PR
Date: Wed, 10 Aug 2011 06:17:15 + (UTC)

 Author: kevlo
 Date: Wed Aug 10 06:17:06 2011
 New Revision: 224747
 URL: http://svn.freebsd.org/changeset/base/224747
 
 Log:
   If RTF_HOST flag is specified, then we are interested in destination
   address.
   
   PR:  kern/159600
   Submitted by:Svatopluk Kraus 
   Approved by: re (hrs)
 
 Modified:
   head/sys/netinet/in.c
 
 Modified: head/sys/netinet/in.c
 ==
 --- head/sys/netinet/in.c  Tue Aug  9 21:01:36 2011(r224746)
 +++ head/sys/netinet/in.c  Wed Aug 10 06:17:06 2011(r224747)
 @@ -1037,7 +1037,7 @@ in_addprefix(struct in_ifaddr *target, i
IN_IFADDR_RLOCK();
TAILQ_FOREACH(ia, &V_in_ifaddrhead, ia_link) {
if (rtinitflags(ia)) {
 -  p = ia->ia_addr.sin_addr;
 +  p = ia->ia_dstaddr.sin_addr;
  
if (prefix.s_addr != p.s_addr)
continue;
 ___
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"