From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Left Right Newsgroups: gmane.emacs.bugs Subject: bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background Date: Wed, 4 Jul 2012 13:25:17 +0300 Message-ID: References: <83wr2q7hlk.fsf@gnu.org> <83sjde7ao9.fsf@gnu.org> <83r4sy78fb.fsf@gnu.org> <83obo276a4.fsf@gnu.org> <83sjd84upr.fsf@gnu.org> <487125CF-32F3-4F98-859F-EBD13CCCC09D@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1341397605 12287 80.91.229.3 (4 Jul 2012 10:26:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2012 10:26:45 +0000 (UTC) To: 11813@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 04 12:26:42 2012 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 1SmMn4-0002et-RW for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jul 2012 12:26:35 +0200 Original-Received: from localhost ([::1]:53768 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmMn3-0000AR-Ke for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jul 2012 06:26:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmMmw-0000AE-75 for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 06:26:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmMmm-0001jI-2v for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 06:26:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmMml-0001jC-T0 for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 06:26:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SmMrN-00073H-JA for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 06:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Left Right Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Jul 2012 10:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11813 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11813-submit@debbugs.gnu.org id=B11813.134139780927043 (code B ref 11813); Wed, 04 Jul 2012 10:31:01 +0000 Original-Received: (at 11813) by debbugs.gnu.org; 4 Jul 2012 10:30:09 +0000 Original-Received: from localhost ([127.0.0.1]:47281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmMqW-000727-SS for submit@debbugs.gnu.org; Wed, 04 Jul 2012 06:30:09 -0400 Original-Received: from mail-gg0-f172.google.com ([209.85.161.172]:35161) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmMqT-00071x-SC for 11813@debbugs.gnu.org; Wed, 04 Jul 2012 06:30:06 -0400 Original-Received: by ggnc4 with SMTP id c4so6154203ggn.3 for <11813@debbugs.gnu.org>; Wed, 04 Jul 2012 03:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bovUk8yWIPhC1ODizII2IUusdTUTl2ecW1HaLmUpYaw=; b=B8VhMM6QppvddlfrUaXoq7jUCtHpx8OZaQXvBvdrcuvo4pelYwcUJHGI4bW3U1Ct32 dWQZUvZNIMqHe3VipbW2Lllzr6qVmLczVCHJ5q/Q4hhAwFsep7EEt40sJ9xZIFu+1JbS WWr3GFYaVQ6pBaxIys+55Bore95hHyu/5hDNyGxBqVk6gqFYytuaphLwZIhQ6ofLilip eHc1j0yKtsfhdIm6joo4ogmDdzUlL570MyOxbMsKXlfFaOAPtMbNBpnc0VyGEcKMixQV NtcO7hfDDq/Nv5+8kmG5JKyXbr0z0OpNG4geOWy4DbQMuV6bVopXHms2rDgr+vbQpsQG IVvw== Original-Received: by 10.60.171.135 with SMTP id au7mr22242095oec.62.1341397517897; Wed, 04 Jul 2012 03:25:17 -0700 (PDT) Original-Received: by 10.76.120.45 with HTTP; Wed, 4 Jul 2012 03:25:17 -0700 (PDT) In-Reply-To: <487125CF-32F3-4F98-859F-EBD13CCCC09D@swipnet.se> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:61565 Archived-At: Hi, sorry for delay. I've applied the patch, and it looks like the initial problem is fixed, however, the other problem, which seems related surfaces. Below is debugger output (I've compiled w/o optimization flags). gdb ./src/emacs GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/wvxvw/projects/emacs-sources/emacs/src/emacs...done. (gdb) r -q Starting program: /home/wvxvw/projects/emacs-sources/emacs/src/emacs -q [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x000000000056d3cb in x_draw_glyphless_glyph_string_foreground (s=0x7fffffffba40) at xterm.c:1419 1419 code = s->font->driver->encode_char (s->font, str[j]); (gdb) p s $1 = (struct glyph_string *) 0x7fffffffba40 (gdb) p *s $2 = {x = 82, y = 631, ybase = 649, width = 288, background_width = 288, height = 25, left_overhang = 0, right_overhang = 0, f = 0x146adb0, w = 0x146bdc0, display = 0x161a6b0, window = 60817534, row = 0x16748e0, area = TEXT_AREA, char2b = 0x7fffffffb710, nchars = 12, hl = DRAW_NORMAL_TEXT, face = 0x1615dd0, font = 0x0, cmp = 0x0, cmp_id = 0, cmp_from = 0, cmp_to = 0, extends_to_end_of_line_p = 0, background_filled_p = 1, two_byte_p = 0, font_not_found_p = 0, stippled_p = 0, for_overlaps = 0, padding_p = 0, gc = 0x16a5450, first_glyph = 0xf20780, img = 0x0, slice = {x = 0, y = 0, width = 0, height = 0}, clip_head = 0x0, clip_tail = 0x0, clip = {{x = 1, y = 631, width = 840, height = 25}, {x = 0, y = 0, width = 0, height = 0}}, num_clips = 1, underline_position = 0, underline_thickness = 0, next = 0x7fffffffb940, prev = 0x7fffffffbbe0} (gdb) p s->font $3 = (struct font *) 0x0 (gdb) c Continuing. Fatal error (11) Program received signal SIGSEGV, Segmentation fault. 0x00007ffff5255497 in kill () from /lib/libc.so.6 (gdb) q If I may suggest, I don't know the code very well, but, could it assert on whether the font exists or not and print out somehow what font it is looking for? That might be even better then accounting for non-existing fonts later on. One more clarification, this is not GTK, I'm running KDE 4.4.5. Perhaps, although unlikely, I have to change something in it's fonts configuration? (not that I know of such, but if you do, you are welcome to suggest). Best. Oleg