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 473837 - gthumb crashes when renaming a folder you just browsed
gthumb crashes when renaming a folder you just browsed
Status: RESOLVED DUPLICATE of bug 492169
Product: gthumb
Classification: Other
Component: general
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2007-09-05 08:27 UTC by Christophe Bisière
Modified: 2007-11-01 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christophe Bisière 2007-09-05 08:27:17 UTC
1. launch gthumb
2. open a folder (e.g. "foo") containing at least one image
3. go back to the parent folder
4. right click on the folder name ("foo")
5. select "Rename..."
6. type anything (e.g. "bar")
7. the folder is renamed, but gthumb crashes

gthumb-2.10 svn rev 1988, trunk svn rev 1989. 

gthumb 3:2.10.2-0ubuntu1 on Ubuntu 7.04 is OK.

Ciao,

Christophe
Comment 1 Michael Chudobiak 2007-09-05 11:59:14 UTC
I can't reproduce this on my systems (FC6 and F7).

It's probably related to bug 470493.

Any backtraces?


- Mike
Comment 2 Christophe Bisière 2007-09-05 19:49:31 UTC
Mike,

Here it is:

----------------------------------------------------------------------------
  • #0 gth_browser_notify_file_rename
    at gth-browser.c line 5855
  • #1 monitor_directory_renamed_cb
    at gth-browser.c line 5902
  • #2 gthumb_marshal_VOID__STRING_STRING
    at gthumb-marshal.c line 550
  • #3 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #4 ??
    from /usr/lib/libgobject-2.0.so.0
  • #5 ??
  • #6 ??
----------------------------------------------------------------------------

I traced the problem back to the following point. Have a look at gth-browser.c:5852 in current trunk. What happens is that after the call:

	gth_file_list_delete (priv->file_list, new_name);
 
the variable old_name (yes, old_name) is corrupted. Not the easiest kind of bug to track!! 

I did not find anything weird in gth_file_list_delete () yet.

Christophe

Comment 3 Christophe Bisière 2007-09-08 19:50:02 UTC
Mike,

Ho, my bad. I forgot that you have to select the image (after completing step 2) to trigger the bug.

Christophe
Comment 4 Christophe Bisière 2007-09-09 10:56:13 UTC
I did a bisection. The bug first shows up in gthumb-2-10 svn rev 1969:

http://svn.gnome.org/viewcvs/gthumb?view=revision&revision=1969

Christophe
Comment 5 Michael Chudobiak 2007-11-01 12:52:15 UTC

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