From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#17771: 24.3.91; SIGSEGV in cleanup_vector Date: Fri, 13 Jun 2014 16:13:42 +0200 Message-ID: <87d2ec7v8p.fsf@rosalinde.fritz.box> References: <874mzp896b.fsf@rosalinde.fritz.box> <83vbs5w3h7.fsf@gnu.org> <87zjhh6su4.fsf@rosalinde.fritz.box> <83tx7pvw61.fsf@gnu.org> <87ppid6l0x.fsf@rosalinde.fritz.box> <83ppidvsyx.fsf@gnu.org> <87lht16ii3.fsf@rosalinde.fritz.box> <83mwdgx6t4.fsf@gnu.org> <87ha3o7w68.fsf@rosalinde.fritz.box> <83lht0x65z.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402668938 18094 80.91.229.3 (13 Jun 2014 14:15:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Jun 2014 14:15:38 +0000 (UTC) Cc: 17771@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 13 16:15:30 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WvSGJ-0003b7-VB for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 16:15:24 +0200 Original-Received: from localhost ([::1]:59401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvSGI-0008Ry-TG for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jun 2014 10:15:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvSG7-0008HL-PV for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 10:15:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvSG0-0005Uv-Qw for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 10:15:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvSG0-0005Uj-Oa for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 10:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WvSG0-00033S-3c for bug-gnu-emacs@gnu.org; Fri, 13 Jun 2014 10:15:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jun 2014 14:15:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17771 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17771-submit@debbugs.gnu.org id=B17771.140266885311614 (code B ref 17771); Fri, 13 Jun 2014 14:15:04 +0000 Original-Received: (at 17771) by debbugs.gnu.org; 13 Jun 2014 14:14:13 +0000 Original-Received: from localhost ([127.0.0.1]:46751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvSF7-00031C-0x for submit@debbugs.gnu.org; Fri, 13 Jun 2014 10:14:13 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:60840) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WvSF1-00030P-2k for 17771@debbugs.gnu.org; Fri, 13 Jun 2014 10:14:07 -0400 Original-Received: from rosalinde.fritz.box ([89.245.69.84]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MCLx3-1X40oO16Gn-00987J; Fri, 13 Jun 2014 16:13:57 +0200 In-Reply-To: <83lht0x65z.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Jun 2014 16:58:32 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) X-Provags-ID: V03:K0:O5zM7B7jy8391X0fQOjQrZWiTtIyxiCy4FIzZqqDxZPP1lMn8Tb ACdQcldl+tSceNd2q1xRkYGExxJLBMNZpMA8ONNzucTXnCvNZn/IqbbdEwHdpOOOywcXVzS 3azv/SR4AAkdlRbmZggIUPhLPPEJRcDBzF3ZlztmI/otqM4oyQ2nb8cGqjgdi/wJYNGqcEe wlmUUQWWIK6rHOwKUcJzg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90336 Archived-At: On Fri, 13 Jun 2014 16:58:32 +0300 Eli Zaretskii wrote: >> > IOW, the font driver is NULL. >> >> Could that be due to my typing `C-g'? > > It evidently is. My current theory is that the font driver was not > fully set up, before Emacs got interrupted by C-g. > >> If I don't do that, the file does get displayed. But `C-g' >> shouldn't make Emacs crash. Do you see what the problem is, or can >> I provide further information? > > The immediate problem is clearly that we dereference a NULL pointer. > > I installed a trivial workaround for that in r117235 on the emacs-24 > branch. The diffs are below. Can you try this and see if the problem > is solved? It's possible that the real problem is somewhere else, in > which case you will probably see it when you apply the patch. With the patch, Emacs still crashes with the same recipe, but the first frame of backtrace is different (looks like not in Emacs): Program received signal SIGSEGV, Segmentation fault. 0x0000000000c260b2 in ?? () (gdb) bt full #0 0x0000000000c260b2 in ?? () No symbol table info available. #1 0x00000000005aa580 in cleanup_vector (vector=0x3dd52c8) at ../../../../bzr/emacs/emacs-24/src/alloc.c:2935 drv = 0x3dd5130 #2 0x00000000005aa686 in sweep_vectors () at ../../../../bzr/emacs/emacs-24/src/alloc.c:2974 total_bytes = 140737488344592 free_this_block = false nbytes = 1048 block = 0x3dd4680 bprev = 0xbf1060 lv = 0x6282a3 lvprev = 0xbf2070 vector = 0x3dd52c8 next = 0x3dd52c8 #3 0x00000000005b0141 in gc_sweep () at ../../../../bzr/emacs/emacs-24/src/alloc.c:6721 No locals. #4 0x00000000005ae1ac in Fgarbage_collect () at ../../../../bzr/emacs/emacs-24/src/alloc.c:5650 nextb = 0x0 stack_top_variable = 0 '\000' i = 1619 message_p = true count = 3 start = {tv_sec = 1402668198, tv_nsec = 144021215} retval = 12738738 tot_before = 0 #5 0x00000000005374b1 in maybe_gc () at ../../../../bzr/emacs/emacs-24/src/lisp.h:4564 No locals. #6 0x00000000005cda00 in Ffuncall (nargs=4, args=0x7fffffffd970) at ../../../../bzr/emacs/emacs-24/src/eval.c:2766 fun = 5936534 original_fun = 140737488345376 funcar = 12765552 numargs = 3 lisp_numargs = 9258817 ---Type to continue, or q to quit--- val = 140737488345424 internal_args = 0xc260b2 i = 9258817 #7 0x00000000005cd6f2 in call3 (fn=12786194, arg1=20004262, arg2=9258817, arg3=12738738) at ../../../../bzr/emacs/emacs-24/src/eval.c:2645 ret_ungc_val = 140737488345600 gcpro1 = {next = 0x7fffffffd9b0, var = 0x53738f , nvars = 4} args = {12786194, 20004262, 9258817, 12738738} #8 0x000000000053ccef in cmd_error_internal (data=20004262, context=0x7fffffffda00 "") at ../../../../bzr/emacs/emacs-24/src/keyboard.c:1085 No locals. #9 0x000000000053cc13 in cmd_error (data=20004262) at ../../../../bzr/emacs/emacs-24/src/keyboard.c:1054 old_level = 12738738 old_length = 12738738 macroerror = "\000`\302\000\000\000\000\000F_|\001\000\000\000\000\002\000\000\000\000\000\000\000\262`\302\000\000\000\000\000\000\000\000\000\002", '\000' , #10 0x00000000005caba1 in internal_condition_case (bfun=0x53d1ab , handlers=12790306, hfun=0x53cabd ) at ../../../../bzr/emacs/emacs-24/src/eval.c:1351 val = 20004262 val = 5492514 c = 0x13d5810 #11 0x000000000053cf05 in command_loop_2 (ignore=12738738) at ../../../../bzr/emacs/emacs-24/src/keyboard.c:1177 val = 0 #12 0x00000000005ca3bb in internal_catch (tag=12786242, func=0x53cedf , arg=12738738) at ../../../../bzr/emacs/emacs-24/src/eval.c:1118 val = 12738738 c = 0x13d5630 #13 0x000000000053ceb3 in command_loop () at ../../../../bzr/emacs/emacs-24/src/keyboard.c:1156 No locals. #14 0x000000000053c6b8 in recursive_edit_1 () at ../../../../bzr/emacs/emacs-24/src/keyboard.c:777 count = 1 ---Type to continue, or q to quit--- val = 12738738 #15 0x000000000053c825 in Frecursive_edit () at ../../../../bzr/emacs/emacs-24/src/keyboard.c:848 count = 0 buffer = 12738738 #16 0x000000000053a857 in main (argc=2, argv=0x7fffffffdd98) at ../../../../bzr/emacs/emacs-24/src/emacs.c:1646 dummy = 140737354130592 stack_bottom_variable = 0 '\000' do_initial_setlocale = true dumping = false skip_args = 0 rlim = {rlim_cur = 8720000, rlim_max = 18446744073709551615} no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x7ffff7ffe148 "" original_pwd = 0x0