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 324227 - Gnome Terminal crashes on recreation of Default profile after renaming original Default profile to new name
Gnome Terminal crashes on recreation of Default profile after renaming origin...
Status: RESOLVED DUPLICATE of bug 499797
Product: gnome-terminal
Classification: Core
Component: general
2.8.x
Other other
: Normal major
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 342099 399046 402092 402283 461152 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-12-16 00:23 UTC by katokop1+bugbuddy
Modified: 2007-11-27 02:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
bug324227.diff (708 bytes, patch)
2005-12-19 11:14 UTC, Bart Martens
rejected Details | Review

Description katokop1+bugbuddy 2005-12-16 00:23:45 UTC
Distribution: Debian 3.1
Package: gnome-terminal
Severity: normal
Version: GNOME2.8.3 2.8.2
Gnome-Distributor: Debian
Synopsis: Gnome Terminal crashes on recreation of Default profile after renaming original Default profile to new name
Bugzilla-Product: gnome-terminal
Bugzilla-Component: general
Bugzilla-Version: 2.8.2
BugBuddy-GnomeVersion: 2.0 (2.8.1)
Description:
Description of the crash:


Steps to reproduce the crash:
1. 
2. 
3. 

Expected Results:


How often does this happen?


Additional Information:



Debugging Information:

Backtrace was generated from '/usr/bin/gnome-terminal'

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 3711)]
[New Thread 32769 (LWP 3714)]
[New Thread 16386 (LWP 3715)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0x407cec0b in waitpid () from /lib/libpthread.so.0

Thread 1 (Thread 16384 (LWP 3711))

  • #0 waitpid
    from /lib/libpthread.so.0
  • #1 ??
    from /usr/lib/libgnomeui-2.so.0
  • #2 ??
  • #3 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #4 __pthread_sighandler
    from /lib/libpthread.so.0
  • #5 <signal handler called>
  • #6 kill
    from /lib/libc.so.6
  • #7 pthread_kill
    from /lib/libpthread.so.0
  • #8 raise
    from /lib/libpthread.so.0
  • #9 raise
    from /lib/libc.so.6
  • #10 abort
    from /lib/libc.so.6
  • #11 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #12 g_log
    from /usr/lib/libglib-2.0.so.0
  • #13 g_assert_warning
    from /usr/lib/libglib-2.0.so.0
  • #14 terminal_app_edit_encodings
  • #15 g_cclosure_marshal_VOID
    from /usr/lib/libgobject-2.0.so.0
  • #16 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #17 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #18 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #19 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #20 gtk_dialog_response
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 gtk_dialog_new_with_buttons
    from /usr/lib/libgtk-x11-2.0.so.0
  • #22 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #23 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #24 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #26 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #27 gtk_button_clicked
    from /usr/lib/libgtk-x11-2.0.so.0
  • #28 _gtk_button_paint
    from /usr/lib/libgtk-x11-2.0.so.0
  • #29 _gtk_button_paint
    from /usr/lib/libgtk-x11-2.0.so.0
  • #30 _gtk_marshal_BOOLEAN__BOXED
    from /usr/lib/libgtk-x11-2.0.so.0
  • #31 g_cclosure_new_swap
    from /usr/lib/libgobject-2.0.so.0
  • #32 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #33 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #34 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #35 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #36 gtk_widget_send_expose
    from /usr/lib/libgtk-x11-2.0.so.0
  • #37 gtk_propagate_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #38 gtk_main_do_event
    from /usr/lib/libgtk-x11-2.0.so.0
  • #39 _gdk_events_queue
    from /usr/lib/libgdk-x11-2.0.so.0
  • #40 g_main_depth
    from /usr/lib/libglib-2.0.so.0
  • #41 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #42 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #43 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #44 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #45 main
  • #0 waitpid
    from /lib/libpthread.so.0




------- Bug moved to this database by unknown@gnome.bugs 2005-12-16 00:23 UTC -------


Unknown version 2.8.2 in product gnome-terminal.  Setting version to "2.8.x".
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here, unknown@gnome.bugs.
   Previous reporter was katokop1+bugbuddy@gmail.com.

Comment 1 Olav Vitters 2005-12-18 13:36:13 UTC
Unique stacktrace according to simple-dup-finder. Marking new.
Comment 2 Bart Martens 2005-12-19 11:14:45 UTC
Created attachment 56148 [details] [review]
bug324227.diff

The crash also happens with other profiles than "Default".  How to reproduce :
1. Open gnome-terminal
2. Create a new profile named "bart", works fine
3. Rename profile "bart" to "bart2"
4. Create a new profile named "bart", crashes

Note that between steps 3 and 4 the list of profiles in the menu option "Terminal->Change Profile" is not updated.

The patch disables renaming an existing profile.  Renaming a profile is not really needed, because it's very easy to create a new profile based on an old profile, and then delete the old profile.
Comment 3 Olav Vitters 2005-12-23 19:03:31 UTC
Thanks for the patch. However, if gnome-terminal crashes due to renaming, the cause should be fixed. The solution should not be to just disable whatever is crashing.
Comment 4 Guilherme de Siqueira Pastore 2006-03-04 17:35:53 UTC
Just as a comment, this is due to the fact that a profile only has its visible_name key updated when it is renamed, but the directory in gconf keeps the old name. There's no straight-forward fix for this, except for not having the directories the profile name (calling them profile_1, profile_2, etc).

I'm still thinking about the best way to solve this, and hence this will be left for 2.16.
Comment 5 Fabio Bonelli 2006-05-17 13:59:52 UTC
*** Bug 342099 has been marked as a duplicate of this bug. ***
Comment 6 Mariano Suárez-Alvarez 2007-01-29 23:38:23 UTC
*** Bug 402283 has been marked as a duplicate of this bug. ***
Comment 7 Mariano Suárez-Alvarez 2007-01-29 23:50:13 UTC
*** Bug 399046 has been marked as a duplicate of this bug. ***
Comment 8 Mariano Suárez-Alvarez 2007-01-30 17:58:27 UTC
*** Bug 402092 has been marked as a duplicate of this bug. ***
Comment 9 Joe Llywelyn Griffith Blakesley 2007-07-28 04:36:49 UTC
*** Bug 461152 has been marked as a duplicate of this bug. ***
Comment 10 Joe Llywelyn Griffith Blakesley 2007-07-28 14:33:37 UTC
At risk of possibly stating the obvious, this doesn't happen if I make a profile with the same name as one that was created and deleted in the same session, and renaming existing profiles doesn't seem to be affected.

Also, another minor bug that could be related: if I make two profiles with the same name in the same session, I don't get warned about the name clash on creating the second one.
Comment 11 Brian Cameron 2007-11-02 23:19:42 UTC
I notice that if I create a profile named "Test" and then create another profile named "Test", I get a pop-up that says "You already have a profile called "Test".  DO you want to create another profile with the same name?".  If I pick "Yes", I get a crash in gnome-terminal 2.20.  I see this warning echoed to the xterm terminal where I launched gnome-terminal:

** (gnome-terminal:2048): CRITICAL **: file terminal-profile.c: line 377: assertion `terminal_profile_lookup (name) == NULL' failed
Comment 12 Behdad Esfahbod 2007-11-27 02:56:06 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.


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