[Pkg-samba-maint] Bug#522198: samba-common: 'net usershare list' segfault
Sam Morris
sam at robots.org.uk
Wed Apr 1 15:36:31 UTC 2009
Package: samba-common
Version: 2:3.3.2-1
Severity: normal
$ net usershare list
Segmentation fault
#0 create_cs (c=0x1028, ctx=0x112c040, perr=0x7fff37f90a10)
at utils/netlookup.c:97
loopback_ss = {ss_family = 2, __ss_align = 0,
__ss_padding = '\0' <repeats 111 times>}
__FUNCTION__ = "create_cs"
#1 0x000000000049ae7c in net_lookup_name_from_sid (c=0x112d820, ctx=0x49ae12,
psid=0x112d780, ppdomain=0x0, ppname=0x112d7c0) at utils/netlookup.c:171
nt_status = {v = 0}
csp = <value optimized out>
domains = (char **) 0xf
names = (char **) 0x7fff37f90ce0
types = (enum lsa_SidType *) 0x7f3a2d63b8d8
#2 0x00000000004996c5 in info_fn (fl=0x112d2c0, priv=<value optimized out>)
at utils/net_usershare.c:408
domain = 0x0
name = 0x0
ntstatus = <value optimized out>
sbuf = {st_dev = 65024, st_ino = 417799, st_nlink = 1,
st_mode = 33188, st_uid = 1000, st_gid = 1000, __pad0 = 0, st_rdev = 0,
st_size = 87, st_blksize = 4096, st_blocks = 8, st_atim = {
tv_sec = 1238599861, tv_nsec = 0}, st_mtim = {tv_sec = 1238599845,
tv_nsec = 0}, st_ctim = {tv_sec = 1238599845, tv_nsec = 0}, __unused = {0,
0, 0}}
lines = <value optimized out>
pi = (struct us_priv_info *) 0x7fff37f90ce0
ctx = (TALLOC_CTX *) 0x112c040
c = (struct net_context *) 0x1028
fd = <value optimized out>
numlines = 5
psd = (SEC_DESC *) 0x112d660
basepath = <value optimized out>
sharepath = 0x112c3b0 "/home/sam/public"
comment = 0x112c420 "guest_ok=y"
acl_str = 0x112c570 "usershare_acl="
num_aces = <value optimized out>
sep_str = "\\"
us_err = <value optimized out>
guest_ok = false
#3 0x0000000000498be4 in process_share_list (fn=0x4992ed <info_fn>,
priv=0x7fff37f90ce0) at utils/net_usershare.c:304
fl = (struct file_list *) 0x112d2c0
ret = -401281936
#4 0x000000000049915b in net_usershare_list (c=<value optimized out>,
argc=<value optimized out>, argv=0x10d5058) at utils/net_usershare.c:1002
wcard = "*\000\\-:\177\000\000\036\000\000\000:\177\000\000]��\003\000\000\000\0000\r�7\003\001\000\000�\016�7�\177\000\000(\020\000\000\000\000\000\000\000:\221-:\177\000\000�\r�7�\177\000\000\001\000\000\000\000\000\000\000PQ\r\001\000\000\000\000\002\000\000\000\000\000\000\000ظc-:\177\000\000\000\020\000\000\000\000\000\000\005\000\000\000\000\000\000\000\000�\\-:\177\000\000\000\020�/:\177\000\000�\016�7�\177\000\000����\000\000\000\000\001\000\000\000\000\000\000\000\230��\000\000\000\000\000PQ\r\001\000\000\000\000HP\r\001\000\000\000\000PQ\r\001\000\000\000\000\002", '\0' <repeats 15 times>, "\212\022�/:"...
ret = -401281936
pi = {ctx = 0x112c040, op = US_LIST_OP, c = 0x1028}
ctx = (TALLOC_CTX *) 0x112c040
#5 0x000000000049f699 in net_run_function (c=0x10d5150, argc=1,
argv=0x10d5050, whoami=0x7e2b28 "net usershare", table=0x7fff37f90ee8)
at utils/net_util.c:571
i = 3
#6 0x0000000000498d0e in net_usershare (c=0x10d5150, argc=1, argv=0x10d5050)
at utils/net_usershare.c:1072
dp = <value optimized out>
func = {{funcname = 0x7e6190 "add", fn = 0x499a7a <net_usershare_add>,
valid_transports = 1,
description = 0x7e2d4b "Add/modify user defined share",
usage = 0x7e2a10 "net usershare add\n Add/modify user defined share"}, {
funcname = 0x8151c6 "delete", fn = 0x499906 <net_usershare_delete>,
valid_transports = 1, description = 0x7e2d69 "Delete user defined share",
usage = 0x7e2a48 "net usershare delete\n Delete user defined share"}, {
funcname = 0x7e5011 "info", fn = 0x49918f <net_usershare_info>,
valid_transports = 1,
description = 0x7e2a80 "Display information about a user defined share",
usage = 0x7e2ab0 "net usershare info\n Display information about a user defined share"}, {funcname = 0x7e9bc1 "list",
fn = 0x499060 <net_usershare_list>, valid_transports = 1,
description = 0x7e2d83 "List user defined shares",
usage = 0x7e2af8 "net usershare list\n List user defined shares"}, {
funcname = 0x0, fn = 0, valid_transports = 0, description = 0x0,
usage = 0x0}}
#7 0x000000000049f699 in net_run_function (c=0x10d5150, argc=2,
argv=0x10d5048, whoami=0x7d0fe4 "net", table=0xb00340)
at utils/net_util.c:571
i = 32
#8 0x00000000004768a8 in main (argc=3, argv=<value optimized out>)
at utils/net.c:767
opt = <value optimized out>
i = <value optimized out>
p = <value optimized out>
rc = <value optimized out>
argc_new = 3
argv_new = (const char **) 0x10d5040
pc = (poptContext) 0x10d5450
frame = (TALLOC_CTX *) 0x10d50f0
c = (struct net_context *) 0x10d5150
long_options = {{longName = 0x7d55b6 "help", shortName = 104 'h',
argInfo = 0, arg = 0x0, val = 104, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d10f3 "workgroup", shortName = 119 'w', argInfo = 1,
arg = 0x10d51b8, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d2f1e "user", shortName = 85 'U', argInfo = 1,
arg = 0x10d5168, val = 85, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0ef7 "ipaddress", shortName = 73 'I', argInfo = 1,
arg = 0x0, val = 73, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x802f29 "port", shortName = 112 'p', argInfo = 2,
arg = 0x10d5190, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f01 "myname", shortName = 110 'n', argInfo = 1,
arg = 0x10d5150, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7e9a2e "server", shortName = 83 'S', argInfo = 1,
arg = 0x10d5158, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7ea07e "encrypt", shortName = 101 'e', argInfo = 0,
arg = 0x0, val = 101,
descrip = 0x7d1308 "Encrypt SMB transport (UNIX extended servers only)",
argDescrip = 0x0}, {longName = 0x817dab "container", shortName = 99 'c',
argInfo = 1, arg = 0x10d51a8, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x854125 "comment", shortName = 67 'C', argInfo = 1,
arg = 0x10d51a0, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f08 "maxusers", shortName = 77 'M', argInfo = 2,
arg = 0x10d5198, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x81a0df "flags", shortName = 70 'F', argInfo = 2,
arg = 0x10d51b0, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f11 "long", shortName = 108 'l', argInfo = 0,
arg = 0x10d5180, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x85ae61 "reboot", shortName = 114 'r', argInfo = 0,
arg = 0x10d5184, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f16 "force", shortName = 102 'f', argInfo = 0,
arg = 0x10d5188, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7de63a "stdin", shortName = 105 'i', argInfo = 0,
arg = 0x10d518c, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7ea5fc "timeout", shortName = 116 't', argInfo = 2,
arg = 0x10d51b4, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f1c "machine-pass", shortName = 80 'P', argInfo = 0,
arg = 0x10d51c0, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d2601 "kerberos", shortName = 107 'k', argInfo = 0,
arg = 0x10d51fc, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f29 "myworkgroup", shortName = 87 'W', argInfo = 1,
arg = 0x10d5178, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f35 "verbose", shortName = 118 'v', argInfo = 0,
arg = 0x10d5194, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f3d "test", shortName = 84 'T', argInfo = 0,
arg = 0x10d51f8, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x840186 "local", shortName = 76 'L', argInfo = 0,
arg = 0x10d51c4, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d7bf5 "domain", shortName = 68 'D', argInfo = 0,
arg = 0x10d51c8, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f42 "ntname", shortName = 78 'N', argInfo = 1,
arg = 0x10d51d0, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x841244 "rid", shortName = 82 'R', argInfo = 2,
arg = 0x10d51d8, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7e9fbe "acls", shortName = 0 '\0', argInfo = 0,
arg = 0x10d51dc, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x81402a "attrs", shortName = 0 '\0', argInfo = 0,
arg = 0x10d51e0, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f49 "timestamps", shortName = 0 '\0', argInfo = 0,
arg = 0x10d51e4, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f54 "exclude", shortName = 88 'X', argInfo = 1,
arg = 0x10d51e8, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f5c "destination", shortName = 0 '\0', argInfo = 1,
arg = 0x10d51f0, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f68 "tallocreport", shortName = 0 '\0', argInfo = 0,
arg = 0x10d51cc, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f75 "force-full-repl", shortName = 0 '\0', argInfo = 0,
arg = 0x10d5200, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f85 "single-obj-repl", shortName = 0 '\0', argInfo = 0,
arg = 0x10d5204, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x7d0f95 "clean-old-entries", shortName = 0 '\0', argInfo = 0,
arg = 0x10d5208, val = 0, descrip = 0x0, argDescrip = 0x0}, {
longName = 0x0, shortName = 0 '\0', argInfo = 4, arg = 0xb07660, val = 0,
descrip = 0x7d0fa7 "Common samba options:", argDescrip = 0x0}, {
longName = 0x0, shortName = 0 '\0', argInfo = 0, arg = 0x0, val = 0,
descrip = 0x0, argDescrip = 0x0}}
__FUNCTION__ = "main"
Weirdly...
$ net usershare info
[pubilc]
path=/home/sam/public
comment=guest_ok=y
usershare_acl=Everyone:R,
guest_ok=n
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (530, 'testing'), (520, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages samba-common depends on:
ii debconf [debconf-2.0 1.5.26 Debian configuration management sy
ii libc6 2.9-4 GNU C Library: Shared libraries
ii libcap2 2.16-2 support for getting/setting POSIX.
ii libcomerr2 1.41.3-1 common error description library
ii libgssapi-krb5-2 1.6.dfsg.4~beta1-11 MIT Kerberos runtime libraries - k
ii libk5crypto3 1.6.dfsg.4~beta1-11 MIT Kerberos runtime libraries - C
ii libkrb5-3 1.6.dfsg.4~beta1-11 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries
ii libncurses5 5.7+20090314-1 shared libraries for terminal hand
ii libpam-modules 1.0.1-7 Pluggable Authentication Modules f
ii libpopt0 1.14-4 lib for parsing cmdline parameters
ii libreadline5 5.2-4 GNU readline and history libraries
ii libtalloc1 1.2.1-1 hierarchical pool based memory all
ii libuuid1 1.41.3-1 universally unique id library
ii libwbclient0 2:3.3.2-1 Samba winbind client library
ii ucf 3.0018 Update Configuration File: preserv
samba-common recommends no packages.
samba-common suggests no packages.
-- debconf information:
samba-common/encrypt_passwords: true
* samba-common/dhcp: false
* samba-common/workgroup: SAM
samba-common/do_debconf: true
More information about the Pkg-samba-maint
mailing list