From areilly@bigpond.net.au  Tue Apr 16 21:12:32 2002
Return-Path: <areilly@bigpond.net.au>
Received: from mta05bw.bigpond.com (mta05bw.bigpond.com [139.134.6.95])
	by hub.freebsd.org (Postfix) with ESMTP id 23C7737B405
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Apr 2002 21:12:29 -0700 (PDT)
Received: from areilly.bpc-users.org ([144.135.24.72]) by
          mta05bw.bigpond.com (Netscape Messaging Server 4.15 mta05bw Feb
          26 2002 03:44:21) with SMTP id GUP2CQ00.1SV for
          <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Apr 2002 14:12:26 +1000 
Received: from CPE-144-132-240-160.nsw.bigpond.net.au ([144.132.240.160]) by bwmam02.mailsvc.email.bigpond.com(MailRouter V3.0l 11/45764); 17 Apr 2002 14:12:26
Received: (qmail 16344 invoked by uid 1000); 17 Apr 2002 04:12:26 -0000
Message-Id: <20020417041226.16343.qmail@areilly.bpc-users.org>
Date: 17 Apr 2002 04:12:26 -0000
From: "Andrew Reilly" <areilly@bigpond.net.au>
Reply-To: Andrew Reilly <areilly@bigpond.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: smbfs non-functional in -STABLE
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37171
>Category:       kern
>Synopsis:       smbfs non-functional in -STABLE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tjr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 16 21:20:01 PDT 2002
>Closed-Date:    Tue Jun 17 06:13:28 PDT 2003
>Last-Modified:  Tue Jun 17 06:13:28 PDT 2003
>Originator:     Andrew Reilly
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD gurney.reilly.home 4.5-STABLE FreeBSD 4.5-STABLE #8: Sat Apr 13 12:47:47 EST 2002 root@gurney.reilly.home:/usr/obj/usr/src/sys/GURNEY i386


	
>Description:
	I can't make mount_smbfs work any more (it used to), and
	one of the ways that I tried caused it to crash and dump
	core.

>How-To-Repeat:
	Run with -I option in attempt to avoid other failure
	modes (see below):
	mount_smbfs -I 192.168.10.12 -O andrew:us -W LAKE //andrew@newton-1/local /smb/Newton/Local
	Where the IP address is that of a Windows-NT server on
	our office network that I am connected to over a VPN
	managed by the mpd-3.7 port:

ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1498
	inet6 fe80::200:e8ff:fee1:8e74%ng0 prefixlen 64 scopeid 0x6 
	inet 192.168.10.75 --> 192.168.10.77 netmask 0xffffffff 
       
       This causes mount_smbfs to crash and dump core whether
       run as root or myself.  GDB on dump says:

GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...
(no debugging symbols found)...
Core was generated by `mount_smbfs'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsmb.so.1...(no debugging symbols found)...
done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
#0  0x280e1236 in strchr () from /usr/lib/libc.so.4
(gdb) where
#0  0x280e1236 in strchr () from /usr/lib/libc.so.4
#1  0x280709f8 in cf_optind () from /usr/lib/libsmb.so.1
#2  0x2806a163 in smb_ctx_opt () from /usr/lib/libsmb.so.1
#3  0x8048f1a in free ()
#4  0x8048c9d in free ()
(gdb) 

       I have an entry in /etc/fstab that looks like this:

//andrew@newton-1/local /smb/Newton/Local smbfs rw,noauto,noatime       0      0 
       The mount point is owned by me.
       I have vfs.usermount=1 in /etc/sysctl.conf

       If I try just "mount /smb/Newton/Local" I get:
smbfs: can not setup kernel iconv table (default:tolower): syserr = Operation not permitted

	If I do that as root, I get:
smbfs: can't get server address: syserr = Permission denied

>Fix:

	Sorry, can't help here.  Entirely happy to poke things
	to see what works.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->tjr 
Responsible-Changed-By: tjr 
Responsible-Changed-When: Tue Mar 25 04:00:35 PST 2003 
Responsible-Changed-Why:  
This problem is specific to the -O option. I will fix it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37171 
State-Changed-From-To: open->patched 
State-Changed-By: tjr 
State-Changed-When: Sat Apr 12 05:12:45 PDT 2003 
State-Changed-Why:  
Fixed in -current. Will be MFC'd shortly. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37171 
State-Changed-From-To: patched->closed 
State-Changed-By: tjr 
State-Changed-When: Tue Jun 17 06:13:03 PDT 2003 
State-Changed-Why:  
Fixed in -stable; sorry, I had forgotten about this PR. 

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