$ gdb /usr/lib/gvfs/gvfsd-smb  4537
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/gvfs/gvfsd-smb...Reading symbols from /usr/lib/debug/usr/lib/gvfs/gvfsd-smb...done.
done.
Attaching to program: /usr/lib/gvfs/gvfsd-smb, process 4537
Reading symbols from /usr/lib/libsmbclient.so.0...Reading symbols from /usr/lib/debug/usr/lib/libsmbclient.so.0...done.
done.
Loaded symbols for /usr/lib/libsmbclient.so.0
Reading symbols from /usr/lib/libgconf-2.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgconf-2.so.4
Reading symbols from /usr/lib/libgvfscommon.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgvfscommon.so.0
Reading symbols from /usr/lib/libgio-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgio-2.0.so.0
Reading symbols from /usr/lib/libgobject-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgobject-2.0.so.0
Reading symbols from /usr/lib/libgthread-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgthread-2.0.so.0
Reading symbols from /lib/libdbus-1.so.3...Reading symbols from /usr/lib/debug/lib/libdbus-1.so.3.4.0...done.
done.
Loaded symbols for /lib/libdbus-1.so.3
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb7770b70 (LWP 4538)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libgnome-keyring.so.0...Reading symbols from /usr/lib/debug/usr/lib/libgnome-keyring.so.0.1.1...done.
done.
Loaded symbols for /usr/lib/libgnome-keyring.so.0
Reading symbols from /lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libglib-2.0.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /usr/lib/libtalloc.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtalloc.so.2
Reading symbols from /usr/lib/libwbclient.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libwbclient.so.0
Reading symbols from /lib/libcap.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcap.so.2
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libldap_r-2.4.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libldap_r-2.4.so.2
Reading symbols from /usr/lib/liblber-2.4.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/liblber-2.4.so.2
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libgmodule-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /usr/lib/libORBit-2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libORBit-2.so.0
Reading symbols from /usr/lib/libdbus-glib-1.so.2...Reading symbols from /usr/lib/debug/usr/lib/libdbus-glib-1.so.2.1.0...done.
done.
Loaded symbols for /usr/lib/libdbus-glib-1.so.2
Reading symbols from /lib/tls/i686/cmov/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libexpat.so.1
Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libgcrypt.so.11...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcrypt.so.11
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /lib/libattr.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libattr.so.1
Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /lib/libkeyutils.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libkeyutils.so.1
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgnutls.so.26
Reading symbols from /lib/libgpg-error.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libgpg-error.so.0
Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /usr/lib/gconv/UTF-16.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gconv/UTF-16.so
Reading symbols from /usr/lib/gconv/IBM850.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gconv/IBM850.so
0x009e6422 in __kernel_vsyscall ()
(gdb) t a a bt

Thread 2 (Thread 0xb7770b70 (LWP 4538)):
#0  0x0082c6e6 in g_atomic_int_get () from /lib/libglib-2.0.so.0
#1  0x0060d7c4 in gkr_operation_get_result (op=0x91e44c8)
    at gkr-operation.c:162
#2  0x0060e38c in gkr_operation_block (op=0x91e44c8) at gkr-operation.c:370
#3  0x00610cb3 in gnome_keyring_is_available () at gnome-keyring.c:494
#4  0x08064815 in g_vfs_keyring_lookup_password (username=0x91eaa00 "netdisk", 
    host=0x91ea980 "server", domain=0x0, protocol=0x8066957 "smb", object=0x0, 
    authtype=0x0, port=0, username_out=0xb776f918, domain_out=0xb776f914, 
    password_out=0xb776f91c) at gvfskeyring.c:58
#5  0x08050667 in auth_callback (context=0x91ebc00, 
    server_name=0x9252780 "server", share_name=0x92527c0 "netdisk", 
    domain_out=0xb776fb9c "WORKGROUP", domainmaxlen=256, 
    username_out=0xb776fa9c "netdisk", unmaxlen=256, 
    password_out=0xb776f99c "", pwmaxlen=256) at gvfsbackendsmb.c:203
#6  0x0012f107 in SMBC_call_auth_fn (ctx=0x91f56c0, context=0x91ebc00, 
    server=0x9252780 "server", share=0x92527c0 "netdisk", 
    pp_workgroup=0xb77700e8, pp_username=0xb77700f0, pp_password=0xb77700ec)
    at libsmb/libsmb_server.c:114
#7  0x0012f318 in SMBC_find_server (ctx=0x91f56c0, context=0x91ebc00, 
    server=0x9252780 "server", share=0x92527c0 "netdisk", 
    pp_workgroup=0xb77700e8, pp_username=0xb77700f0, pp_password=0xb77700ec)
---Type <return> to continue, or q <return> to quit---
    at libsmb/libsmb_server.c:174
#8  0x0012fb06 in SMBC_server (ctx=0x91f56c0, context=0x91ebc00, 
    connect_if_not_found=true, server=0x9252780 "server", 
    share=0x92527c0 "netdisk", pp_workgroup=0xb77700e8, 
    pp_username=0xb77700f0, pp_password=0xb77700ec)
    at libsmb/libsmb_server.c:263
#9  0x0013155b in SMBC_stat_ctx (context=0x91ebc00, 
    fname=0x9216250 "smb://server/netdisk", st=0xb7770160)
    at libsmb/libsmb_stat.c:168
#10 0x0805249f in do_mount (backend=0x91ea000, job=0x91eac20, 
    mount_spec=0x91e0020, mount_source=0x91da378, is_automount=0)
    at gvfsbackendsmb.c:575
#11 0x08059b68 in run (job=0x91eac20) at gvfsjobmount.c:113
#12 0x080589fd in g_vfs_job_run (job=0x91eac20) at gvfsjob.c:198
#13 0x0805476e in job_handler_callback (data=0x91eac20, user_data=0x91daf20)
    at gvfsdaemon.c:144
#14 0x0087e04c in ?? () from /lib/libglib-2.0.so.0
#15 0x0087c12f in ?? () from /lib/libglib-2.0.so.0
#16 0x0078796e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0x00ab49de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb78d9730 (LWP 4537)):
#0  0x009e6422 in __kernel_vsyscall ()
---Type <return> to continue, or q <return> to quit---
#1  0x00aa6b56 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x008625fb in g_poll () from /lib/libglib-2.0.so.0
#3  0x0085510c in ?? () from /lib/libglib-2.0.so.0
#4  0x00855877 in g_main_loop_run () from /lib/libglib-2.0.so.0
#5  0x0805309a in daemon_main (argc=4, argv=0xbffda4a4, max_job_threads=1, 
    default_type=0x8066a8b "smb-share", mountable_name=0x0, 
    first_type_name=0x8066a8b "smb-share") at daemon-main.c:294
#6  0x080533a6 in main (argc=4, argv=0xbffda4a4) at daemon-main-generic.c:39
(gdb) quit
A debugging session is active.

	Inferior 1 [process 4537] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/lib/gvfs/gvfsd-smb, process 4537
