From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Daniel Hackney" Newsgroups: gmane.emacs.bugs Subject: Re: Segfault in Emacs 23 with multi-tty Date: Wed, 12 Dec 2007 15:45:24 -0500 Message-ID: References: <200712091816.lB9IGXw3007631@oogie-boogie.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197492359 24933 80.91.229.12 (12 Dec 2007 20:45:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2007 20:45:59 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: "Dan Nicolaescu" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 12 21:46:10 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J2YSp-0003H8-1G for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2007 21:45:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2YSX-0006aI-1i for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Dec 2007 15:45:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2YSQ-0006ZV-1p for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:45:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2YSN-0006YW-7r for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:45:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2YSM-0006YN-Vp for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:45:27 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.169]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2YSM-0000pF-HN for bug-gnu-emacs@gnu.org; Wed, 12 Dec 2007 15:45:26 -0500 Original-Received: by ug-out-1314.google.com with SMTP id a2so746306ugf.48 for ; Wed, 12 Dec 2007 12:45:25 -0800 (PST) Original-Received: by 10.78.136.9 with SMTP id j9mr1382774hud.70.1197492324738; Wed, 12 Dec 2007 12:45:24 -0800 (PST) Original-Received: by 10.78.52.10 with HTTP; Wed, 12 Dec 2007 12:45:24 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17164 Archived-At: On 12/12/07, Daniel Hackney wrote: > I tried the current emacs-unicode-2 branch which I got using git from > git://git.sv.gnu.org/emacs.git, using the commit > 65a977059896b030055ff2b39513c32962519b6b. I compiled with > > $ ./configure --prefix=/home/frochild/Projects/emacs-bin --with-gtk > --with-xft CFLAGS="-O0 -g" > > as recommended. > > It did not segfault, but when closing the GTK window, the following was written > to stderr of the server instance: > > -- SNIP -- I tried again with the font server, and did get it to segfault. This time I configured with $ ./configure --prefix=/home/frochild/Projects/emacs-bin --with-gtk --with-xft CFLAGS="-O0 -g" --enable-font-backend And ran the server with $ emacs -q -nw --eval "(setq server-name \"editor\")" -f server-start --enable-font-backend And the client with: $ emacsclient -s editor -c It opened a window successfully, but when I ran "save-buffers-kill-terminal", the server died with the following backtrace: (gdb) where #0 0x081183e3 in x_delete_terminal (terminal=0x8526838) at xterm.c:11721 #1 0x08063e60 in Fdelete_frame (frame=147149636, force=138254537) at frame.c:1538 #2 0x081d954b in Ffuncall (nargs=2, args=0xbfe7cb50) at eval.c:3027 #3 0x0821322e in Fbyte_code (bytestr=143782139, vector=146664764, maxdepth=48) at bytecode.c:679 #4 0x081d9d24 in funcall_lambda (fun=141123292, nargs=1, arg_vector=0xbfe7ce84) at eval.c:3211 #5 0x081d97b3 in Ffuncall (nargs=2, args=0xbfe7ce80) at eval.c:3070 #6 0x0821322e in Fbyte_code (bytestr=144008315, vector=144391396, maxdepth=24) at bytecode.c:679 #7 0x081d9d24 in funcall_lambda (fun=145145876, nargs=2, arg_vector=0xbfe7d1a4) at eval.c:3211 #8 0x081d97b3 in Ffuncall (nargs=3, args=0xbfe7d1a0) at eval.c:3070 #9 0x0821322e in Fbyte_code (bytestr=136936147, vector=136936164, maxdepth=32) at bytecode.c:679 #10 0x081d9d24 in funcall_lambda (fun=136936100, nargs=1, arg_vector=0xbfe7d514) at eval.c:3211 #11 0x081d97b3 in Ffuncall (nargs=2, args=0xbfe7d510) at eval.c:3070 #12 0x081d4e87 in Fcall_interactively (function=143574953, record_flag=138254537, keys=138292956) at callint.c:841 #13 0x0815ac87 in Fcommand_execute (cmd=143574953, record_flag=138254537, keys=138254537, special=138254537) at keyboard.c:10479 #14 0x0814c0b0 in command_loop_1 () at keyboard.c:1941 #15 0x081d6ff2 in internal_condition_case (bfun=0x814a915 , handlers=138298769, hfun=0x814a2b9 ) at eval.c:1493 #16 0x0814a66e in command_loop_2 () at keyboard.c:1398 #17 0x081d6ad8 in internal_catch (tag=138293617, func=0x814a64b , arg=138254537) at eval.c:1229 #18 0x0814a624 in command_loop () at keyboard.c:1377 #19 0x08149ec6 in recursive_edit_1 () at keyboard.c:986 #20 0x0814a034 in Frecursive_edit () at keyboard.c:1048 #21 0x081488a7 in main (argc=8, argv=0xbfe7e034) at emacs.c:1808 Hopefully this is a more useful backtrace. The same thing happened if Emacs was launched without "--enable-font-backend", so it seems to be a problem with the configure flag. -- Daniel M. Hackney