The password field contains an invalid size. The print statement cause a segfault because the size of the password text can be gigabytes.
Here is the patch to fix it (by blindly commenting out the offending line).
diff -uNr samba-3.0.22.orig/source/rpcclient/cmd_srvsvc.c samba-3.0.22/source/rpcclient/cmd_srvsvc.c
--- samba-3.0.22.orig/source/rpcclient/cmd_srvsvc.c 2006-01-24 23:46:31.000000000 +0000
+++ samba-3.0.22/source/rpcclient/cmd_srvsvc.c 2006-06-22 14:39:33.000000000 +0000
@@ -253,7 +253,9 @@
printf("netname: %s\n", netname);
Tried it, works for me. What server are you using? Can you show us a sniff?
This has happened on about 5 large networks now. AD Native mode 5000+ users - win2k Win2k03 servers (lots of them 180 is the largest). Intermittent. Sometimes the data is 0 bytes in length (sounds like your case) othertime it's trash resulting in SEGV. I've *never* seen a password (Upwards of 20 installs on various networks now - none of which where small home types).
This field seems obsolete?
Don't know how to do a sniff? Will try though. I've tried with debug turned up very high and it just seems to confirm that the password data is invalid (or at least not what the code thinks it is).
This should be long resolved since Samba 3.2. Please reopen if still an issue.