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#12007: probably a fix Date: Wed, 15 Aug 2012 20:34:17 +0400 Message-ID: <502BCF89.9030600@yandex.ru> References: <86pq7p8d9o.fsf@googlemail.com> <83mx2t1aut.fsf@gnu.org> <500B2BB0.1000402@gmail.com> <500F4055.4080005@gmail.com> <500F5BD7.6050203@yandex.ru> <500F6DAE.9010207@gmail.com> <500F7930.3060100@yandex.ru> <500FD9C8.7080705@gmail.com> <500FE913.9030801@yandex.ru> <50294F85.8080504@gmail.com> <83r4rak33b.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050801040903020002060402" X-Trace: dough.gmane.org 1345048360 19442 80.91.229.3 (15 Aug 2012 16:32:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 16:32:40 +0000 (UTC) Cc: Christoph Scholtes , 12007@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 15 18:32:40 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 1T1gWO-0000Pd-ET for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 18:32:40 +0200 Original-Received: from localhost ([::1]:47177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1gWN-0007iD-FD for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 12:32:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1gWJ-0007hR-Tr for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:32:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1gW2-00017q-3l for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:32:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1gW2-00017l-07 for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:32:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T1geU-0007Qq-0G for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Aug 2012 16:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12007 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12007-submit@debbugs.gnu.org id=B12007.134504883628537 (code B ref 12007); Wed, 15 Aug 2012 16:41:01 +0000 Original-Received: (at 12007) by debbugs.gnu.org; 15 Aug 2012 16:40:36 +0000 Original-Received: from localhost ([127.0.0.1]:59361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1ge3-0007QD-Ij for submit@debbugs.gnu.org; Wed, 15 Aug 2012 12:40:36 -0400 Original-Received: from forward2h.mail.yandex.net ([84.201.187.147]:35745) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1ge0-0007Q3-Q1 for 12007@debbugs.gnu.org; Wed, 15 Aug 2012 12:40:34 -0400 Original-Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward2h.mail.yandex.net (Yandex) with ESMTP id A748B701521; Wed, 15 Aug 2012 20:31:46 +0400 (MSK) Original-Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 603ED1700092; Wed, 15 Aug 2012 20:31:46 +0400 (MSK) Original-Received: from unknown (unknown [37.139.84.55]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id Vj4eS23D-Vj442bEu; Wed, 15 Aug 2012 20:31:45 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1345048306; bh=PFqH9j2CH7Pb50vjfSkhsl/e26eSj0zwtz2C6Chsik8=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=P45DSq5kCdSkLua0o3+fQ/L2/yspDlgyc2FtII86kfgebDK9mypNDkeZyDrxlPxnL qR8J5IrBb+kGI5uKx10wUvBFtYGHCHo4U7uei4PMGnTxRo054S+PtcL/3l3hLFpYll GUBYZfw3VPQMrI3Lr/278Btts4XWi4DjL9BTRSIU= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <83r4rak33b.fsf@gnu.org> 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:63197 Archived-At: This is a multi-part message in MIME format. --------------050801040903020002060402 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 08/13/2012 11:24 PM, Eli Zaretskii wrote: > Perhaps related, the current trunk (revision 109586) segfaults on > startup ("emacs -Q") on GNU/Linux, with the following backtrace: Eli, please review a fix. This looks simple: it's wrong to look at with f->output_data.XXX without checking f->output_method first, so, FRAME_X_OUTPUT (f) may be non-zero for TTY frames, and segfault comes when xg_mark_data looks at initial ("F1") frame with non-zero f->output_data.tty member. Dmitry --------------050801040903020002060402 Content-Type: text/plain; charset=UTF-8; name="bug12007.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bug12007.patch" PT09IG1vZGlmaWVkIGZpbGUgJ3NyYy9ndGt1dGlsLmMnCi0tLSBzcmMvZ3RrdXRpbC5jCTIw MTItMDgtMTUgMDk6NDA6MDAgKzAwMDAKKysrIHNyYy9ndGt1dGlsLmMJMjAxMi0wOC0xNSAx NjoyMjoyOCArMDAwMApAQCAtMjI1OSw3ICsyMjU5LDcgQEAKICAgICB7CiAgICAgICBGUkFN RV9QVFIgZiA9IFhGUkFNRSAoZnJhbWUpOwogCi0gICAgICBpZiAoRlJBTUVfWF9PVVRQVVQg KGYpICYmIEZSQU1FX0dUS19PVVRFUl9XSURHRVQgKGYpKQorICAgICAgaWYgKEZSQU1FX1hf UCAoZikgJiYgRlJBTUVfR1RLX09VVEVSX1dJREdFVCAoZikpCiAgICAgICAgIHsKICAgICAg ICAgICBzdHJ1Y3QgeGdfZnJhbWVfdGJfaW5mbyAqdGJpbmZvCiAgICAgICAgICAgICA9IGdf b2JqZWN0X2dldF9kYXRhIChHX09CSkVDVCAoRlJBTUVfR1RLX09VVEVSX1dJREdFVCAoZikp LAoK --------------050801040903020002060402--