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 608621 - Crash of gvfsd-ftp
Crash of gvfsd-ftp
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: ftp backend
1.4.x
Other Linux
: High normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2010-01-31 19:33 UTC by Gendre Sébastien
Modified: 2010-02-07 17:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the backtrace of GVFS (14.66 KB, text/plain)
2010-02-01 20:19 UTC, Gendre Sébastien
  Details
The file obtain with the command "GVFS_DEBUG=1 /usr/libexec/gvfsd -r > gvfs-out.txt" (14.66 KB, text/plain)
2010-02-04 14:31 UTC, Gendre Sébastien
  Details
ftp: Handle cases where symlink target is not defined (1.80 KB, patch)
2010-02-07 17:21 UTC, Benjamin Otte (Company)
committed Details | Review

Description Gendre Sébastien 2010-01-31 19:33:48 UTC
If I try to connect on a FTP files share in my local network with Nautilus or Déjà Dup (they use gvfs), gvfsd-ftp crash.

My version of gvfs is 1.4.3 in Fedora 12 (x86_64).

I already said this bug in Red Hat Bugzilla and I see the same problem in Ubuntu PC of a friend.

The link to the bug in Red Hat Bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=555033

This bug is a big problem because it prevents to connect to a FTP files share with Nautilus and all software using gvfs (ex: Déjà Dup backup utility)
Comment 1 Gendre Sébastien 2010-01-31 19:52:08 UTC
Precision: I can mount the FTP address to a GVFS volume with Nautilus, (after reply to user and password question) but when I try to go in this volume gvfsd-ftp crash. And if y try to use a FTP address in Déjà Dup backup utility, gvfsd-ftp crash immediately.
Comment 2 Akhil Laddha 2010-02-01 04:30:49 UTC
Thanks for taking the time to report this bug.
Without a stack trace from the crash it's very hard to determine what caused it.
Can you get us a stack trace? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 3 Gendre Sébastien 2010-02-01 20:19:40 UTC
Created attachment 152761 [details]
the backtrace of GVFS

This is the backtrace Requested.
Comment 4 Gendre Sébastien 2010-02-01 20:23:12 UTC
Tomáš Bžatek of Red Hat also working on this bug. Work together, no?

See in this link:
https://bugzilla.redhat.com/show_bug.cgi?id=555033
Comment 5 Gendre Sébastien 2010-02-03 21:33:48 UTC
Have you all the necessary information?
Comment 6 Akhil Laddha 2010-02-04 03:47:50 UTC
Gendre, traces look good, thanks.
Comment 7 Tomas Bzatek 2010-02-04 09:52:03 UTC
(In reply to comment #5)
> Have you all the necessary information?
This looks like a bad assert when resolving symlinks. Can you please attach the output of `GVFS_DEBUG=1 /usr/libexec/gvfsd -r` ?
Can you find a public server where the issue is reproducible on?
Comment 8 Gendre Sébastien 2010-02-04 14:31:20 UTC
Created attachment 153009 [details]
The file obtain with the command "GVFS_DEBUG=1 /usr/libexec/gvfsd -r > gvfs-out.txt"

And I have this on terminal:
"** (process:3409): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: L'emplacement indiqué n'est pas monté

** (process:3409): WARNING **: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: L'emplacement indiqué n'est pas monté

(process:3420): GLib-GIO-CRITICAL **: g_file_info_set_symlink_target: assertion `symlink_target != NULL' failed
**
ERROR:gvfsftpdircache.c:254:g_vfs_ftp_dir_cache_resolve_symlink: assertion failed: (g_file_info_get_symlink_target (info) != NULL)
"
Comment 9 Gendre Sébastien 2010-02-06 14:05:31 UTC
Need something else?
Comment 10 Benjamin Otte (Company) 2010-02-07 17:21:16 UTC
The following fix has been pushed:
d3f5454 ftp: Handle cases where symlink target is not defined
Comment 11 Benjamin Otte (Company) 2010-02-07 17:21:20 UTC
Created attachment 153212 [details] [review]
ftp: Handle cases where symlink target is not defined

This can happen when systems emulate ls -l output but fail.
Surprisingly, ProFtpd seems to be one of these.
Comment 12 Benjamin Otte (Company) 2010-02-07 17:29:11 UTC
Note I didn't test that patch, so it would be nice if somebody could confirm that it indeed works.