[apport] net crashed with SIGSEGV in run_rpc_command()

Bug #96139 reported by Memo
60
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Feisty by Mathias Gug

Bug Description

Binary package hint: samba

Not sure what happened. None of my current windows is closed.

ProblemType: Crash
Architecture: amd64
Date: Mon Mar 26 02:18:31 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/net
Package: samba-common 3.0.24-2ubuntu1
PackageArchitecture: amd64
ProcCmdline: net share -l -W MSHOME -n MEMO-DESKTOP -p 139 -w TI -S OVI -I 172.27.13.14 -U guest%
ProcCwd: /home/memo/.kde/share/apps/smb4k
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: samba
Stacktrace:
 #0 0x000000000044cf48 in ?? ()
 #1 0x000000000045323b in run_rpc_command ()
 #2 0x000000000045456c in net_rpc_share ()
 #3 0x0000000000443628 in main ()
StacktraceTop:
 ?? ()
 run_rpc_command ()
 net_rpc_share ()
 main ()
Uname: Linux memo-desktop 2.6.20-13-generic #2 SMP Sat Mar 24 23:12:02 UTC 2007 x86_64 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin plugdev scanner video

Revision history for this message
Memo (memo-cj-ro) wrote :
Changed in samba:
importance: Undecided → Medium
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:run_rpc_command (cli_arg=0x0, pipe_idx=4, conn_flags=<value optimized out>, fn=0x44ceb0 <rpc_share_list_internals>, argc=0, argv=0x845370)
net_rpc_share (argc=<value optimized out>, argv=0xf5) at utils/net_rpc.c:4759
main (argc=17, argv=0x7ffffc841248) at utils/net.c:986

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:run_rpc_command (cli_arg=0x0, pipe_idx=4, conn_flags=<value optimized out>, fn=0x44ceb0 <rpc_share_list_internals>, argc=0, argv=0x845370)
net_rpc_share (argc=<value optimized out>, argv=0xf5) at utils/net_rpc.c:4759
main (argc=17, argv=0x7ffffc841248) at utils/net.c:986

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Bill_Ymr (bill-ymr) wrote :

Given that this bug is almost 2 months old, and has yet to be assigned; may I suggest that we get to work instead of harassing me with email about duplicates to this bug.

Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. I can reproduce this bug on amd64, with feisty and dapper. i386 doesn't sigsegv. It seems that the version in Gutsy on amd64 works correctly.

Could you test with the latest version of samba on Gusty ?

Changed in samba:
status: New → Triaged
Revision history for this message
Mathias Gug (mathiaz) wrote :

I've found an svn checkin in samba svn repository that may fix this problem:

$ svn log -r 22867 svn://svnanon.samba.org/samba
------------------------------------------------------------------------
r22867 | ab | 2007-05-14 15:26:22 -0400 (lun, 14 mai 2007) | 6 lines

With Samba4's IDL, we now have two new flags for share types: STYPE_TEMPORARY and STYPE_HIDDEN
Strip them out when referencing share_type[] entries.

Apparently, some Windows XP installs create shares set to STYPE_HIDDEN by default, found by
Damir Shayhutdinov <email address hidden>. This also fixes smb4k crashes as it does call 'net share -l'.

------------------------------------------------------------------------

The patch needs to be backported as it relies on new STYPE_* definition:
http://viewcvs.samba.org/cgi-bin/viewcvs.cgi/branches/SAMBA_3_0/source/utils/net_rpc.c?rev=22867&r1=21768&r2=22867

According to the duplicates, most of the users hit by this bug are Kubuntu users using smb4k (although the problem is not in smb4k, but in the net command).

Revision history for this message
Mathias Gug (mathiaz) wrote :

I'm also closing this bug for Gusty as it's fixed in samba 3.0.25.

Changed in samba:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.