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 161843 - gnome-session-save crashes gnome-terminal
gnome-session-save crashes gnome-terminal
Status: RESOLVED DUPLICATE of bug 501635
Product: gnome-terminal
Classification: Core
Component: general
2.14.x
Other other
: High critical
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 146214 313732 336897 378983 415050 430243 462743 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-14 07:56 UTC by William Shubert
Modified: 2008-05-29 19:55 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
valgrind log of crash (10.99 KB, application/x-gzip)
2006-11-08 09:06 UTC, Tom Hughes
Details

Description William Shubert 2004-12-21 00:17:37 UTC
Distribution: Fedora Core release 3 (Heidelberg)
Package: gnome-terminal
Severity: normal
Version: GNOME2.8.0 unspecified
Gnome-Distributor: Red Hat, Inc
Synopsis: gnome-session-save crashes gnome-terminal
Bugzilla-Product: gnome-terminal
Bugzilla-Component: general
Bugzilla-Version: unspecified
BugBuddy-GnomeVersion: 2.0 (2.8.0)
Description:
Description of the crash:
I type "gnome-session-save" when I have 4 terminal windows, from 3
different profiles, open. Gnome terminal crashes. Same effect when I log
out and click "save session".

Steps to reproduce the crash:
1. Open 4 gnome-terminal windows in 3 different profiles. (Not sure how
necessary the profiles are, but it's the way I do it). I usually have 2
open & 2 iconified when I do this.
2. Run "gnome-session-save".
3. 

Expected Results:
gnome-terminal crashes.

How often does this happen?
I'll try a bunch more, in last version it was every time, but that may
have changed.

Additional Information:
This is similar to a bug I had in fedora core 2.


Debugging Information:

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

(no debugging symbols found)...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
(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 -151127840 (LWP 4170)]
[New Thread 96275376 (LWP 4204)]
[Thread debugging using libthread_db enabled]
[New Thread -151127840 (LWP 4170)]
[New Thread 96275376 (LWP 4204)]
[Thread debugging using libthread_db enabled]
[New Thread -151127840 (LWP 4170)]
[New Thread 96275376 (LWP 4204)]
(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)...0x005b77a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

Thread 1 (Thread -151127840 (LWP 4170))

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 strlen
    from /lib/tls/libc.so.6
  • #5 vfprintf
    from /lib/tls/libc.so.6
  • #6 vasprintf
    from /lib/tls/libc.so.6
  • #7 g_vasprintf
    from /usr/lib/libglib-2.0.so.0
  • #8 g_strdup_vprintf
    from /usr/lib/libglib-2.0.so.0
  • #9 g_print
    from /usr/lib/libglib-2.0.so.0
  • #10 terminal_app_edit_encodings
  • #11 _gnome_marshal_BOOLEAN__INT_ENUM_BOOLEAN_ENUM_BOOLEAN
    from /usr/lib/libgnomeui-2.so.0
  • #12 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_signal_has_handler_pending
    from /usr/lib/libgobject-2.0.so.0
  • #14 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #15 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #16 gnome_client_get_config_prefix
    from /usr/lib/libgnomeui-2.so.0
  • #17 _SmcProcessMessage
    from /usr/X11R6/lib/libSM.so.6
  • #18 IceProcessMessages
    from /usr/X11R6/lib/libICE.so.6
  • #19 gnome_href_set_label
    from /usr/lib/libgnomeui-2.so.0
  • #20 g_vasprintf
    from /usr/lib/libglib-2.0.so.0
  • #21 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #22 g_main_context_acquire
    from /usr/lib/libglib-2.0.so.0
  • #23 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #24 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #25 main




------- Bug moved to this database by unknown@bugzilla.gnome.org 2004-12-20 19:17 -------


Unknown platform unknown. Setting to default platform "Other".
Unknown milestone "unknown" in product "gnome-terminal".
   Setting to default milestone for this product, '---'
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here, unknown@bugzilla.gnome.org.
   Previous reporter was wms@igoweb.org.
Setting to default status "UNCONFIRMED".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Elijah Newren 2004-12-21 01:31:35 UTC
*** Bug 146214 has been marked as a duplicate of this bug. ***
Comment 2 William Shubert 2005-07-19 22:38:29 UTC
I'm the original submitter of this. If anybody has any questions or wants me to
run any tests, just let me know.

Has anybody been able to duplicate it yet? I'm worried that it's something
screwy about my gnome preferences or system configuration.
Comment 3 Kjartan Maraas 2005-08-15 22:28:19 UTC
Looks like something strange is going on here at least.
terminal_app_edit_encodings() never calls g_print() in the current sources at
least. Can you reproduce this using later releases? I can't reproduce this here
with 2.11.x at least.
Comment 4 Guillaume Desmottes 2005-08-18 13:29:30 UTC
*** Bug 313732 has been marked as a duplicate of this bug. ***
Comment 5 William Shubert 2005-08-25 23:50:48 UTC
Bug 313732 seems to show this bug more easily, and also on a newer version of
gnome (2.10.0 instead of 2.8.0). I need to use my system for work, and it is
risky enough to combine 2.11 gnome with older fedora-supplied packages that it
just isn't practical for me to try to reproduce now...but maybe with the
instructions on bug 313732 it would be easy for somebody else to test on 2.11?
Comment 6 Michele Baldessari 2005-08-26 09:15:28 UTC
For the record, I've just tried a couple of times to reproduce #313732 on a FC4
 box, and wasn't able to.
Comment 7 Kjartan Maraas 2005-09-20 11:37:53 UTC
I've tried without luck also. Guillaume, have you had a chance to try a later
release of vte?
Comment 8 Fabio Bonelli 2006-04-02 23:25:58 UTC
*** Bug 336897 has been marked as a duplicate of this bug. ***
Comment 9 William Shubert 2006-04-03 05:22:38 UTC
Thanks Fabio for your comment in bug 336897 - I never knew before how to install debugging symbols! I installed debugging symbols for gnome-terminal, gtk2, pango, glibc-common, glibc, and gnome-libs. If there is another library that would be useful let me know, but I think I got the ones that are relevant in this bug. Then I crashed it again, and here is the stack trace it gave (if I do this again, are stack traces better at attachments or comments?):

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

Using host libthread_db library "/lib/libthread_db.so.1".
`shared object read from target memory' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1208510800 (LWP 18212)]
[New Thread -1219920992 (LWP 18215)]
0x00782402 in __kernel_vsyscall ()

Thread 1 (Thread -1208510800 (LWP 18212))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 gnome_init_with_popt_table
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 vfprintf
    from /lib/libc.so.6
  • #5 vasprintf
    from /lib/libc.so.6
  • #6 g_vasprintf
    from /usr/lib/libglib-2.0.so.0
  • #7 g_strdup_vprintf
    from /usr/lib/libglib-2.0.so.0
  • #8 g_print
    from /usr/lib/libglib-2.0.so.0
  • #9 save_yourself_callback
    at terminal.c line 3483

Comment 10 Fabio Bonelli 2006-05-16 11:21:16 UTC
You are welcome William!

Stacktraces within comments are just fine, furthermore this stacktrace should be useful to determine the crash's cause, thanks. 
Comment 11 Fabio Bonelli 2006-09-28 11:40:37 UTC
William,

can you reproduce this with a recent version of GNOME?
Comment 12 William Shubert 2006-10-03 08:07:54 UTC
I am still running FC5 (with latest upgrades) and it happens all the time (every logout). That uses gnome 1.4.1.2.

It has been happening for years. Several times I've been told to try the newest version, it is never fixed, I hope you understand if I'm not willing to spend a few hours upgrading my gnome (always tricky without conflicting with other RPMs!) just to try again. :-(
Comment 13 Tom Hughes 2006-11-08 08:47:39 UTC
I have always found that gnome-terminal crashes when saving the session if there are too many terminal windows open. Here is a trace from gnome 2.16 from saving the session with 13 windows open:

Using host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 46912496407008 (LWP 4824)]
[New Thread 1084229952 (LWP 4829)]
0x000000382700d96f in __libc_waitpid (pid=5337, stat_loc=0x7fff95fffadc, 
    options=0) at gmarshal.c:614
614	{

Thread 1 (Thread 46912496407008 (LWP 4824))

  • #0 __libc_waitpid
    at gmarshal.c line 614
  • #1 libgnomeui_segv_handle
    at gnome-ui-init.c line 870
  • #2 g_cclosure_marshal_VOID__OBJECT
    at gmarshal.c line 614
  • #3 ??

Comment 14 Tom Hughes 2006-11-08 09:06:54 UTC
Created attachment 76196 [details]
valgrind log of crash

This is a valgrind log of gnome-terminal showing what happens when I try and save a sessions with lots of windows open - note the writes in save_yourself_callback which are beyond the end of of buffer which has been allocated on the stack with calloc. The stack is probably getting trashed as a result which will limit the information available in a normal backtrace.
Comment 15 Teppo Turtiainen 2007-01-28 10:47:57 UTC
*** Bug 378983 has been marked as a duplicate of this bug. ***
Comment 16 palfrey 2007-04-16 14:32:49 UTC
*** Bug 430243 has been marked as a duplicate of this bug. ***
Comment 17 palfrey 2007-04-26 16:54:26 UTC
*** Bug 415050 has been marked as a duplicate of this bug. ***
Comment 18 Iestyn Pryce 2007-08-02 17:19:34 UTC
*** Bug 462743 has been marked as a duplicate of this bug. ***
Comment 19 Christian Persch 2008-05-29 19:55:44 UTC

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