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 353127 - Crash in _gtk_file_system_model_path_do
Crash in _gtk_file_system_model_path_do
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.10.x
Other All
: High critical
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
: 357687 360892 362030 363076 364256 364645 365118 366815 367371 369996 371393 372430 374057 376413 376629 376986 377434 377662 377704 379199 381868 383374 383650 384108 385702 385946 386576 386929 388134 388705 388993 390253 390926 391107 392350 393894 395723 396303 397166 397754 398816 399002 399562 400197 400410 401652 401952 402142 404712 404823 406152 407271 407717 408426 408486 408743 410496 411023 412328 412431 412497 415433 415510 415926 417634 417831 418749 418809 420524 422231 422899 422957 423769 424319 424849 425041 428654 428668 429849 430060 430366 430480 433836 439695 454162 474268 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-27 18:46 UTC by pietrov1
Modified: 2007-09-07 08:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
test file (476 bytes, text/plain)
2007-04-29 14:27 UTC, Sadrul Habib Chowdhury
  Details
gtkfilechooser-crash.patch (648 bytes, patch)
2007-05-04 05:53 UTC, Priit Laes (IRC: plaes)
none Details | Review

Description pietrov1 2006-08-27 18:46:08 UTC
Version: 2.15.8

What were you doing when the application crashed?
i write script...


Distribution: Ubuntu 6.10 (edgy)
Gnome Release: 2.15.92 2006-08-22 (Ubuntu)
BugBuddy Version: 2.15.92

Memory status: size: 76910592 vsize: 0 resident: 76910592 share: 0 rss: 24227840 rss_rlim: 0
CPU usage: start_time: 1156704221 rtime: 0 utime: 370 stime: 0 cutime:335 cstime: 0 timeout: 35 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/gedit'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1227000144 (LWP 5493)]
(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1227000144 (LWP 5493))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 strcmp
    from /lib/tls/i686/cmov/libc.so.6
  • #5 _gtk_file_system_model_path_do
    from /usr/lib/libgtk-x11-2.0.so.0
  • #6 _gtk_file_chooser_default_new
    from /usr/lib/libgtk-x11-2.0.so.0
  • #7 fs_module_init
    from /usr/lib/gtk-2.0/2.10.0/filesystems/libgnome-vfs.so
  • #8 fs_module_init
    from /usr/lib/gtk-2.0/2.10.0/filesystems/libgnome-vfs.so
  • #9 g_source_is_destroyed
    from /usr/lib/libglib-2.0.so.0
  • #10 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #11 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #12 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #13 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #14 main
  • #0 __kernel_vsyscall

Comment 1 Paolo Maggi 2006-08-28 09:53:34 UTC
It looks like a crash in the file chooser.
Comment 2 Christian Kirbach 2006-08-30 21:03:55 UTC
Thanks for the bug report. Unfortunately, that stack trace is not very useful in determining the cause of the crash. Can you get us one with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so.
Comment 3 Karsten Bräckelmann 2006-09-25 21:57:06 UTC
*** Bug 357687 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2006-10-09 12:56:03 UTC
*** Bug 360892 has been marked as a duplicate of this bug. ***
Comment 5 André Klapper 2006-10-09 12:56:40 UTC
can anybody here still reproduce this issue when running the latest gtk+-2.10.5?
Comment 6 Karsten Bräckelmann 2006-10-13 21:56:25 UTC
*** Bug 362030 has been marked as a duplicate of this bug. ***
Comment 7 Karsten Bräckelmann 2006-10-18 08:16:29 UTC
*** Bug 363076 has been marked as a duplicate of this bug. ***
Comment 8 Karsten Bräckelmann 2006-10-22 20:14:51 UTC
*** Bug 364256 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2006-10-24 09:04:52 UTC
*** Bug 364645 has been marked as a duplicate of this bug. ***
Comment 10 André Klapper 2006-10-24 09:06:32 UTC
Can somebody of the bug reporters please install debug packages of gtk, glib and gnome-vfs and try to reproduce this crash, in order to help fixing this? Please see http://live.gnome.org/GettingTraces for more information. Thanks in advance.
Comment 11 Karsten Bräckelmann 2006-10-25 21:24:19 UTC
*** Bug 365118 has been marked as a duplicate of this bug. ***
Comment 12 Paolo Maggi 2006-10-30 09:01:22 UTC
*** Bug 367371 has been marked as a duplicate of this bug. ***
Comment 13 Paolo Maggi 2006-10-30 09:04:47 UTC
Unfortunately, all the reported stack traces are missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash.

