From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.devel Subject: Emacs daemon segfaults [was: Possible bug when running with --daemon on 24.3.92.3?] Date: Fri, 11 Jul 2014 14:51:29 +1000 Message-ID: <87mwcgv5u0.fsf@gmail.com> References: <87bnt0qovn.fsf@gmail.com> <87lhs14q16.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405055451 22494 80.91.229.3 (11 Jul 2014 05:10:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jul 2014 05:10:51 +0000 (UTC) Cc: dmantipov@yandex.ru To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 11 07:10:45 2014 Return-path: Envelope-to: ged-emacs-devel@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 1X5T6Y-0006tb-KZ for ged-emacs-devel@m.gmane.org; Fri, 11 Jul 2014 07:10:42 +0200 Original-Received: from localhost ([::1]:42113 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5T6Y-0003rh-76 for ged-emacs-devel@m.gmane.org; Fri, 11 Jul 2014 01:10:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5T6M-0003rQ-Sr for emacs-devel@gnu.org; Fri, 11 Jul 2014 01:10:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5T6D-0007fS-Bn for emacs-devel@gnu.org; Fri, 11 Jul 2014 01:10:30 -0400 Original-Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:50045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5T6D-0007fN-5w for emacs-devel@gnu.org; Fri, 11 Jul 2014 01:10:21 -0400 Original-Received: by mail-pd0-f173.google.com with SMTP id r10so745777pdi.4 for ; Thu, 10 Jul 2014 22:10:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=WTrDosC0DAAhHG2ITvsMNT2wB6WWHV4jgZ9SSjTFCls=; b=u6c9EW3F4ubNBycLs14js5769v+pIQMcWl/MY+zvjy7VPr1QJo8spo7jmKA5EblX/X WmKWa5AYTl4yKfjrnXO0H+F75+xGxfO1CYMWJlAA0fCuAYu+XHg/ZLXG+kfgdQdfIXKZ 63TiGAwHB2KQ9xKx+q8GBkIvWKM7SUaN2hWQSpon/cUY2p9X5Kl2I7tzgDrGUb6ktnR4 L4QW1Ycakv3IgMy/sLe5t50Ip5Ms2/0SCc8Qlv0xu2OAZtlI1w8bRAuF3gvqGCaF2Et5 e6NJ/ts4ttS6MFvtJ4EYSGgFIFqn4lg8plObCdF3zW5VbYPrDqEutyeJlrxEpZ6uqvZR E3UA== X-Received: by 10.67.14.231 with SMTP id fj7mr12442762pad.115.1405055420286; Thu, 10 Jul 2014 22:10:20 -0700 (PDT) Original-Received: from localhost (ppp118-209-35-177.lns20.mel4.internode.on.net. [118.209.35.177]) by mx.google.com with ESMTPSA id hm4sm923463pbb.88.2014.07.10.22.10.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Jul 2014 22:10:19 -0700 (PDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c02::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172960 Archived-At: Peder O. Klingenberg writes: > On Thu, Jul 10 2014 at 09:41, Alexis wrote: > >> Peder O. Klingenberg writes: >> >>> Try attaching gdb to the emacs process before starting the >>> emacsclient, and see if you catch a signal as you exit emacsclient? >> >> When i enter C-x 5 0 in emacsclient, gdb reports: >> >> Program received signal SIGSEGV, Segmentation fault. >> PSEUDOVECTORP (code=15, a=536871013) at lisp.h:2436 >> 2436 return PSEUDOVECTOR_TYPEP (h, code); > > So your emacs dies with a segfault, same as mine did. But not on the > same line (or perhaps there's been code changes in that area since > march, I haven't checked). WRT the Subject of this thread, I'd say > definitely a bug. Well, getting a backtrace produced: #0 PSEUDOVECTORP (code=15, a=536871013) at lisp.h:2436 #1 font_clear_cache (cache=15546662, driver=driver@entry=0xb7b6e0, f=) at font.c:2607 It looks like the `font_clear_cache` function was last modified by Dmitry on 3 March, git commit b0c9db81. i tried `next`ing through that function for a while[1], and at one point started getting values for the `entity' variable such as -16777216 and 16777215, which look suspiciously like a 24-bit-related issue to this untrained eye .... The last value of the `entity` variable i got before the segfault was 536871013. Does anyone have any advice as to how i can proceed further? Alexis. [1] Not fully, because i didn't know the value of `ASIZE (elt)`, since according to GDB it had been optimized out, despite me `make`ing the binary with `-O0 -g3`, as per etc/DEBUG (i'm running gcc 4.7.2).