Closed Bug 449642 Opened 16 years ago Closed 16 years ago

Clicking "Don't Save" in Composer crashes [@ g_type_check_is_value_type - g_value_type_compatible ... gtk_container_remove ... gtk_object_destroy ... gdk_display_close]

Categories

(Core :: Widget: Gtk, defect)

1.9.0 Branch
x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: henry.nestler, Unassigned)

References

()

Details

(Keywords: crash)

Crash Data

Attachments

(4 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.6) Gecko/20070730 SUSE/2.0.0.6-25 Firefox/2.0.0.6
Build Identifier: 2008072418

Clicking "Don't save" after cancel the Mail composer crashed Thunderbird.


Reproducible: Always

Steps to Reproduce:
1.open the mail composer
2.Use Menu "File", "Close"
3.in the Message box select "don't save"

Actual Results:  
Thunderbird ends without any message


Expected Results:  
Close the composer and return to the main view.


Linux 64bit SuSE 10.3 system, running the 32bit German prebuild from ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/3.0a2-candidates/build1/thunderbird-3.0a2.de.linux-i686.tar.bz2

uname -a:
Linux hn-dt 2.6.26-rc9-kvm71 #6 SMP Sat Aug 2 18:17:01 CEST 2008 x86_64 x86_64 x86_64 GNU/Linux

At the first start was seen such lines from starting console:
LoadPlugin: failed to initialize shared library libXt.so [libXt.so: Can't open shard Lib (free translated from german)

LoadPlugin: failed to initialize shared library /home/hn/.mozilla/plugins/npwrapper.libflashplayer.so [/home/hn/.m                  ozilla/plugins/npwrapper.libflashplayer.so: wrong ELF class: ELFCLASS64]

Think, non related here. It comes from previous installed flash wrapper from 32 to 64 bit for Firefox.
So you open Composer, clicked Close, then don't save, and you got a crash? If so, this is critical. Have you tried in Safe Mode?
Severity: normal → critical
Keywords: crash
Summary: Compose mail cancel without save crashes → Clicking "Don't Save" in Composer crashes
Yes it. Start Thunderbird, click icon "new mail", use menu "File" and "close" (or key CTRL-q). In the message box click the button "Don't save". This closed also the main thread.

Today I was able to catch some messages from command prompt. But such messages comes not every time.

[ Process PID=7423 runs in 32 bit mode. ]
(thunderbird-bin:7423): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
(thunderbird-bin:7423): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(thunderbird-bin:7423): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
(thunderbird-bin:7423): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(thunderbird-bin:7423): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
(thunderbird-bin:7423): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed
(thunderbird-bin:7423): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
(thunderbird-bin:7423): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed
(thunderbird-bin:7423): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
(thunderbird-bin:7423): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed
(thunderbird-bin:7423): GLib-GObject-WARNING **: gsignal.c:2180: invalid unclassed object pointer for value type `GdkScreen'
(thunderbird-bin:7423): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
(thunderbird-bin:7423): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed
(thunderbird-bin:7423): GLib-GObject-WARNING **: gsignal.c:2180: invalid unclassed object pointer for value type `GdkScreen'
(thunderbird-bin:7423): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
[ Process PID=7417 runs in 64 bit mode. ]

If anybody needs an output from "strace -ff -o ...", I can do it. It creates 24 files with total size of ~4 MB. But I not see any crash or exception.

PID=7417 is the script run-mozilla.sh. All other files are executed in 32 bit mode. All Task exits with "exit(0)".

The option  -safe-mode  no effect.
The libflashplayer.so I have disabled by the while in the Extension menu.

More things:
Exactly same output shows, if I press the key CTRL-q directly after start of Thunderbird (suggest from main menu "file" "exit").

Henry
Same results with recent nightly build:

Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1a2pre) Gecko/20080813030431 Shredder/3.0b1pre
Version: unspecified → Trunk
Version: Trunk → unspecified
Henry, please can you provide a crash report id. More details on this process can be found here:

http://support.mozilla.com/en-US/kb/Mozilla+Crash+Reporter

