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 387074 - Crashes when gtk_file_chooser_set_uri() with a remote URI before calling gtk_file_chooser_set_local_only
Crashes when gtk_file_chooser_set_uri() with a remote URI before calling gtk_...
Status: RESOLVED DUPLICATE of bug 397754
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.10.x
Other All
: Normal critical
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-12-18 07:01 UTC by Cameron Patrick
Modified: 2007-01-26 07:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Cameron Patrick 2006-12-18 07:01:06 UTC
Steps to reproduce:
This was originally observed with the PyGTK bindings, but I'm pretty sure it's not PyGTK specific.  The code that caused the seg fault looked like:

        dialog.set_uri(last_uri)
        dialog.set_local_only(False)

Reversing the order of the two lines fixed the problem.

This ordering requirement should either be documented, or the crash fixed.

Stack trace:
  • #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 5876
  • #3 get_folder_cached_callback
    at gtkfilesystemgnomevfs.c line 1189
  • #4 execute_vfs_callbacks
    at gtkfilesystemgnomevfs.c line 3591
  • #5 execute_vfs_callbacks_idle
    at gtkfilesystemgnomevfs.c line 3610
  • #6 g_idle_dispatch
    at gmain.c line 3926
  • #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_dialog_run
    at gtkdialog.c line 996
  • #11 init_gtk
    from /var/lib/python-support/python2.4/gtk-2.0/gtk/_gtk.so
  • #12 PyEval_EvalFrame
  • #13 PyEval_EvalCodeEx

(the later frames look to be largely irrelevant)

Other information:
Comment 1 Teppo Turtiainen 2007-01-26 07:00:28 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

Marking as a duplicate of a newer bug with a patch.


*** This bug has been marked as a duplicate of 397754 ***