Bug 244530
Summary: | firefox crashes in save file dialog: create_file_info | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sami Farin <hvtaifwkbgefbaei> |
Component: | gtk2 | Assignee: | Matthias Clasen <mclasen> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 9 | CC: | adebened, lex.lists |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-07-14 16:00:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sami Farin
2007-06-16 18:40:49 UTC
Checking for NULL in these two places and I can save a file in firefox... I do not know is this the "correct" fix (I do not get money for wasting extra hours to verify it), but seems to work for me, and I did not create an attachment on purpose for this patch. --- gtk+-2.11.3/gtk/gtkfilesystemunix.c.bak 2007-06-15 21:07:36.000000000 +0300 +++ gtk+-2.11.3/gtk/gtkfilesystemunix.c 2007-06-17 11:02:27.152235051 +0300 @@ -1601,12 +1601,15 @@ gtk_file_system_unix_filename_to_path (G static const char * get_icon_name_for_directory (const char *path) { + char *special; + if (!g_get_home_dir ()) return "gnome-fs-directory"; + special = g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP); if (strcmp (g_get_home_dir (), path) == 0) return "gnome-fs-home"; - else if (strcmp (g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP), path) == 0) + else if (special && strcmp (special, path) == 0) return "gnome-fs-desktop"; else return "gnome-fs-directory"; @@ -2290,7 +2293,7 @@ create_file_info (GtkFileFolderUnix *fol if (types & GTK_FILE_INFO_SIZE) gtk_file_info_set_size (info, (gint64) statbuf->st_size); - if (types & GTK_FILE_INFO_ICON) + if ((types & GTK_FILE_INFO_ICON) && folder_unix) { IconType icon_type; gboolean free_icon_name = FALSE; I've been having the Firefox crash problem for a while. Usually (though not always) when I try to save something from Firefox. I dont know if it is directly related to the problem posted here. It seems to have gotten worse lately. I ran it from a terminal window once and had it crash so I was able to do an echo $? which returned 139. Anyway, the problem is fairly serious since it makes WEB browsing unreliable which is a problem if you are paying bills or doing any other transactions. A good description of the problem, along with some information on what may be causing it can be found here (The subject line says SeaMonkey but most of the posts are regarding Firefox on CentOS/RHEL 5.1): http://grokbase.com/topic/2008/01/08/centos-probably-ot-has-anyone-else-seen-seamonkey-pop-without-warning/tDWRIeknQLrTmOfXX3pYvNIKIV4 and some more info can be found here: http://www.centos.org/modules/newbb/viewtopic.php?topic_id=11589&forum=38&post_id=41367#forumpost41367 Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Can anyone reproduce on a later Fedora version. I just hit Ctrl + s, and successfully saved a file. Does it happen every time, or intermittently. In January 2009 I got segfault in AppendUTF16toUTF8 when saving a file, but not anymore. However, now I get 20 MB memory leak every time I save a file (or just press ESC after the filename prompt dialog). I may make another bugreport about that.. This message is a reminder that Fedora 9 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 9. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '9'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 9's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 9 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 9 changed to end-of-life (EOL) status on 2009-07-10. Fedora 9 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |