From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#716: 23.0.60; opening tgz file causes emacs crash Date: Fri, 22 Aug 2008 20:10:44 +0800 Message-ID: <48AEACC4.2000300@gnu.org> References: <48A3E7C9.8050509@tnei.co.uk> Reply-To: Jason Rumney , 716@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219411576 7812 80.91.229.12 (22 Aug 2008 13:26:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2008 13:26:16 +0000 (UTC) To: robert marshall , 716@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 15:27:08 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KWWfA-0000OO-BW for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 15:26:48 +0200 Original-Received: from localhost ([127.0.0.1]:59819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWWeC-0000A6-Qc for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2008 09:25:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWVjx-0008NU-38 for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 08:27:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWVjv-0008KK-9e for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 08:27:40 -0400 Original-Received: from [199.232.76.173] (port=38344 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWVju-0008K3-7f for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 08:27:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52104) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KWVjt-0005dN-Oh for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2008 08:27:38 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7MCRRYP020981; Fri, 22 Aug 2008 05:27:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7MCK41v018200; Fri, 22 Aug 2008 05:20:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 22 Aug 2008 12:20:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 716 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 716-submit@emacsbugs.donarmstrong.com id=B716.121940710716260 (code B ref 716); Fri, 22 Aug 2008 12:20:04 +0000 Original-Received: (at 716) by emacsbugs.donarmstrong.com; 22 Aug 2008 12:11:47 +0000 Original-Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.184]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7MCBXWC016251 for <716@emacsbugs.donarmstrong.com>; Fri, 22 Aug 2008 05:11:41 -0700 Original-Received: by ti-out-0910.google.com with SMTP id b6so290885tic.1 for <716@emacsbugs.donarmstrong.com>; Fri, 22 Aug 2008 05:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding:from; bh=sKJXyoK37vvmUEUYQXZvb+S3O/aXqNvFDvwx5MPYSKU=; b=SZKYP/7Pk7Hq9AO8gRb3XfODCUPxv7rdSOIfOyfI6CyD3vDcIvy4J3vHQtX2YNVYEt serqHs3XEa4OJtyDFpTkLFWyM/Xt9FL69pIsH8eyi4ai29uiCLP1g5wWoLL9sUGsq7Hq 4mNYnjvoLfjW29a6Bbb5ugyU54Klu8kbX376I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding:from; b=aql1l8HuqzLkdzbwTRKR0Vjzu+nhJ7qV8/eVfo1I1agXtVA/oju+wNMNeJl7TsSN9I +0yvWNSTBzh4ea1a2bxYrNc8JTlpS+SIx4RxUf82rDgLEvQJ+4I1EiHl88IhZAV7SPEm GCrGPV8yNyhQhmFyU7O/KccSBGEN8YWS7+U68= Original-Received: by 10.110.39.20 with SMTP id m20mr1177811tim.41.1219407092778; Fri, 22 Aug 2008 05:11:32 -0700 (PDT) Original-Received: from ?172.16.0.12? ( [124.82.236.150]) by mx.google.com with ESMTPS id a14sm3098349tia.0.2008.08.22.05.11.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 22 Aug 2008 05:11:31 -0700 (PDT) User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <48A3E7C9.8050509@tnei.co.uk> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 22 Aug 2008 08:27:40 -0400 X-Mailman-Approved-At: Fri, 22 Aug 2008 09:24:42 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19637 Archived-At: robert marshall wrote: > If I open a tgz (tar and gzipped file) in emacs it immediately crashes > (giving the windows emacs abort dialog) In trying to debug this, I think I have found where it is going wrong, but I have no idea why and how to debug the relevant bytecode. It could be a sign of the byte compilation going wrong on Windows (line-end or other coding problems?), or a bug in Fbytecode somewhere (which is only affecting Windows for some reason). The stack trace when debugging includes the following: #8 0x010a5e65 in Finsert (nargs=2, args=0x0) at editfns.c:2224 #9 0x0115795b in Fbyte_code (bytestr=48986435, vector=49414916, maxdepth=48) at bytecode.c:1265 #10 0x01023232 in funcall_lambda (fun=49839780, nargs=0, arg_vector=0x82d854) at eval.c:3229 #11 0x01022d11 in Ffuncall (nargs=1, args=0x82d850) at eval.c:3088 In frame #11, args[0] is tar-summarize-buffer, so at that point all appears normal. By frame #8 things have clearly gone wrong. How did args become a NULL pointer, yet there are 2 args? Currently I don't have access to a GNU/Linux machine to try a copy of tar-mode.elc compiled there. Can someone else with access to both platforms try that? To reproduce the bug, you need to open a tar file in Emacs (trunk) maybe a few times (the most I have had to open one before triggering the bug is 3 times, but often it happens first time).