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 646871 - Crash on file properties when connected to FTP
Crash on file properties when connected to FTP
Status: RESOLVED FIXED
Product: gnome-commander
Classification: Other
Component: networking
1.2.x
Other Linux
: High critical
: 1.4
Assigned To: epiotr
epiotr
Depends on:
Blocks:
 
 
Reported: 2011-04-06 02:10 UTC by yzubkov
Modified: 2011-07-24 22:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Stack trace for FTP crash (21.83 KB, text/plain)
2011-05-19 23:52 UTC, yzubkov
Details
git patch for Bug 646871 (1.86 KB, text/plain)
2011-07-09 15:38 UTC, Cristian Buzduga
Details

Description yzubkov 2011-04-06 02:10:00 UTC
While connected to an FTP server I just right click on any file and choose properties, and it goes Boom!
gnome-commander 1.2.8.5 on Ubuntu 10.04 LTS.
Comment 1 André Klapper 2011-04-06 09:37:17 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 2 yzubkov 2011-04-06 20:07:02 UTC
This crash happens very consistently (every single time). And I tried to install dbg package as follows:
1. apt-cache search gnome-commander | grep "dbg"  ==> return nothing
2. Search ubuntu.com ==> and got gnome-commander-dbg only for natty, not lucid
3. Natty version refused to install
4. Ran commander from terminal and got this after crash: "ERROR:owner.h:158:const gchar* GnomeCmdOwner::HashTable<T, ID>::operator[](ID) [with T = GnomeCmdOwner::user_t, ID = unsigned int]: assertion failed: (entry != NULL)
Aborted"

I would have probably upgraded to natty if I knew commander would not crash then. Maybe someone with naty can verify.
Comment 3 Akhil Laddha 2011-05-19 14:01:05 UTC
Shall we close the bug in case you won't be able to provide requested information ?
Comment 4 yzubkov 2011-05-19 23:52:17 UTC
Created attachment 188189 [details]
Stack trace for FTP crash
Comment 5 yzubkov 2011-05-19 23:52:34 UTC
Here is an update for anyone who is not convinced that it does in fact crash. I found out that this crash does not happen for public ftps. You need to connect to FTP that requires you to log in.

OS: Any, but is verified to crash on Ububtu 10.04 and Fedora 14

Version: gnome-commander 1.2.8.11 or gnome-commander 1.2.8.5

Steps to reproduce: connect to an ftp that requires login -> right-click any file -> choose properties

Terminal output: ERROR:/builddir/build/BUILD/gnome-commander-1.2.8.11/_builddir/../src/owner.h:158:const gchar* GnomeCmdOwner::HashTable<T, ID>::operator[](ID) [with T = GnomeCmdOwner::user_t, ID = unsigned int, gchar = char]: assertion failed: (entry != NULL)
Aborted (core dumped)

Stack trace: attached
Comment 6 Akhil Laddha 2011-07-01 04:31:18 UTC
Thanks for the backtrace.
Comment 7 Cristian Buzduga 2011-07-08 16:42:06 UTC
I confirm this bug for the latest version of gcmd 1.2.8.13 from git repository.
I found  that the anounymous ftp site "ftp://ftp.freenet.de" makes gcmd crash when right-clicking on the debian folder located in root. This is not happening on all folders.
Confirmed on openSUSE 11.4 with Gnome 2.32
Comment 8 Cristian Buzduga 2011-07-09 15:38:24 UTC
Created attachment 191583 [details]
git patch for Bug 646871
Comment 9 Cristian Buzduga 2011-07-09 15:39:47 UTC
I found that the problem is related to the "permissions" tab of the file properties dialog. In this tab gcmd tries to display the owner and the group of the file, but it looks that these are for local files/folders not remote ones. For example, in Nautilus, remote ftp files/folders don't display anything for the permissions tab on their properties dialog.
Anyway, i made a patch for this crash, to ignore if the uid or guid is not found in the local hash tables (the permisions tab will display some owner/group which may not be correct at all)
Fix is for the gcmd-1-2-8 branch
Comment 10 epiotr 2011-07-24 22:50:20 UTC
This problem has been fixed in our software repository. The fix will go into the next, 1.2.8.13 release. Thank you for your bug report.