When it says to put about:crashes in the location bar, instead go to the Preferences window, and on the General page, set about:crashes as your start page. Then exit preferences and select "Mail Start Page" under the Go menu. That will bring up the page of crash ids, which we need here to be able to resolve this issue.
(In reply to comment #4)
The Crash Reporter don't catch this.

Thunderbird ends without any message. All task simply terminates.
Henry, no report with most recent nightly?
Crash Dump from closing composer with CTRL-Q
From the Error Console I found, that libmozgnome.so was not loaded. Some of the 32 bit libraries was missing:
        libgnome-2.so.0 => not found
        libpopt.so.0 => not found
        libbonobo-2.so.0 => not found
        libbonobo-activation.so.4 => not found

I have installed these libs today:
        libgnome-32bit-2.20.0-7
        popt-32bit-1.7-368
        libbonobo-32bit-2.20.0-5

Have checked all lib*.so in the Thunderbird install directory and in components. All dependency are solved now.

I was thinking, this solved the problem. The steps from initial does no longer terminate Thunderbird directly. Crash Report poped up now, if I manualy exit Thunderbird later. I have checked many often and can reproduced it in same way: If I do steps from initial report, then Thinderbird triggers the Crash Report on exit.
interesting.  

bp-4b2358d1-0e51-0e79-235ccecb-030d8522 not found at crash-stats.mozilla.com
did crash actually submit? see http://kb.mozillazine.org/Breakpad#Viewing_reports
Now, I have news with different steps. The different is, that I use "exit"
instead "quit" from the composer menu.

Steps to Reproduce:
1.open the mail composer
2.Use Menu "File", "exit" (CTRL-Q)
3.in the Message box select "don't save"

Actual Results:
Crash Reporter popped up.
Sending report fails. (I will fill into another report.)
I attached the dump as "Crash Report 4b2358d1-0e51-0e79-235ccecb-030d8522.dmp"
in comment #7

This are the contens from 4b2358d1-0e51-0e79-235ccecb-030d8522.extra:
Theme=classic/1.0
StartupTime=1223045844
ServerURL=https://crash-reports.mozilla.com/submit
Add-ons={972ce4c6-7e08-4474-a285-3208198ce6fd}:2.0
ProductName=Thunderbird
UserID=6da86185-742c-a0ee-3149-3d16e8380a03
BuildID=20081003030503
Version=3.0b1pre
InstallTime=1223037837
CrashTime=1223045881
SecondsSinceLastCrash=2328

Have reproduced 3 times, 2x the Crash Repoter catched it, 1x it does simple
terminate all Thunderbird task with same messages as in comment #2.

Version from About box:
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.1b1pre) Gecko/20081003
Shredder/3.0b1pre

Installed file:
thunderbird-3.0b1pre.de.linux-i686.tar.bz2
For steps from comment #10 a crash dump was submitted as
Crash ID: bp-9bd04db3-9171-11dd-9ce5-0013211cbf8a

This was a English version from BuildID=20081003030503
After start of Thunderbird, I only pressed keys CTRL-q, no other mouse or menu actions.
Crash ID: bp-67dbcc94-9177-11dd-bf91-001cc45a2ce4

On the console have this messages:
hn@hn-dt:/usr/local/thunderbird-20081003> ./thunderbird

(thunderbird-bin:6659): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(thunderbird-bin:6659): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(thunderbird-bin:6659): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(thunderbird-bin:6659): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(thunderbird-bin:6659): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(thunderbird-bin:6659): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

(thunderbird-bin:6659): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(thunderbird-bin:6659): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

(thunderbird-bin:6659): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(thunderbird-bin:6659): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed

(crashreporter:6669): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed

(crashreporter:6669): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed

