Skip site navigation (1)Skip section navigation (2)
Date:      15 Oct 2002 10:01:50 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-stable@freebsd.org
Subject:   4.7-PRE smbfs crash (umount -f)
Message-ID:  <1034641918.21061.19.camel@chowder.gsoft.com.au>

next in thread | raw e-mail | index | archive | help
I mounted a Windows share just fine (a Win95 box), but I can't unmount it..
[chowder 9:48] /usr/src/sys/compile/CHOWDER >sudo umount /mnt
umount: unmount of /mnt failed: Device busy
[chowder 9:48] /usr/src/sys/compile/CHOWDER >fstat /mnt
USER     CMD          PID   FD MOUNT      INUM MODE         SZ|DV R/W NAME

If I 'umount -f' the machine panics :(

I have the core and kernel handy if anyone wants a look.

(I would load the kld into gdb to get a better trace but I forget how)

Hmm.. Interestingly I waited 5 minutes or so and tried umounting again,
the first attempt failed, but the second worked.

Mucho weirdness.

Also, mount_smbfs doesn't seem to properly detect if libiconv is in the
kernel. I have it as a kernel option, but it tries to load the kld. This
fails, so mount_smbfs fails first time around, but second time I attempt
the mount it doesn't bother trying to load the module and it works.

[chowder 9:52] /usr/src/sys/compile/CHOWDER >kldstat -v | grep iconv
                41 iconv
                102 iconv_xlat
18    2 0xc1a9e000 3000     libiconv.ko

#0  dumpsys () at ../../kern/kern_shutdown.c:487
#1  0xc0152767 in boot (howto=256) at ../../kern/kern_shutdown.c:316
#2  0xc0152ba5 in panic (fmt=0xc025b52c "%s") at ../../kern/kern_shutdown.c:595
#3  0xc02158e3 in trap_fatal (frame=0xd0c2cd24, eva=3735929058)
    at ../../i386/i386/trap.c:974
#4  0xc0215591 in trap_pfault (frame=0xd0c2cd24, usermode=0, eva=3735929058)
    at ../../i386/i386/trap.c:867
#5  0xc0215137 in trap (frame={tf_fs = -1072431088, tf_es = 16, 
      tf_ds = -1045561328, tf_edi = -1057652736, tf_esi = -797021568, 
      tf_ebp = -792539784, tf_isp = -792539824, tf_ebx = -1045508992, 
      tf_edx = 0, tf_ecx = 7, tf_eax = -559038242, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1044103371, tf_cs = 8, tf_eflags = 66182, tf_esp = -797021568, 
      tf_ss = 1}) at ../../i386/i386/trap.c:466
#6  0xc1c43f35 in ?? ()
#7  0xc0181594 in vclean (vp=0xd07e6a80, flags=8, p=0xd0c7ac60)
    at vnode_if.h:836
#8  0xc01816fb in vgonel (vp=0xd07e6a80, p=0xd0c7ac60)
    at ../../kern/vfs_subr.c:2037
#9  0xc01813a6 in vflush (mp=0xc13cc800, rootrefs=1, flags=2)
    at ../../kern/vfs_subr.c:1774
#10 0xc1c43658 in ?? ()
#11 0xc0183034 in dounmount (mp=0xc13cc800, flags=524288, p=0xd0c7ac60)
    at ../../kern/vfs_syscalls.c:515
#12 0xc0182f39 in unmount (p=0xd0c7ac60, uap=0xd0c2cf80)
    at ../../kern/vfs_syscalls.c:469
#13 0xc0215b99 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, 
      tf_edi = 134665125, tf_esi = 134746941, tf_ebp = -1077937600, 
      tf_isp = -792539180, tf_ebx = 0, tf_edx = 0, tf_ecx = 3, tf_eax = 22, 
      tf_trapno = 12, tf_err = 2, tf_eip = 134522784, tf_cs = 31, 
      tf_eflags = 659, tf_esp = -1077938748, tf_ss = 47})
    at ../../i386/i386/trap.c:1175
#14 0xc0208de5 in Xint0x80_syscall ()
#15 0x8048466 in ?? ()
#16 0x8048135 in ?? ()

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1034641918.21061.19.camel>