As Andre already asked in comment #10: cCan somebody of the bug reporters please install debug packages of gtk, glib and gnome-vfs and try to reproduce this crash, in order to help fixing this?
Please see http://live.gnome.org/GettingTraces for more information. 

Thanks in advance.
Comment 14 André Klapper 2006-11-06 09:27:15 UTC
*** Bug 371393 has been marked as a duplicate of this bug. ***
Comment 15 André Klapper 2006-11-12 03:49:49 UTC
*** Bug 374057 has been marked as a duplicate of this bug. ***
Comment 16 André Klapper 2006-11-12 03:49:55 UTC
*** Bug 372430 has been marked as a duplicate of this bug. ***
Comment 17 André Klapper 2006-11-17 20:38:00 UTC
*** Bug 376413 has been marked as a duplicate of this bug. ***
Comment 18 Damien Durand 2006-11-18 12:23:26 UTC
*** Bug 376629 has been marked as a duplicate of this bug. ***
Comment 19 André Klapper 2006-11-19 15:18:49 UTC
*** Bug 376986 has been marked as a duplicate of this bug. ***
Comment 20 Jens Granseuer 2006-11-20 18:01:56 UTC
*** Bug 377434 has been marked as a duplicate of this bug. ***
Comment 21 André Klapper 2006-11-21 13:55:30 UTC
*** Bug 377704 has been marked as a duplicate of this bug. ***
Comment 22 André Klapper 2006-11-21 13:55:34 UTC
*** Bug 377662 has been marked as a duplicate of this bug. ***
Comment 23 Paolo Borelli 2006-11-25 17:03:26 UTC
removing NEEDINFO: even if the stack traces are incomplete, they point out the location of the problem:



void
_gtk_file_system_model_path_do (GtkFileSystemModel        *model,
			        const GtkFilePath         *path,
			        GtkFileSystemModelPathFunc func,
			        gpointer                   user_data)
{
...

  if (gtk_file_path_compare (path, model->root_path) == 0
      || !gtk_file_system_get_parent (model->file_system, path, &parent_path, NULL))
    return;
...


gtk_file_path_compare is just a strcmp so it crashes if one of the strings is NULL. Not sure if the one NULL is path or model->root_path, but the first sounds more likely.

the if should become if (path && gtk_file_path_compare...) just for robustness.

If calling the function with a NULL path is illegal, we should add a g_return_if_fail (path != NULL) and audit the callers.




Comment 24 Steve Frécinaux 2006-11-26 00:31:00 UTC
*** Bug 379199 has been marked as a duplicate of this bug. ***
Comment 25 André Klapper 2006-12-05 01:16:00 UTC
*** Bug 381868 has been marked as a duplicate of this bug. ***
Comment 26 Christian Kirbach 2006-12-07 14:52:10 UTC
*** Bug 383374 has been marked as a duplicate of this bug. ***
Comment 27 Paolo Borelli 2006-12-08 09:28:14 UTC
*** Bug 383650 has been marked as a duplicate of this bug. ***
Comment 28 Paolo Borelli 2006-12-09 17:44:53 UTC
*** Bug 384108 has been marked as a duplicate of this bug. ***
Comment 29 Paolo Borelli 2006-12-10 23:44:09 UTC
Ok, I tracked this down a bit more carefully:

1) To reproduce open a Save As dialog, open the expander, click on "Create Folder" and without entering the name click on one of the parent dirs in the path bar.

The crash is actually happening in 

  while (gtk_file_path_compare (parent_path, model->root_path) != 0)
    {
    ...

since parent path can be NULL.

It can be NULL because is obtained with gtk_file_system_get_parent(), which can return TRUE even if the parent is set to NULL. Quoting from its docs:

 * Return value: %TRUE if the operation was successful:  @parent will be set to
 * the name of the @path's parent, or to %NULL if @path is already a file system
 * root.  


So to sum it up, a NULL parent_path needs to be handled in the loop (not sure if it should simply quit the loop or if something else is needed).

I also still think that adding

  g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model));
  g_return_if_fail (path != NULL);

at the start of the function is a good idea to make sure that passing a null path to this function is illegal.
Comment 30 Kristian Rietveld 2006-12-13 15:08:00 UTC
I just managed to reproduce the crash with my 2-10 branch.  What happens is that the path to select is "file:///data/source/gnome/gtk%2B-2-10/tests" while the model root path is "file:///data/source/gnome/gtk%2B-2-10/Type%20name%20of%20new%20folder".  Obviously there is no parent path which will ever reach the root path.