(crashreporter:6669): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(In reply to comment #12)
> After start of Thunderbird, I only pressed keys CTRL-q, no other mouse or menu
> actions.

Crash ID: bp-6821f4fd-930d-11dd-9765-001a4bd43e5c
from BuildID=20081003121803

Interesting:
If I use the menu File Quit (not the hot key), then does never crash. I can Quit via menu 10x and mouse without crash. If I use hotkey CTRL-q it 7x crashes of 10x starts.
Signature	libgobject-2.0.so.0.1400.1@0x25809
UUID	6821f4fd-930d-11dd-9765-001a4bd43e5c
Time	2008-10-05 11:44:04-07
Uptime	5
Product	Thunderbird
Version	3.0a3
Build ID	20081003121803
OS	Linux
OS Version	0.0.0 Linux 2.6.26-rc9-kvm71 #6 SMP Sat Aug 2 18:17:01 CEST 2008 x86_64 GNU/Linux
CPU	x86
CPU Info	GenuineIntel family 10 model 15 stepping 6
Crash Reason	SIGSEGV
Crash Address	0xf78d1809
Comments	CTRL-Q after start, no other mouse or menu actions, see also Bug 449642 Comment #12
Crashing Thread
Frame 	Module 	Signature [Expand] 	Source
0 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x25809 	
1 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x2b3a7 	
2 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0xdea1 	
3 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1e203 	
4 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1e988 	
5 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x26ab7b 	
6 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x26acb6 	
7 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x6d0cf 	
8 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0xaebe6 	
9 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x26acee 	
10 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x6913e 	
11 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0xaebe6 	
12 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x26acee 	
13 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x26ea6b 	
14 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x277fc7 	
15 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x69384 	
16 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x160d9 	
17 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x81f8 	
18 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x9918 	
19 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1c63b 	
20 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1e63e 	
21 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1e988 	
22 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0xaf413 	
23 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x2732ac 	
24 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0xbf2f 	
25 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x16d1cd 	
26 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x6913e 	
27 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0xaea06 	
28 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0xaf32f 	
29 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x282f60 	
30 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x16bce 	
31 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x81f8 	
32 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x9918 	
33 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1cff1 	
34 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1e63e 	
35 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0x1e988 	
36 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x16d4c0 	
37 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x2732d0 	
38 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x27fc45 	
39 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0xbf2f 	
40 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x16d1cd 	
41 	libgtk-x11-2.0.so.0.1200.0 	libgtk-x11-2.0.so.0.1200.0@0x224a33 	
42 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0xbbfa 	
43 	libglib-2.0.so.0.1400.1 	libglib-2.0.so.0.1400.1@0x1b787 	
44 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0xdcef 	
45 	libgdk-x11-2.0.so.0.1200.0 	libgdk-x11-2.0.so.0.1200.0@0x15a60 	
46 	libgdk-x11-2.0.so.0.1200.0 	libgdk-x11-2.0.so.0.1200.0@0x3791f 	
47 	libgobject-2.0.so.0.1400.1 	libgobject-2.0.so.0.1400.1@0xbbfa 	
48 	libgdk-x11-2.0.so.0.1200.0 	libgdk-x11-2.0.so.0.1200.0@0x16324 	
49 	thunderbird-bin 	MOZ_gdk_display_close 	toolkit/xre/nsAppRunner.cpp:2441
50 	thunderbird-bin 	XRE_main 	toolkit/xre/nsAppRunner.cpp:3375
51 	thunderbird-bin 	main 	nsMailApp.cpp:103
52 	libc-2.6.1.so 	libc-2.6.1.so@0x15fdf 	

you'll need a symbol'd build and a debugger....
Component: Message Compose Window → Widget: Gtk
Product: Thunderbird → Core
QA Contact: message-compose → gtk
Version: unspecified → 1.9.0 Branch
(In reply to comment #14)
> you'll need a symbol'd build and a debugger....

I have not symbol files for all this libraries, and not able to build all this my self. It is a 64 bit running system, and building 32 bit applications is very complicated.

Debugger and objdump are no problems.

> 0     libgobject-2.0.so.0.1400.1     libgobject-2.0.so.0.1400.1@0x25809

Would a stack list with function names and offset help?
For example
... libgobject-2.0.so.0.1400.1@g_type_check_is_value_type+0x50
(In reply to comment #14)
Symbol names added to frames of Crash ID bp-6821f4fd-930d-11dd-9765-001a4bd43e5c

Names are decoded via "objdump -T" within a tricky script. Script can get from http://www.henrynestler.com/mozilla-crash-frames-decode.sh
Attached file Backtrace from gdb
Pressed key ctrl-q directly after thunderbird started.
Version=3.0a3, BuildID=20081006094447

Last message from gdb:
Program received signal SIGSEGV, Segmentation fault.
0xf786a809 in IA__g_type_check_is_value_type (type=157449256) at gtype.c:3245
(In reply to comment #17)
(In reply to comment #17)
Attachment #342736 - Attachment mime type: text/x-csrc → text/plain
Comment on attachment 341620 [details]
Crash Report 4b2358d1-0e51-0e79-235ccecb-030d8522.dmp

Is obsolete, have on crash-stats now.
Attachment #341620 - Attachment is obsolete: true
This seems me the same bug on a 32bit system:
bp-6d6b991c-7adb-11dd-b4c3-001321b13766
Summary: Clicking "Don't Save" in Composer crashes → Clicking "Don't Save" in Composer crashes [@ g_type_check_is_value_type - g_value_type_compatible ... gtk_container_remove ... gtk_object_destroy ... gdk_display_close]
Henry, does this still fail for you in the same way?  Been so many changes.  

sp3000, do you see this also?
Have many days not seen this. The last was bp-e5ea64e1-ab9e-11dd-b3d7-001321b13766 with Build ID 20081006094447.

Today have extra checked the open - exit scenes. It never has crashed for 20 loops. I close this now with "works for me".

Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.1b3pre) Gecko/20081127 Shredder/3.0b1pre
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Crash Signature: [@ g_type_check_is_value_type - g_value_type_compatible ... gtk_container_remove ... gtk_object_destroy ... gdk_display_close]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: