[Pkg-samba-maint] Bug#416185: samba-common: net rpc share causes
segfault when invoked with -l parameter on windows hosts
Tommaso Colombo
zibo86 at gmail.com
Thu May 10 17:03:59 UTC 2007
On Wed, 9 May 2007 17:25:33 -0700, Steve Langasek wrote:
> Please provide a gdb backtrace of this segmentation fault.
Here is the gdb backtrace you requested:
$gdb net
(gdb) run share -l -U Guest% -S bresa
Starting program: /usr/bin/net share -l -U Guest% -S bresa
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 47877535795936 (LWP 4678)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Enumerating shared resources (exports) on remote server:
Share name Type Description
---------- ---- -----------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47877535795936 (LWP 4678)]
0x0000000000445da0 in net_rpc_check ()
(gdb) bt
#0 0x0000000000445da0 in net_rpc_check ()
#1 0x000000000044bbfb in run_rpc_command ()
#2 0x000000000044ceb7 in net_rpc_share ()
#3 0x000000000043c7c7 in main ()
Moreover, I noticed that the segfault seems to occur when the program
tries to print the IPC$ share. In the majority of cases the IPC$ share
is the first to be printed, so the effect is that the whole command
fails.
Here goes an example:
$ smbclient -U Guest% -L gadlerner
Password:
Domain=[GADLERNER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
FestaFagioli Disk
Lardirago07 Disk
IPC$ IPC IPC remoto
FlorChimicaFisica Disk
SpinoloScienzaMateriali Disk
ADMIN$ Disk Amministrazione remota
C$ Disk Condivisione predefinita
Domain=[GADLERNER] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
$ net share -U Guest% -l -S gadlerner
Enumerating shared resources (exports) on remote server:
Share name Type Description
---------- ---- -----------
FestaFagioli Disk
Lardirago07 Disk
Segmentation fault
I hope this is helpful enough. Unfortunately, the samba-dbg package
does not contain debugging symbols for the net command so I can't
provide more info.
Regards,
Tommaso
More information about the Pkg-samba-maint
mailing list