GNOME Bugzilla – Bug 746003
segv on opening property dialog on directory on ftp server with "odd" uid
Last modified: 2015-03-14 23:13:20 UTC
Using gnome-commander 1.4.5, when 1. Choose "Connections" -> "Remove Server" 2. Choose "Add". 3. With "Remove Server" dialog, set - Service type "Public FTP" - Alias "ftp_riken" - Server "ftp.riken.jp" - Other: left blank Now click "OK" 4, On "Remove Server" dialog, choose "ftp_riken", then click "Connect" 5. on ftp_riken, go to the directory "Linux" 6. on "fedora", right-click, then choose "Property" Now gnome-commander 1.4.5 crash with ERROR:/builddir/build/BUILD/gnome-commander-1.4.5/_builddir/../src/owner.h:165:const gchar* GnomeCmdOwner::HashTable<T, ID>::operator[](ID) [with T = GnomeCmdOwner::user_t; ID = unsigned int; gchar = char]: assertion failed: (entry != NULL) Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1200349
Backtrace available on: https://bugzilla.redhat.com/attachment.cgi?id=999816
So looks like remove g_assert sentence in GnomeCmdOwner::HashTable<T,ID>::operator [] (ID id) cures this issue, but I don't know if it is expected or not.
Thank you very much for your detailed bug report. I could reproduce the described behavior. Iit is okay to remove the g_assert call from GnomeCmdOwner::HashTable<T,ID>::operator in this case, as NULL is returned now for the name of the UID / GID, which itself is captured in src/gnome-cmd-chown-component.cc where the class is used. I committed your fix, it will go into the next release of GCMD.