From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#16058: 24.3.50; X protocol error: BadAlloc... Date: Thu, 05 Dec 2013 12:46:47 +0400 Message-ID: <52A03D77.9020509@yandex.ru> References: <8738m7vo9f.fsf@gmail.com> <52A02273.2030003@yandex.ru> <87y53zu62a.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1386233239 24085 80.91.229.3 (5 Dec 2013 08:47:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2013 08:47:19 +0000 (UTC) Cc: 16058@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 05 09:47:25 2013 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 1VoUaf-00069l-CQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 09:47:21 +0100 Original-Received: from localhost ([::1]:52355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoUaf-0006py-1a for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 03:47:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoUaV-0006ps-SQ for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 03:47:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoUaN-0005MW-1n for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 03:47:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoUaM-0005MS-Rt for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 03:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VoUaM-0004Qu-5O for bug-gnu-emacs@gnu.org; Thu, 05 Dec 2013 03:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Dec 2013 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16058 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16058-submit@debbugs.gnu.org id=B16058.138623321517023 (code B ref 16058); Thu, 05 Dec 2013 08:47:02 +0000 Original-Received: (at 16058) by debbugs.gnu.org; 5 Dec 2013 08:46:55 +0000 Original-Received: from localhost ([127.0.0.1]:58944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoUaE-0004QS-Co for submit@debbugs.gnu.org; Thu, 05 Dec 2013 03:46:55 -0500 Original-Received: from forward5l.mail.yandex.net ([84.201.143.138]:52734) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoUaA-0004QG-Ll for 16058@debbugs.gnu.org; Thu, 05 Dec 2013 03:46:52 -0500 Original-Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [37.140.190.29]) by forward5l.mail.yandex.net (Yandex) with ESMTP id D3A6FC40E70; Thu, 5 Dec 2013 12:46:48 +0400 (MSK) Original-Received: from smtp4o.mail.yandex.net (localhost [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id 7FA812320907; Thu, 5 Dec 2013 12:46:48 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id zWGb6FsHkW-kmeihkQO; Thu, 5 Dec 2013 12:46:48 +0400 (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1386233208; bh=LqHum3BHP2LVfcxMhbNU335H15e1ocpkVKq5o4Vwal4=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=UNUx/8Qy8+5ZAhveWDo5vhx/KXREWJJXDtFIYdwVR0oOW1vTHcW7Tt7W7Naf1t+hZ Yc+wLgUAY5JMN1t8ySaTziFgw3ns6FzTKlLVEDFPXJrqzlPARSniTsv7ng8k+FsnAp uRn8aKMTo+Cjq8QbBZAfmw7Wvpyn4ufj6panafGA= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <87y53zu62a.fsf@gmail.com> 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:81427 Archived-At: On 12/05/2013 11:10 AM, Thierry Volpiatto wrote: > How did you get the backtrace ? > bt return "No stack" This is because the program has exited. X protocol error messages are displayed by using glibc's printf and friends, so you could just insert breakpoints to printf and fprintf. > So you mean try to reproduce the bug with emacs compiled with: This may be annoying. When I build with '--with-x-toolkit=lucid --without-toolkit-scroll-bars --without-gconf --without-gsettings', resulting binary depends on 92 libraries: $ ldd src/emacs linux-vdso.so.1 => (0x00007fff239fe000) libtiff.so.5 => /lib64/libtiff.so.5 (0x000000387a200000) libjpeg.so.62 => /lib64/libjpeg.so.62 (0x0000003872600000) libpng15.so.15 => /lib64/libpng15.so.15 (0x0000003870200000) libz.so.1 => /lib64/libz.so.1 (0x000000386aa00000) libm.so.6 => /lib64/libm.so.6 (0x0000003869e00000) libgif.so.4 => /lib64/libgif.so.4 (0x000000387ae00000) libXpm.so.4 => /lib64/libXpm.so.4 (0x0000003871e00000) libXaw3d.so.8 => /lib64/libXaw3d.so.8 (0x00007ff20521d000) libXmu.so.6 => /lib64/libXmu.so.6 (0x0000003873e00000) libXt.so.6 => /lib64/libXt.so.6 (0x000000387ba00000) libSM.so.6 => /lib64/libSM.so.6 (0x0000003873200000) libICE.so.6 => /lib64/libICE.so.6 (0x0000003871600000) libXext.so.6 => /lib64/libXext.so.6 (0x000000386ee00000) libX11.so.6 => /lib64/libX11.so.6 (0x000000386d200000) libXrender.so.1 => /lib64/libXrender.so.1 (0x0000003873600000) libXft.so.2 => /lib64/libXft.so.2 (0x0000003870600000) libasound.so.2 => /lib64/libasound.so.2 (0x000000387d200000) librsvg-2.so.2 => /lib64/librsvg-2.so.2 (0x00007ff204fe4000) libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x0000003357a00000) libgdk_pixbuf-2.0.so.0 => /lib64/libgdk_pixbuf-2.0.so.0 (0x0000003359a00000) libcairo.so.2 => /lib64/libcairo.so.2 (0x00000031e2200000) libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x0000003357200000) libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x0000003356e00000) libMagickWand.so.5 => /lib64/libMagickWand.so.5 (0x000000387fa00000) libMagickCore.so.5 => /lib64/libMagickCore.so.5 (0x0000003880200000) libacl.so.1 => /lib64/libacl.so.1 (0x00007ff204dd9000) librt.so.1 => /lib64/librt.so.1 (0x000000386b200000) libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x0000003358200000) libXrandr.so.2 => /lib64/libXrandr.so.2 (0x0000003877e00000) libXinerama.so.1 => /lib64/libXinerama.so.1 (0x0000003877200000) libxml2.so.2 => /lib64/libxml2.so.2 (0x000000386f600000) libgpm.so.2 => /lib64/libgpm.so.2 (0x000000386be00000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003872a00000) libselinux.so.1 => /lib64/libselinux.so.1 (0x000000386ba00000) libfreetype.so.6 => /lib64/libfreetype.so.6 (0x000000386ea00000) libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x000000386fa00000) libotf.so.0 => /lib64/libotf.so.0 (0x00007ff204bbf000) libm17n-flt.so.0 => /lib64/libm17n-flt.so.0 (0x000000386c200000) libm17n-core.so.0 => /lib64/libm17n-core.so.0 (0x00007ff204991000) libgnutls.so.28 => /lib64/libgnutls.so.28 (0x00007ff204685000) libpthread.so.0 => /lib64/libpthread.so.0 (0x000000386a600000) libgomp.so.1 => /lib64/libgomp.so.1 (0x0000003879e00000) libc.so.6 => /lib64/libc.so.6 (0x0000003869a00000) libjbig.so.2.0 => /lib64/libjbig.so.2.0 (0x000000387b600000) libuuid.so.1 => /lib64/libuuid.so.1 (0x000000386e200000) libxcb.so.1 => /lib64/libxcb.so.1 (0x000000386ca00000) libdl.so.2 => /lib64/libdl.so.2 (0x000000386a200000) /lib64/ld-linux-x86-64.so.2 (0x0000003869600000) libpangocairo-1.0.so.0 => /lib64/libpangocairo-1.0.so.0 (0x00000031e2600000) libpango-1.0.so.0 => /lib64/libpango-1.0.so.0 (0x0000003359600000) libcroco-0.6.so.3 => /lib64/libcroco-0.6.so.3 (0x00007ff204446000) libffi.so.6 => /lib64/libffi.so.6 (0x000000386d600000) libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x0000003357600000) libresolv.so.2 => /lib64/libresolv.so.2 (0x000000386c600000) libpixman-1.so.0 => /lib64/libpixman-1.so.0 (0x0000003872e00000) libEGL.so.1 => /lib64/libEGL.so.1 (0x00000031e1a00000) libxcb-shm.so.0 => /lib64/libxcb-shm.so.0 (0x000000387d600000) libxcb-render.so.0 => /lib64/libxcb-render.so.0 (0x0000003876e00000) libGL.so.1 => /lib64/libGL.so.1 (0x00000031e1200000) liblcms.so.1 => /lib64/liblcms.so.1 (0x000000387fe00000) liblzma.so.5 => /lib64/liblzma.so.5 (0x000000386de00000) libbz2.so.1 => /lib64/libbz2.so.1 (0x0000003875600000) libltdl.so.7 => /lib64/libltdl.so.7 (0x000000387be00000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000000386ae00000) libattr.so.1 => /lib64/libattr.so.1 (0x000000386f200000) libpcre.so.1 => /lib64/libpcre.so.1 (0x000000386b600000) libexpat.so.1 => /lib64/libexpat.so.1 (0x000000386e600000) libp11-kit.so.0 => /lib64/libp11-kit.so.0 (0x0000003881800000) libtasn1.so.6 => /lib64/libtasn1.so.6 (0x0000003882a00000) libnettle.so.4 => /lib64/libnettle.so.4 (0x0000003882200000) libhogweed.so.2 => /lib64/libhogweed.so.2 (0x0000003883400000) libgmp.so.10 => /lib64/libgmp.so.10 (0x00007ff2041c8000) libXau.so.6 => /lib64/libXau.so.6 (0x000000386ce00000) libpangoft2-1.0.so.0 => /lib64/libpangoft2-1.0.so.0 (0x000000335a600000) libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x0000003357e00000) libharfbuzz.so.0 => /lib64/libharfbuzz.so.0 (0x0000003359200000) libX11-xcb.so.1 => /lib64/libX11-xcb.so.1 (0x0000003877600000) libxcb-dri2.so.0 => /lib64/libxcb-dri2.so.0 (0x0000003879200000) libxcb-xfixes.so.0 => /lib64/libxcb-xfixes.so.0 (0x000000387c600000) libxcb-shape.so.0 => /lib64/libxcb-shape.so.0 (0x0000003870a00000) libgbm.so.1 => /lib64/libgbm.so.1 (0x00000031e1e00000) libwayland-client.so.0 => /lib64/libwayland-client.so.0 (0x0000003871200000) libwayland-server.so.0 => /lib64/libwayland-server.so.0 (0x0000003870e00000) libglapi.so.0 => /lib64/libglapi.so.0 (0x00000031e1600000) libudev.so.1 => /lib64/libudev.so.1 (0x0000003872200000) libdrm.so.2 => /lib64/libdrm.so.2 (0x00000031d7200000) libXdamage.so.1 => /lib64/libXdamage.so.1 (0x000000387aa00000) libXfixes.so.3 => /lib64/libXfixes.so.3 (0x0000003875e00000) libxcb-glx.so.0 => /lib64/libxcb-glx.so.0 (0x0000003878a00000) libXxf86vm.so.1 => /lib64/libXxf86vm.so.1 (0x0000003878600000) libfreebl3.so => /lib64/libfreebl3.so (0x0000003875200000) libgraphite2.so.3 => /lib64/libgraphite2.so.3 (0x00007ff203fa4000) And with '--without-all' it's just 26: $ ldd src/emacs linux-vdso.so.1 => (0x00007fffc6dfe000) libXaw.so.7 => /lib64/libXaw.so.7 (0x000000386ae00000) libXmu.so.6 => /lib64/libXmu.so.6 (0x0000003873e00000) libXt.so.6 => /lib64/libXt.so.6 (0x000000387ba00000) libSM.so.6 => /lib64/libSM.so.6 (0x0000003873200000) libICE.so.6 => /lib64/libICE.so.6 (0x0000003871600000) libXext.so.6 => /lib64/libXext.so.6 (0x000000386ee00000) libX11.so.6 => /lib64/libX11.so.6 (0x000000386d200000) libacl.so.1 => /lib64/libacl.so.1 (0x0000003356e00000) librt.so.1 => /lib64/librt.so.1 (0x000000386b200000) libXrandr.so.2 => /lib64/libXrandr.so.2 (0x0000003877e00000) libXinerama.so.1 => /lib64/libXinerama.so.1 (0x0000003877200000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x0000003872a00000) libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x000000386fa00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x000000386a600000) libm.so.6 => /lib64/libm.so.6 (0x0000003869e00000) libc.so.6 => /lib64/libc.so.6 (0x0000003869a00000) libXpm.so.4 => /lib64/libXpm.so.4 (0x0000003871e00000) libuuid.so.1 => /lib64/libuuid.so.1 (0x000000386e200000) libxcb.so.1 => /lib64/libxcb.so.1 (0x000000386ca00000) libdl.so.2 => /lib64/libdl.so.2 (0x000000386a200000) libattr.so.1 => /lib64/libattr.so.1 (0x000000386f200000) /lib64/ld-linux-x86-64.so.2 (0x0000003869600000) libXrender.so.1 => /lib64/libXrender.so.1 (0x0000003873600000) libfreetype.so.6 => /lib64/libfreetype.so.6 (0x000000386ea00000) libexpat.so.1 => /lib64/libexpat.so.1 (0x000000386e600000) libXau.so.6 => /lib64/libXau.so.6 (0x000000386ce00000) So if we have a glitch with some external library, there are 66 libraries under suspicion. An idea is to remove library dependencies one by one using --without-XXX option until the problem disappears; if you have a better approach, it's definitely appreciated. Dmitry