From nobody@FreeBSD.org  Sat Jan 26 21:47:45 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BA35016A418
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 Jan 2008 21:47:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id AE84D13C465
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 Jan 2008 21:47:45 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0QLk5E2026613
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 Jan 2008 21:46:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m0QLk50R026612;
	Sat, 26 Jan 2008 21:46:05 GMT
	(envelope-from nobody)
Message-Id: <200801262146.m0QLk50R026612@www.freebsd.org>
Date: Sat, 26 Jan 2008 21:46:05 GMT
From: Alexander Shiryaev <coumarin@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: net-p2p/qbittorrent crashes system when it works though OpenVPN link
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120021
>Category:       kern
>Synopsis:       [geom] [panic] net-p2p/qbittorrent crashes system when it works though OpenVPN link
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 26 21:50:02 UTC 2008
>Closed-Date:    Fri Jan 22 02:03:55 UTC 2010
>Last-Modified:  Fri Jan 22 02:03:55 UTC 2010
>Originator:     Alexander Shiryaev
>Release:        6.3-STABLE
>Organization:
MSU
>Environment:
FreeBSD aix-lame.hackers 6.3-STABLE FreeBSD 6.3-STABLE #0: Sat Jan 26 15:42:57 MSK 2008 root@aix-lame.hackers:/usr/obj/usr/src/sys/GENERIC i386
>Description:
qbittorrent crashes system when it works though Internet connection configured with OpenVPN.

aix-lame# kgdb kernel.debug /usr/obj/fbsd/crash/vmcore.5
kgdb: kvm_nlist(_stopped_cpus): 
kgdb: kvm_nlist(_stoppcbs): 
[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:
panic: add_to_worklist: already on list
Uptime: 7m2s
Dumping 255 MB (2 chunks)
  chunk 0: 1MB (159 pages) ... ok
  chunk 1: 255MB (65280 pages) 240 224 208 192 176 160 144 128 112 96 80 64 48 32 16

#0  doadump () at pcpu.h:165
165		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) list
160	static __inline struct thread *
161	__curthread(void)
162	{
163		struct thread *td;
164	
165		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
166		return (td);
167	}
168	#define	curthread (__curthread())
169	
(kgdb) backtrace
#0  doadump () at pcpu.h:165
#1  0xc0704b02 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc0704e0c in panic (fmt=0xc0a4a153 "add_to_worklist: already on list")
    at /usr/src/sys/kern/kern_shutdown.c:565
#3  0xc0887bc4 in add_to_worklist (wk=0xc28f47a0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:811
#4  0xc088fcfe in handle_written_filepage (pagedep=0xc2801900, bp=0xc7538d68)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:4757
#5  0xc088f0b9 in softdep_disk_write_complete (bp=0xc7538d68)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:4247
#6  0xc075b8df in bufdone (bp=0xc7538d68) at buf.h:440
#7  0xc06c0a8e in g_vfs_done (bip=0x0) at /usr/src/sys/geom/geom_vfs.c:87
#8  0xc075b55b in biodone (bp=0xc2ba15ac) at /usr/src/sys/kern/vfs_bio.c:2930
#9  0xc06be3ef in g_io_schedule_up (tp=0xc254ad80)
    at /usr/src/sys/geom/geom_io.c:490
#10 0xc06be6a6 in g_up_procbody () at /usr/src/sys/geom/geom_kern.c:95
#11 0xc06e95e5 in fork_exit (callout=0xc06be62c <g_up_procbody>, arg=0x0, 
    frame=0x0) at /usr/src/sys/kern/kern_fork.c:788
#12 0xc09a413c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:208
(kgdb) quit
>How-To-Repeat:
* Configure Internet connection though OpenVPN
* Run qbittorrent, start some torrent to download
* Wait some time

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->alepulver 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Jan 26 21:50:11 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120021 
State-Changed-From-To: open->feedback 
State-Changed-By: alepulver 
State-Changed-When: Sun Jan 27 18:04:39 UTC 2008 
State-Changed-Why:  
Ask openvpn maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120021 

