Bug 37171 - smbfs non-functional in -STABLE
Summary: smbfs non-functional in -STABLE
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.5-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tim Robbins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-17 05:20 UTC by areilly
Modified: 2003-06-17 14:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description areilly 2002-04-17 05:20:01 UTC
	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.

Fix: 

Sorry, can't help here.  Entirely happy to poke things
	to see what works.
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
Comment 1 Tim Robbins freebsd_committer freebsd_triage 2003-03-25 12:00:35 UTC
Responsible Changed
From-To: freebsd-bugs->tjr

This problem is specific to the -O option. I will fix it.
Comment 2 Tim Robbins freebsd_committer freebsd_triage 2003-04-12 13:12:45 UTC
State Changed
From-To: open->patched

Fixed in -current. Will be MFC'd shortly.
Comment 3 Tim Robbins freebsd_committer freebsd_triage 2003-06-17 14:13:03 UTC
State Changed
From-To: patched->closed

Fixed in -stable; sorry, I had forgotten about this PR.