From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#15765: Crash in directory_files_internal Date: Wed, 30 Oct 2013 18:06:39 -0400 Message-ID: <4AB35230-6D71-4D99-9F8B-0E8FF9668CA7@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1812\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383170898 17434 80.91.229.3 (30 Oct 2013 22:08:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2013 22:08:18 +0000 (UTC) To: 15765@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 23:08:23 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 1Vbdw6-0001eI-T2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2013 23:08:23 +0100 Original-Received: from localhost ([::1]:54596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbdw6-0002b0-EP for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2013 18:08:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbdvv-0002ar-GX for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 18:08:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbdvm-0005Bw-SE for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 18:08:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbdvm-0005Bs-OC for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 18:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vbdvm-0007yd-Di for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 18:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Reitter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2013 22:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15765 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.138317083730604 (code B ref -1); Wed, 30 Oct 2013 22:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2013 22:07:17 +0000 Original-Received: from localhost ([127.0.0.1]:53642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbdv2-0007xX-7G for submit@debbugs.gnu.org; Wed, 30 Oct 2013 18:07:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37232) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbduz-0007xJ-1l for submit@debbugs.gnu.org; Wed, 30 Oct 2013 18:07:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbdul-00052X-Ct for submit@debbugs.gnu.org; Wed, 30 Oct 2013 18:07:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54494) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbdul-00052T-AZ for submit@debbugs.gnu.org; Wed, 30 Oct 2013 18:06:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbduc-0002RP-R6 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 18:06:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbduU-0004zC-Co for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 18:06:50 -0400 Original-Received: from mail-qe0-x231.google.com ([2607:f8b0:400d:c02::231]:37976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbduU-0004z0-6r for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 18:06:42 -0400 Original-Received: by mail-qe0-f49.google.com with SMTP id a11so1249734qen.22 for ; Wed, 30 Oct 2013 15:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=bYlZUxBvW3rHSP5l0rvddHi1T8/YZ4JkFXOf4EF32nQ=; b=tEpY6bJEGC15M8bcnHLFPNemk2K5qY6Ohuh8X/0XpbbmWwiNubG39nVXbsEgMr8lee Wl4n2jILnQSDeCA27cd7OFJOzWrEpM4GKTehDHwdKlGWL36c3p/ZokyF0oKI66G+ziIY HeSfWXRKKFZCTqcQn9MCslnI9oTooXhYYdvBUbaZo62N186bdbsymfwGA8dptvTt5rab pTtmiAAk66xl/4ZQrQzOdVMcc6RxbIGibVci0ify+GhrFciJu15xGgddHwmtYlU2R8Is isWTHW98x++fupKx7Ep609G+RcKe7Sx1jf3FHAEltmBd+7m6jsWbLiyyoDigeuWb3hhJ GWNg== X-Received: by 10.224.113.199 with SMTP id b7mr1043372qaq.4.1383170801113; Wed, 30 Oct 2013 15:06:41 -0700 (PDT) Original-Received: from cscl-imac-g4-3.ist.psu.edu ([130.203.154.15]) by mx.google.com with ESMTPSA id 4sm1799835qak.11.2013.10.30.15.06.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Oct 2013 15:06:40 -0700 (PDT) X-Mailer: Apple Mail (2.1812) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:79798 Archived-At: This crash occurred after eval'ing the expression (directory-files "~/Library/Logs/DiagnosticReports" t = "Aquamacs.*.crash") This directory exists, contains a few files, and I had eval'ed that just = a few second earlier without problems. The bug does not reproduce. Relevant lines in my dired.c: > 267 Lisp_Object fullname; > 268 ptrdiff_t nbytes =3D len + directory_nbytes + needsep; > 269 ptrdiff_t nchars; >=20 > 271 fullname =3D make_uninit_multibyte_string (nbytes, = nbytes); > 272 memcpy (SDATA (fullname), SDATA (directory), > directory_nbytes); >=20 Full crash log below. The running binary was built based on Emacs head = as per Oct 24, git refid 7c5015698c3, with some patches, but none to = dired.c. GNU Emacs 24.3.50.42 (i386-apple-darwin13.0.0, NS apple-appkit-1265.00) of 2013-10-27 on momo - Aquamacs Distribution 3.xdev Copyright (C) 2013 Free Software Foundation, Inc. Process: Aquamacs [1704] Path: /Users/USER/*/Aquamacs.app/Contents/MacOS/Aquamacs Identifier: org.gnu.Aquamacs Version: 3.xdev (3.x.1380382278) Code Type: X86-64 (Native) Parent Process: launchd [299] Responsible: Aquamacs [1704] User ID: 505 Date/Time: 2013-10-30 17:50:04.080 -0400 OS Version: Mac OS X 10.9 (13A598) Report Version: 11 Anonymous UUID: 162C5D4F-C33C-0247-A290-60860F5062B3 Sleep/Wake UUID: 4558D8CE-D6E0-464A-A563-18E46864CB62 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 VM Regions Near 0: -->=20 __TEXT 0000000100000000-0000000100200000 [ 2048K] = r-x/rwx SM=3DCOW /Users/USER/*/Aquamacs.app/Contents/MacOS/Aquamacs Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff8ce46292 __kill + 10 1 org.gnu.Aquamacs 0x00000001000b0fc1 = terminate_due_to_signal + 145 (emacs.c:377) 2 org.gnu.Aquamacs 0x00000001000ccb73 emacs_abort + = 19 3 org.gnu.Aquamacs 0x0000000100193fbb = ns_term_shutdown + 123 4 org.gnu.Aquamacs 0x00000001000b11c0 = shut_down_emacs + 288 (emacs.c:1990) 5 org.gnu.Aquamacs 0x00000001000b0f87 = terminate_due_to_signal + 87 (emacs.c:362) 6 org.gnu.Aquamacs 0x00000001000cf0ce = handle_fatal_signal + 14 7 org.gnu.Aquamacs 0x00000001000ce3b1 = deliver_fatal_thread_signal + 129 8 libsystem_platform.dylib 0x00007fff881ac5aa _sigtramp + = 26 9 ??? 0x000000010280303a 0 + = 4336922682 10 org.gnu.Aquamacs 0x00000001000ece5b = directory_files_internal + 907 (dired.c:272) 11 org.gnu.Aquamacs 0x000000010012643f eval_sub + = 1839 (eval.c:2169) 12 org.gnu.Aquamacs 0x00000001001291ca Feval + 106 = (eval.c:1977) 13 org.gnu.Aquamacs 0x0000000100129b09 Ffuncall + = 761 (eval.c:2770) 14 org.gnu.Aquamacs 0x000000010015fab9 = exec_byte_code + 2169 (bytecode.c:919) 15 org.gnu.Aquamacs 0x0000000100129a87 Ffuncall + = 631 (eval.c:2728) 16 org.gnu.Aquamacs 0x000000010015fab9 = exec_byte_code + 2169 (bytecode.c:919) 17 org.gnu.Aquamacs 0x0000000100129a87 Ffuncall + = 631 (eval.c:2728) 18 org.gnu.Aquamacs 0x0000000100124e2b = Fcall_interactively + 5259 (callint.c:838) 19 org.gnu.Aquamacs 0x0000000100129c10 Ffuncall + = 1024 (eval.c:2796) 20 org.gnu.Aquamacs 0x000000010015fab9 = exec_byte_code + 2169 (bytecode.c:919) 21 org.gnu.Aquamacs 0x0000000100129a87 Ffuncall + = 631 (eval.c:2728) 22 org.gnu.Aquamacs 0x000000010012a0ad call1 + 45 = (eval.c:2588) 23 org.gnu.Aquamacs 0x00000001000b4728 = command_loop_1 + 1352 (keyboard.c:1565) 24 org.gnu.Aquamacs 0x00000001001283c1 = internal_condition_case + 257 (eval.c:1333) 25 org.gnu.Aquamacs 0x00000001000c4dfe = command_loop_2 + 62 (.lisp.h:2224) 26 org.gnu.Aquamacs 0x0000000100127d6a = internal_catch + 250 (eval.c:1099) 27 org.gnu.Aquamacs 0x00000001000b386e = recursive_edit_1 + 334 (keyboard.c:1138) 28 org.gnu.Aquamacs 0x00000001000b39ba = Frecursive_edit + 250 (keyboard.c:841) 29 org.gnu.Aquamacs 0x00000001000b277b main + 5451 = (emacs.c:1581) 30 libdyld.dylib 0x00007fff851e35fd start + 1