GNOME Bugzilla – Bug 332028
sftp method needs to guard against broken pipes
Last modified: 2008-09-06 19:08:38 UTC
If an ssh connection is killed because of some reason, gnome-vfs will still try to write/read to the ssh process. This of course does not work, which results in reading some uninitilized memory, and sometimes this causes a crash. The sftp method should handle this case more gracefully. (ie. return an error that the operation failed, and allow creation of a new connection) Note that if this happens, the mainloop will also eat cpu time because the sftp method does not want to be notified of the G_IO_HUP (and it'll poll over and over).
The glib bug about the loop problem is bug 332030.
Thanks for your bug report! I experienced an ugly crasher today for that reason, will attach a backtrace later.
*** Bug 325554 has been marked as a duplicate of this bug. ***
Backtrace was generated from '/usr/bin/nautilus' (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 922756800 (LWP 4850)] [New Thread 907561904 (LWP 20912)] [New Thread 914144176 (LWP 4852)] 0x376de283 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
+ Trace 66452
Thread 2 (Thread 907561904 (LWP 20912))
*** Bug 349149 has been marked as a duplicate of this bug. ***
Bug 349149 contains some analysis of the issue, as the reporter did some investigation and notes a few serious problems.
*** Bug 375569 has been marked as a duplicate of this bug. ***
also see bug 407298
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome. If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs. @Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together. General further information: http://en.wikipedia.org/wiki/GVFS Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html