From: Alejandro Pulver <alepulver@FreeBSD.org>
To: Alexander Shiryaev <coumarin@gmail.com>
Cc: bug-followup@FreeBSD.org, matthias.andree@gmx.de
Subject: Re: ports/120021: net-p2p/qbittorrent crashes system when it works
 though OpenVPN link
Date: Sun, 27 Jan 2008 16:04:11 -0300

 --Sig_/DH.oPa5cBWWzMP_aeT7lxuA
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 Hello.
 
 I think this is a problem with OpenVPN instead of qbittorrent, as the
 latter shouldn't crash the system (directly).
 
 I've CC'ed him, maybe he has more ideas.
 
 Matthias, please take a look at:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=3D120021
 
 Best Regards,
 Ale
 
 --Sig_/DH.oPa5cBWWzMP_aeT7lxuA
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.7 (FreeBSD)
 
 iD8DBQFHnNWriV05EpRcP2ERAm66AJ46JQvKd1qEBlZx3nG9DD+LbYfZ8QCffFPL
 yqKPAEbOyc3Dv2E41uFhJyM=
 =Tthi
 -----END PGP SIGNATURE-----
 
 --Sig_/DH.oPa5cBWWzMP_aeT7lxuA--

From: Matthias Andree <matthias.andree@gmx.de>
To: bug-followup@FreeBSD.org, coumarin@gmail.com
Cc:  
Subject: Re: ports/120021: net-p2p/qbittorrent crashes system when it works
 though OpenVPN link
Date: Mon, 28 Jan 2008 17:50:31 +0100

 Greetings,
 
 the backtrace pretty much looks like "entirely inside kernel" to me, and 
 while I'm not claiming the observation untrue, I wonder if OpenVPN or 
 qbittorrent are the right places to go for the bug.
 
 Trying to extract the triggering circumstances might help finding the bug, 
 but I'm not sure how I could be of any help here - looking for input.
 
 Best regards
 
 -- 
 Matthias Andree
 OpenVPN FreeBSD port maintainer
State-Changed-From-To: feedback->open 
State-Changed-By: alepulver 
State-Changed-When: Mon Feb 4 00:25:58 UTC 2008 
State-Changed-Why:  
Feedback received from OpenVPN maintainer, sugesting a kernel related problem. 


Responsible-Changed-From-To: alepulver->freebsd-bugs 
Responsible-Changed-By: alepulver 
Responsible-Changed-When: Mon Feb 4 00:25:58 UTC 2008 
Responsible-Changed-Why:  
Drop PR to the corresponding pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120021 
Responsible-Changed-From-To: freebsd-bugs->freebsd-geom 
Responsible-Changed-By: remko 
Responsible-Changed-When: Tue Feb 5 06:39:34 UTC 2008 
Responsible-Changed-Why:  
From the kernel debug message this seems that it might be GEOM related 
given the fork_exit and fork_trampoline calls just after geom did 
something (if I understood correctly): geom team can you please have a 
look? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120021 
State-Changed-From-To: open->feedback 
State-Changed-By: dougb 
State-Changed-When: Thu Dec 31 23:33:36 UTC 2009 
State-Changed-Why:  

Does this still happen with an up to date version of qbittorrent? 
The latest in ports is 2.0.4. 


Responsible-Changed-From-To: freebsd-geom->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Thu Dec 31 23:33:36 UTC 2009 
Responsible-Changed-Why:  

I'll handle the feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120021 
State-Changed-From-To: feedback->closed 
State-Changed-By: dougb 
State-Changed-When: Fri Jan 22 02:03:00 UTC 2010 
State-Changed-Why:  

Feedback timeout, likely to have been OBE in any case. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120021 
>Unformatted:
