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 132693 - Infinite recursion in find_and_ref_path
Infinite recursion in find_and_ref_path
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other All
: High major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-01-27 19:21 UTC by Morten Welinder
Modified: 2011-02-04 16:16 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Morten Welinder 2004-01-27 19:21:58 UTC
With path=="." and model->root_path=="/", I don't seem to be getting any
progress in find_and_ref_path and it ends up calling itself with the same
arguments recursively.

This arose deep down in the call chain from trying to call
gtk_file_chooser_set_filename for a file chooser.
Comment 1 Federico Mena Quintero 2004-01-27 23:49:39 UTC
Morten, should we close this as invalid after our discussion on irc?
Comment 2 Morten Welinder 2004-01-28 02:00:09 UTC
No.  At the very least, it should become a doc bug for the
_set_filename function.  It's a bit surprising that non-absolute
filenames can cause such loops.
Comment 3 Owen Taylor 2004-01-28 23:05:27 UTC
Infinite recursion in passing a non-absolute filename is 
certainly not acceptable, even if documented.

 g_return_if_fail (g_path_is_absolute(), ...) 

would be the minimum we need to do here.
Comment 4 Federico Mena Quintero 2004-01-30 18:27:53 UTC
Fixed on CVS.
Comment 5 Owen Taylor 2004-02-05 14:51:51 UTC
*** Bug 133463 has been marked as a duplicate of this bug. ***