[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reproducible gtk crash

From: Jan D.
Subject: Re: Reproducible gtk crash
Date: Sun, 21 Nov 2004 11:38:46 +0100
User-agent: Mozilla Thunderbird 0.9 (X11/20041103)

Simon Josefsson wrote:

I get a different back trace from each crash.  This is fresh CVS
(thanks to Stefan and Luc for making CVS build again) with CFLAGS=-g.
Below is a few runs of emacs under gdb.  It is completely
reproducible.  I suspect some Debian GTK/Gnome package update...

Any ideas?  Thanks.

address@hidden:~/src/emacs/src$ gdb ./emacs
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library 

DISPLAY = :0.0
TERM = xterm
Breakpoint 1 at 0x814394c: file emacs.c, line 442.
Breakpoint 2 at 0x8118008: file xterm.c, line 7781.
(gdb) cd ~
Working directory /home/jas.
(gdb) r
Starting program: /home/jas/src/emacs/src/emacs -geometry 80x40+0+0
Detaching after fork from child process 5851.
Detaching after fork from child process 5852.
Detaching after fork from child process 5853.
Detaching after fork from child process 5854.
[Thread debugging using libthread_db enabled]
[New Thread 1083202432 (LWP 5848)]
[New Thread 1106017200 (LWP 5874)]
[New Thread 1106545584 (LWP 5876)]

libgnomevfs-ERROR **: file gnome-vfs-cancellation.c: line 133 
(gnome_vfs_cancellation_cancel): assertion failed: 
[Switching to Thread 1106545584 (LWP 5876)]

Breakpoint 1, abort () at emacs.c:442
442       kill (getpid (), SIGABRT);
(gdb) bt
#0  abort () at emacs.c:442
#1  0x40480b57 in g_logv () from /usr/lib/libglib-2.0.so.

Ouch, this is nasty. When running Gnome the new GTK file dialog uses gnome-vfs as a backend, and gnome-vfs creates some threads. But malloc in Emacs can't handle different threads so we crash. One workaround is to set the use-old-gtk-file-dialog variable to t (it looks quite nice on Debian testing). But for a proper solution we must lock and unlock threads in malloc. I'll look into it further.

Thanks for the traces.

   Jan D.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]