From owner-freebsd-questions@FreeBSD.ORG Sat Jul 25 22:42:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7F0106566B for ; Sat, 25 Jul 2009 22:42:10 +0000 (UTC) (envelope-from eforezz@gmail.com) Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com [209.85.219.217]) by mx1.freebsd.org (Postfix) with ESMTP id 887968FC17 for ; Sat, 25 Jul 2009 22:42:09 +0000 (UTC) (envelope-from eforezz@gmail.com) Received: by ewy17 with SMTP id 17so650997ewy.43 for ; Sat, 25 Jul 2009 15:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=OgIPfcP8xo82Muw0/JNBAUFIyc/LacGX7N6Mi5D55Bk=; b=pzmg5D3BSqr1iM8O6A66PZUvM/5vVbLwOUP8VU02FvDaQWzfn3CnRWBGf11wtkW0E1 LucwnbJPcLK/cd+ofwnd0bURBDdBRnlxGGJK1oyHc5O/FAFP/5rbdwYv0WJncGdtunRG //aVrAk/VHtYyYo/R2HJ/zLTffJguKvP1i/IU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=h74fV8KnMgrk1W/ToWUHxu9XigsJPpjzDdFqs3pG8BuGKQU3fh9k4+Y8xcdURljma2 r0dST/TgN3f3NMOs8pPblxdBYa5LZJN2zll3vrfD4YfUFOECSgsAZW7IgQ2U8KyexGOg BGeaRv7rcW/7KhxE+uD1nTVQOJXIQVVr2/reY= MIME-Version: 1.0 Received: by 10.216.17.213 with SMTP id j63mr1284212wej.140.1248559906053; Sat, 25 Jul 2009 15:11:46 -0700 (PDT) Date: Sun, 26 Jul 2009 01:11:46 +0300 Message-ID: From: EforeZZ To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: mount_smbfs + suspend = kernel panic X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2009 22:42:10 -0000 Hi guys, I use mount_smbfs on my notebook and I have a little nasty problem.. Sometimes I have kernel panic when resuming after the suspend. The issue seems to happen when I go to suspend with my USB network (WiFi) adapter plugged in (I do use "/etc/rc.d/netif stop rum0" before going to suspend), then I resume the notebook without the adapter, then I suspend it again, and finally I resume it with the adapter plugged in. The system panics. Maybe there are any workarounds to avoid the problem.. Should I do umount all smbfs' before I go to suspend?.. Is there any other more elegant way? Here is the kernel buffer and the backtrace: kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x18 fault code = supervisor read, page not present instruction pointer = 0x20:0xc081fa05 stack pointer = 0x28:0xe8cf2adc frame pointer = 0x28:0xe8cf2af8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 37632 (smbiod4) trap number = 12 panic: page fault cpuid = 0 Uptime: 7d12h57m21s Physical memory: 2022 MB Dumping 275 MB: (CTRL-C to abort) (CTRL-C to abort) (CTRL-C to abort) 260 244 228 (CTRL-C to abort) (CTRL-C to abort) (CTRL-C to abort) 212 196 180 164 148 132 116 100 84 68 52 36 20 4 #0 doadump () at pcpu.h:196 #1 0xc07e8767 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc07e8a39 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc0aecd3c in trap_fatal (frame=0xe8cf2a9c, eva=24) at /usr/src/sys/i386/i386/trap.c:939 #4 0xc0aed6bf in trap (frame=0xe8cf2a9c) at /usr/src/sys/i386/i386/trap.c:320 #5 0xc0ad207b in calltrap () at /usr/src/sys/i386/i386/exception.s:159 #6 0xc081fa05 in turnstile_broadcast (ts=0x0, queue=0) at /usr/src/sys/kern/subr_turnstile.c:836 #7 0xc07d93f2 in _mtx_unlock_sleep (m=0xc8d82d94, opts=0, file=0xc107c6c3 "/usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c", line=97) at /usr/src/sys/kern/kern_mutex.c:619 #8 0xc07d9752 in _mtx_unlock_flags (m=0xc8d82d94, opts=0, file=0xc107c6c3 "/usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c", line=97) at /usr/src/sys/kern/kern_mutex.c:210 #9 0xc106fb73 in smb_iod_invrq (iod=Variable "iod" is not available. ) at /usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c:97 #10 0xc1070d57 in smb_iod_addrq (rqp=0xc8d82d00) at /usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c:424 #11 0xc106d28c in smb_rq_enqueue (rqp=0xc8d82d00) at /usr/src/sys/modules/smbfs/../../netsmb/smb_rq.c:193 #12 0xc106d6d8 in smb_rq_simple (rqp=0xc8d82d00) at /usr/src/sys/modules/smbfs/../../netsmb/smb_rq.c:174 #13 0xc106b9e4 in smb_smb_treeconnect (ssp=0xc778d500, scred=0xc7a6e144) at /usr/src/sys/modules/smbfs/../../netsmb/smb_smb.c:561 #14 0xc10708b8 in smb_iod_thread (arg=0xc7a6e100) at /usr/src/sys/modules/smbfs/../../netsmb/smb_iod.c:212 #15 0xc07c2159 in fork_exit (callout=0xc10705c0 , arg=0xc7a6e100, frame=0xe8cf2d38) at /usr/src/sys/kern/kern_fork.c:810 #16 0xc0ad20f0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:264 Best regards, EforeZZ