I agree that adding the g_return_if_fail()s will help here, it won't fix the actual problem, but at least it will stop the segfaults.

The actual problem is the following:
 * You click on Create Folder and don't touch the entry.
 * You click on a parent directory in the path bar.
 * The tree view loses focus, making it create the folder.
 * Because the click on the parent directory actually started a folder change, the folder is created in the wrong directory; the file chooser also enters this folder after creating it (hence the model root path above).
 * The pending path selections thinks the model root path is /data/source/gnome/gtk+-2-10 and wants to select "tests" there.

The patch in #164494 is in HEAD now and with that I can't reproduce this anymore.  Maybe we should also get this in 2-10, in addition to the g_return_if_fail()s.
Comment 31 Michael Chudobiak 2006-12-14 12:46:24 UTC
*** Bug 385702 has been marked as a duplicate of this bug. ***
Comment 32 Michael Chudobiak 2006-12-17 18:53:02 UTC
*** Bug 386576 has been marked as a duplicate of this bug. ***
Comment 33 Michael Chudobiak 2006-12-21 15:55:20 UTC
*** Bug 388134 has been marked as a duplicate of this bug. ***
Comment 34 Susana 2006-12-22 19:38:53 UTC
*** Bug 388705 has been marked as a duplicate of this bug. ***
Comment 35 Bruno Boaventura 2006-12-24 03:57:32 UTC
*** Bug 388993 has been marked as a duplicate of this bug. ***
Comment 36 Susana 2006-12-28 11:53:51 UTC
*** Bug 390253 has been marked as a duplicate of this bug. ***
Comment 37 Matthias Clasen 2006-12-28 20:31:22 UTC
Kristian, do you want to commit the patch from bug 164494
for 2-10, too ?
Comment 38 Michael Chudobiak 2006-12-30 20:41:24 UTC
*** Bug 390926 has been marked as a duplicate of this bug. ***
Comment 39 Pascal Terjan 2006-12-31 05:41:08 UTC
*** Bug 391107 has been marked as a duplicate of this bug. ***
Comment 40 Kristian Rietveld 2007-01-02 15:49:14 UTC
(In reply to comment #37)
> Kristian, do you want to commit the patch from bug 164494
> for 2-10, too ?

I hesitated directly committing this change for gtk-2-10 because it is in a fact a behavioural change.  Of course I fully agree that people expect the change to be ignored if you move the mouse out of the window.  (The text renderer did actually not stop editing on focus-out until a few years ago; from what I remember people were actually complaining that the change was not saved on focus-out).  As far as people didn't do that already they now need to press either enter or one of the arrow keys, or click somewhere else in the same tree view to get the change accepted.

Matthias, if that is fine with you I would be glad to commit this on 2-10 today/tomorrow.
Comment 41 Matthias Clasen 2007-01-02 16:07:46 UTC
I'm not sure we really want to cancel editing on focus-out. 
People complain about that, e.g. in bug 326892 and bug 317387. 
As long as the crash is fixed, I think we don't need further
changes in 2.10. 

This is one of the cases where it might be nice to intercept the 
focus-out and ask for confirmation.
Comment 42 Kristian Rietveld 2007-01-03 00:17:37 UTC
(In reply to comment #41)
> I'm not sure we really want to cancel editing on focus-out. 
> People complain about that, e.g. in bug 326892 and bug 317387. 
> As long as the crash is fixed, I think we don't need further
> changes in 2.10. 

Those bugs are really about problems in the combo cell renderer.
 
> This is one of the cases where it might be nice to intercept the 
> focus-out and ask for confirmation.

As argued in bug 164494 input should only be accepted after a user explicitly asked for that by pressing Enter or up/down arrows.  I don't think asking for confirmation is nice for every case; it is probably not a thing gtk+ itself should handle.  (Maybe it would be nice to support this in the GtkCellEditable framework at some point, I think I want to introduce a bunch of changes to it in 3.0 anyway).


I will be committing the patch for 164494 to gtk-2-10 late tomorrow unless somebody objects.

Comment 43 Kristian Rietveld 2007-01-03 19:36:57 UTC
Backmerged #164494 to gtk-2-10.
Comment 44 Bruno Boaventura 2007-01-03 22:24:35 UTC
*** Bug 392350 has been marked as a duplicate of this bug. ***
Comment 45 Matthias Clasen 2007-01-04 02:09:14 UTC
Kris, should this be closed then ?
Comment 46 Kristian Rietveld 2007-01-04 12:36:14 UTC
I'd appreciate some verifications that this is gone first.  I remember having huge troubles reproducing this bug in the past ...
Comment 47 palfrey 2007-01-07 18:28:47 UTC
*** Bug 386929 has been marked as a duplicate of this bug. ***
Comment 48 palfrey 2007-01-07 18:28:58 UTC
*** Bug 385946 has been marked as a duplicate of this bug. ***
Comment 49 palfrey 2007-01-07 18:29:05 UTC
*** Bug 393894 has been marked as a duplicate of this bug. ***
Comment 50 Susana 2007-01-12 12:50:32 UTC
*** Bug 395723 has been marked as a duplicate of this bug. ***
Comment 51 Paolo Maggi 2007-01-14 14:48:43 UTC
*** Bug 396303 has been marked as a duplicate of this bug. ***
Comment 52 Felix Riemann 2007-01-16 10:18:01 UTC
*** Bug 397166 has been marked as a duplicate of this bug. ***
Comment 53 Paolo Maggi 2007-01-20 19:33:51 UTC
*** Bug 398816 has been marked as a duplicate of this bug. ***
Comment 54 Paolo Maggi 2007-01-21 13:03:40 UTC
*** Bug 399002 has been marked as a duplicate of this bug. ***
Comment 55 Mariano Suárez-Alvarez 2007-01-23 09:07:57 UTC
*** Bug 399562 has been marked as a duplicate of this bug. ***
Comment 56 André Klapper 2007-01-25 03:05:06 UTC
*** Bug 400197 has been marked as a duplicate of this bug. ***
Comment 57 André Klapper 2007-01-25 03:05:12 UTC
*** Bug 400410 has been marked as a duplicate of this bug. ***
Comment 58 Fabio Bonelli 2007-01-28 12:09:47 UTC
*** Bug 401652 has been marked as a duplicate of this bug. ***
Comment 59 Michael Chudobiak 2007-01-29 16:28:30 UTC
*** Bug 402142 has been marked as a duplicate of this bug. ***
Comment 60 Matthias Clasen 2007-01-30 18:50:42 UTC
Note to bugsquad: it would be very helpful to note if any of the recent dupes
are with gtk+ 2.10.8 or newer
Comment 61 Jens Granseuer 2007-02-05 19:19:15 UTC
*** Bug 404712 has been marked as a duplicate of this bug. ***
Comment 62 Alex Lancaster 2007-02-06 07:21:37 UTC
*** Bug 404823 has been marked as a duplicate of this bug. ***
Comment 63 Alex Lancaster 2007-02-10 08:02:41 UTC
*** Bug 406152 has been marked as a duplicate of this bug. ***
Comment 64 Susana 2007-02-13 11:17:51 UTC
*** Bug 407271 has been marked as a duplicate of this bug. ***
Comment 65 Susana 2007-02-14 12:08:05 UTC
*** Bug 407717 has been marked as a duplicate of this bug. ***
Comment 66 Michael Chudobiak 2007-02-15 20:14:24 UTC
*** Bug 369996 has been marked as a duplicate of this bug. ***
Comment 67 Michael Chudobiak 2007-02-15 20:14:25 UTC
*** Bug 366815 has been marked as a duplicate of this bug. ***
Comment 68 Priit Laes (IRC: plaes) 2007-02-15 20:41:48 UTC
*** Bug 397754 has been marked as a duplicate of this bug. ***
Comment 69 Michael Chudobiak 2007-02-16 12:35:39 UTC
*** Bug 408486 has been marked as a duplicate of this bug. ***
Comment 70 Christian Kirbach 2007-02-16 22:45:04 UTC
*** Bug 408426 has been marked as a duplicate of this bug. ***
Comment 71 Susana 2007-02-17 13:33:36 UTC
*** Bug 408743 has been marked as a duplicate of this bug. ***
Comment 72 Michael Chudobiak 2007-02-21 19:16:42 UTC
*** Bug 410496 has been marked as a duplicate of this bug. ***
Comment 73 palfrey 2007-02-23 10:06:54 UTC
*** Bug 411023 has been marked as a duplicate of this bug. ***
Comment 74 Alex Lancaster 2007-02-27 00:48:45 UTC
*** Bug 412328 has been marked as a duplicate of this bug. ***
Comment 75 Michael Chudobiak 2007-02-27 09:06:53 UTC
*** Bug 412431 has been marked as a duplicate of this bug. ***
Comment 76 Susana 2007-02-27 11:12:48 UTC
*** Bug 412497 has been marked as a duplicate of this bug. ***
Comment 77 Christian Kirbach 2007-03-06 20:13:12 UTC
*** Bug 415433 has been marked as a duplicate of this bug. ***
Comment 78 Christian Kirbach 2007-03-06 20:13:23 UTC
*** Bug 401952 has been marked as a duplicate of this bug. ***
Comment 79 Christian Kirbach 2007-03-06 22:59:48 UTC
*** Bug 415510 has been marked as a duplicate of this bug. ***
Comment 80 Alex Lancaster 2007-03-08 10:26:22 UTC
*** Bug 415926 has been marked as a duplicate of this bug. ***
Comment 81 Matthias Clasen 2007-03-10 00:44:18 UTC
Putting this in NEEDINFO for now. Please reopen if you see a confirmed duplicate with GTK+ 2.10.8 or newer
Comment 82 Pedro Villavicencio 2007-03-12 23:29:48 UTC
*** Bug 417634 has been marked as a duplicate of this bug. ***
Comment 83 Pedro Villavicencio 2007-03-13 13:16:04 UTC
*** Bug 417831 has been marked as a duplicate of this bug. ***
Comment 84 Michael Chudobiak 2007-03-16 11:31:34 UTC
*** Bug 418809 has been marked as a duplicate of this bug. ***
Comment 85 Sebastien Bacher 2007-03-18 19:24:16 UTC
Ubuntu bug with GTK 2.10.11 and a similar backtrace: https://launchpad.net/bugs/93240

Thread 1 (process 14774)

  • #0 strcmp
    from /lib/tls/i686/cmov/libc.so.6
  • #1 _gtk_file_system_model_path_do
    at gtkfilesystemmodel.c line 1169
  • #2 show_and_select_paths_finished_loading
    at gtkfilechooserdefault.c line 5879
  • #3 get_folder_cached_callback
    at gtkfilesystemgnomevfs.c line 1216
  • #4 execute_vfs_callbacks
    at gtkfilesystemgnomevfs.c line 3616
  • #5 execute_vfs_callbacks_idle
    at gtkfilesystemgnomevfs.c line 3635
  • #6 g_idle_dispatch
    at gmain.c line 3928
  • #7 IA__g_main_context_dispatch
    at gmain.c line 2045
  • #8 g_main_context_iterate
    at gmain.c line 2677
  • #9 IA__g_main_loop_run
    at gmain.c line 2881
  • #10 IA__gtk_main
    at gtkmain.c line 1177
  • #11 main
No symbol table info available.
Comment 86 Pedro Villavicencio 2007-03-22 00:09:33 UTC
*** Bug 420524 has been marked as a duplicate of this bug. ***
Comment 87 Susana 2007-03-28 11:57:01 UTC
*** Bug 422899 has been marked as a duplicate of this bug. ***
Comment 88 Pedro Villavicencio 2007-03-28 15:30:42 UTC
*** Bug 423769 has been marked as a duplicate of this bug. ***
Comment 89 Pedro Villavicencio 2007-03-28 15:30:50 UTC
*** Bug 422957 has been marked as a duplicate of this bug. ***
Comment 90 palfrey 2007-04-02 13:00:23 UTC
*** Bug 425041 has been marked as a duplicate of this bug. ***
Comment 91 palfrey 2007-04-07 15:06:50 UTC
*** Bug 422231 has been marked as a duplicate of this bug. ***
Comment 92 palfrey 2007-04-07 15:11:38 UTC
*** Bug 418749 has been marked as a duplicate of this bug. ***
Comment 93 Kjartan Maraas 2007-04-10 07:34:05 UTC
*** Bug 424849 has been marked as a duplicate of this bug. ***
Comment 94 Michael Chudobiak 2007-04-11 15:29:57 UTC
*** Bug 428668 has been marked as a duplicate of this bug. ***
Comment 95 Michael Chudobiak 2007-04-11 15:30:36 UTC
*** Bug 428654 has been marked as a duplicate of this bug. ***
Comment 96 Michael Chudobiak 2007-04-16 13:03:17 UTC
*** Bug 430060 has been marked as a duplicate of this bug. ***
Comment 97 palfrey 2007-04-16 18:37:39 UTC
*** Bug 430366 has been marked as a duplicate of this bug. ***
Comment 98 Pedro Villavicencio 2007-04-17 00:28:19 UTC
*** Bug 430480 has been marked as a duplicate of this bug. ***
Comment 99 Jonathan Matthew 2007-04-21 00:23:53 UTC
*** Bug 429849 has been marked as a duplicate of this bug. ***
Comment 100 palfrey 2007-04-27 10:39:31 UTC
*** Bug 433836 has been marked as a duplicate of this bug. ***
Comment 101 Sadrul Habib Chowdhury 2007-04-29 14:27:49 UTC
Created attachment 87237 [details]
test file

This bug can be easily reproduced using the attached source file, which produces the following backtrace:

(gdb) bt
  • #0 strcmp
    from /lib/i686/cmov/libc.so.6
  • #1 _gtk_file_system_model_path_do
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilesystemmodel.c line 1169
  • #2 show_and_select_paths_finished_loading
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilechooserdefault.c line 5893
  • #3 execute_callbacks
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilesystemunix.c line 658
  • #4 execute_callbacks_idle
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilesystemunix.c line 755
  • #5 g_source_is_destroyed
    from /usr/lib/libglib-2.0.so.0
  • #6 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #7 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #8 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #9 IA__gtk_main
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkmain.c line 1154
  • #10 main
  • #0 strcmp
    from /lib/i686/cmov/libc.so.6
  • #1 _gtk_file_system_model_path_do
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilesystemmodel.c line 1169
  • #2 show_and_select_paths_finished_loading
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilechooserdefault.c line 5893
  • #3 execute_callbacks
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilesystemunix.c line 658
  • #4 execute_callbacks_idle
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkfilesystemunix.c line 755
  • #5 g_source_is_destroyed
    from /usr/lib/libglib-2.0.so.0
  • #6 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #7 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #8 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #9 IA__gtk_main
    at /tmp/buildd/gtk+2.0-2.10.11/gtk/gtkmain.c line 1154
  • #10 main

Comment 102 Daniel Atallah 2007-05-03 04:00:42 UTC
I can recreate really easily this under GTK+ 2.10.11 on both Windows and amd64 linux.

It seems to be as simple as calling specifying a filename in a path that doesn't exist to `gtk_file_chooser_set_filename()`.

Comment 103 Christian Kirbach 2007-05-03 18:45:39 UTC
Daniel, we appreciate if you would attach a small test program causing the crash. thanks.
Comment 104 Priit Laes (IRC: plaes) 2007-05-04 05:53:37 UTC
Created attachment 87512 [details] [review]
gtkfilechooser-crash.patch

Back in February I added following patch to #397754 which fixed at least in my case, but it was marked as dupe against this bug. Readding, so it won't get lost...
Comment 105 Daniel Atallah 2007-05-04 14:44:41 UTC
(In reply to comment #103)
> Daniel, we appreciate if you would attach a small test program causing the
> crash. thanks.

It turns out that the scenario is slightly different than what I thought.

I can recreate it using the "test file" attachment using the following steps:

-Set the filename in gtk_file_chooser_set_filename() to any file (this file doesn't even have to exist). (e.g. "/tmp/file.dat")
-Set gtk_file_chooser_set_current_folder() to a completely different path (This needs to be an existing directory) (e.g. "/home/datallah/temp")

Once these are set, simply running the program is enough to crash it.

-D
Comment 106 Pedro Villavicencio 2007-05-19 15:15:32 UTC
*** Bug 439695 has been marked as a duplicate of this bug. ***
Comment 107 palfrey 2007-07-06 15:01:21 UTC
*** Bug 454162 has been marked as a duplicate of this bug. ***
Comment 108 Matthias Clasen 2007-07-07 23:37:50 UTC
(In reply to comment #104)
> Created an attachment (id=87512) [edit]
> gtkfilechooser-crash.patch
> 
> Back in February I added following patch to #397754 which fixed at least in my
> case, but it was marked as dupe against this bug. Readding, so it won't get
> lost...
> 


A very similar change was included in 2.10.12 and 2.11. 
It would be good to know if people are still seeing this crash with
2.10.12/13 or 2.11.
Comment 109 Sebastien Bacher 2007-08-23 22:36:45 UTC
no reply from the submitter and no new duplicate, closed as fixed
Comment 110 palfrey 2007-09-05 17:52:11 UTC
*** Bug 424319 has been marked as a duplicate of this bug. ***
Comment 111 Paolo Borelli 2007-09-07 08:06:17 UTC
*** Bug 474268 has been marked as a duplicate of this bug. ***