After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167075 - nautilus crashes if username is given in smb:// URI
nautilus crashes if username is given in smb:// URI
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: smb
cvs (head)
Other All
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
: 166994 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-02-11 14:49 UTC by Narayana Pattipati
Modified: 2005-02-11 16:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch to fix crash when username is given in smb:// uri. (1.15 KB, patch)
2005-02-11 14:56 UTC, Narayana Pattipati
none Details | Review

Description Narayana Pattipati 2005-02-11 14:49:49 UTC
Please describe the problem:
nautilus crashes when username is given in smb:// URI.

Steps to reproduce:
1. Launch nautilus
2. Go to location bar and try to access a server by giving username in the URI
   For example, smb://naren@gnometest
3. Nautilus crashes.


Actual results:
Nautilus crashes.

Expected results:
Should not crash

Does this happen every time?
Yes.

Other information:
Stack trace of nautilus crash:

Program received signal SIGSEGV, Segmentation fault.

Thread 1098570672 (LWP 4862)

  • #0 lookup_user_cache
    at smb-method.c line 704
  • #1 auth_callback
    at smb-method.c line 757
  • #2 find_server
    from /usr/lib/libsmbclient.so.0
  • #3 smbc_server
    from /usr/lib/libsmbclient.so.0
  • #4 smbc_opendir_ctx
    from /usr/lib/libsmbclient.so.0
  • #5 do_open_directory
    at smb-method.c line 1793
  • #6 open_from_uri
    at gnome-vfs-directory.c line 97
  • #7 _gnome_vfs_job_execute
    at gnome-vfs-job.c line 1474
  • #8 thread_routine
    at gnome-vfs-job-slave.c line 64
  • #9 thread_entry
    at gnome-vfs-thread-pool.c line 186
  • #10 g_thread_create_proxy
    at gthread.c line 556
  • #11 start_thread
    from /lib/tls/libpthread.so.0
  • #12 clone
    from /lib/tls/libc.so.6

Comment 1 Narayana Pattipati 2005-02-11 14:55:48 UTC
The crash is due to NULL pointer access after getting user information from
cache. Attached patch fixes it.
Comment 2 Narayana Pattipati 2005-02-11 14:56:37 UTC
Created attachment 37348 [details] [review]
patch to fix crash when username is given in smb:// uri.
Comment 3 Stef Walter 2005-02-11 15:59:51 UTC
Commited a fix to CVS. 
Comment 4 Kjartan Maraas 2005-02-11 16:06:53 UTC
*** Bug 166994 has been marked as a duplicate of this bug. ***