From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Bormann Newsgroups: gmane.emacs.bugs Subject: bug#13229: 24.3.50; Crash with ns_run_ascript Date: Wed, 19 Dec 2012 18:25:19 +0100 Message-ID: <483325F1-7B1B-4465-BF4F-50D29B798065@tzi.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355940377 30068 80.91.229.3 (19 Dec 2012 18:06:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 18:06:17 +0000 (UTC) To: 13229@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 19:06:30 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 1TlO2E-0004JU-TH for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 19:06:27 +0100 Original-Received: from localhost ([::1]:35538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlO20-0006bp-Pd for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 13:06:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlO1t-0006ae-Sl for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 13:06:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlO1n-0007Va-7Q for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 13:06:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlO1n-0007VK-3l for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 13:05:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TlO1p-0002ql-Nw for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 13:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Carsten Bormann Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Dec 2012 18:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.135594034310927 (code B ref -1); Wed, 19 Dec 2012 18:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Dec 2012 18:05:43 +0000 Original-Received: from localhost ([127.0.0.1]:51148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlO1W-0002qC-ID for submit@debbugs.gnu.org; Wed, 19 Dec 2012 13:05:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57267) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TlO1U-0002q4-24 for submit@debbugs.gnu.org; Wed, 19 Dec 2012 13:05:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlO0p-00076l-Lt for submit@debbugs.gnu.org; Wed, 19 Dec 2012 13:05:33 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:44816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlO0p-00076h-IP for submit@debbugs.gnu.org; Wed, 19 Dec 2012 13:04:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlNzX-0006Fc-Hy for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 13:04:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TlNy4-0006a9-AX for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 13:03:39 -0500 Original-Received: from mailhost.informatik.uni-bremen.de ([2001:638:708:30c9::12]:38047 helo=informatik.uni-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlNy4-0006Zm-11 for bug-gnu-emacs@gnu.org; Wed, 19 Dec 2012 13:02:08 -0500 X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Original-Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.3/8.14.3) with ESMTP id qBJHPKOx018298 for ; Wed, 19 Dec 2012 18:25:21 +0100 (CET) Original-Received: from [192.168.217.117] (p54892B5A.dip.t-dialin.net [84.137.43.90]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 7EC8A64D; Wed, 19 Dec 2012 18:25:20 +0100 (CET) X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.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:68754 Archived-At: I regularly use this little function: (defun insert-safari-topmost () (interactive "*") (insert (substring (do-applescript " tell application \"Safari\" set myUrl to URL of document 1 as string end tell return myUrl ") 1 -1)) (insert "\n") (insert (do-applescript " tell application \"Safari\" set myName to name of document 1 as string end tell return myName ")) (insert "\n")) This little hack has worked perfectly for a couple of years. I try to stay relatively current with the nightlies on emacsformacosx, = updating once a week or so. Recently (starting for me on December 7, probably based on an Emacs from December 4), this has developed a problem. Randomly (at maybe 1 % probability, with a pattern that I can't discern), this crashes like the below. Restarting Emacs, and performing the same Applescript in the same file with exactly the same environment and the same outcome then works, so it must be some slow deterioration or race condition. Process: Emacs-10.7 [1191] Path: /Applications/Emacs.app/Contents/MacOS/Emacs-10.7 Identifier: org.gnu.Emacs Version: Version 24.3.50 (9.0) Code Type: X86-64 (Native) Parent Process: launchd [263] User ID: 501 Date/Time: 2012-12-19 09:44:09.463 +0100 OS Version: Mac OS X 10.8.2 (12C60) Report Version: 10 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: EXC_I386_GPFLT Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff84af3d46 __kill + 10 1 Emacs-10.7 0x000000010009cd19 = terminate_due_to_signal + 153 2 Emacs-10.7 0x00000001000b9593 emacs_abort + = 19 3 Emacs-10.7 0x00000001001880bd = ns_term_shutdown + 125 4 Emacs-10.7 0x000000010009d381 = shut_down_emacs + 305 5 Emacs-10.7 0x000000010009ccdb = terminate_due_to_signal + 91 6 Emacs-10.7 0x00000001000b9b06 = deliver_fatal_thread_signal + 134 7 libsystem_c.dylib 0x00007fff86d468ea _sigtramp + = 26 8 libsystem_c.dylib 0x00007fff86d46650 strlen + 16 9 com.apple.Foundation 0x00007fff8627a99c +[NSString = stringWithUTF8String:] + 82 10 Emacs-10.7 0x000000010018deeb = ns_run_ascript + 75 11 Emacs-10.7 0x000000010017dbbf -[EmacsApp = sendEvent:] + 95 12 com.apple.AppKit 0x00007fff8573b2fa = -[NSApplication run] + 636 13 Emacs-10.7 0x000000010018a350 = ns_read_socket + 560 14 Emacs-10.7 0x00000001000a88bf gobble_input = + 271 15 Emacs-10.7 0x00000001000a8165 = process_pending_signals + 21 16 Emacs-10.7 0x0000000100122070 = internal_equal + 320 17 Emacs-10.7 0x000000010011e66d Fequal + 13 18 Emacs-10.7 0x000000010003bbef = display_mode_element + 655 19 Emacs-10.7 0x000000010003d55d = display_mode_element + 7165 20 Emacs-10.7 0x000000010003d4e2 = display_mode_element + 7042 21 Emacs-10.7 0x000000010003d55d = display_mode_element + 7165 22 Emacs-10.7 0x000000010003d55d = display_mode_element + 7165 23 Emacs-10.7 0x000000010003d8dc = display_mode_line + 364 24 Emacs-10.7 0x000000010003db30 = display_mode_lines + 336 25 Emacs-10.7 0x000000010004b36f = redisplay_window + 20879 26 Emacs-10.7 0x0000000100035676 = redisplay_window_0 + 38 27 Emacs-10.7 0x0000000100116c83 = internal_condition_case_1 + 307 28 Emacs-10.7 0x000000010003562c = redisplay_windows + 140 29 Emacs-10.7 0x0000000100041d9c = redisplay_internal + 4140 30 Emacs-10.7 0x00000001000aff82 = command_loop_1 + 338 31 Emacs-10.7 0x0000000100116dd9 = internal_condition_case + 297 32 Emacs-10.7 0x00000001000afe0e = command_loop_2 + 62 33 Emacs-10.7 0x0000000100116ed5 = internal_catch + 213 34 Emacs-10.7 0x00000001000b1840 = recursive_edit_1 + 240 35 Emacs-10.7 0x00000001000a231d = Frecursive_edit + 237 36 Emacs-10.7 0x000000010009f1c7 main + 5943 37 Emacs-10.7 0x0000000100001a14 start + 52 [...] Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000028 rcx: = 0x00007fff5fbf6ee8 rdx: 0x0000000000000000 rdi: 0x00000000000004a7 rsi: 0x0000000000000006 rbp: = 0x00007fff5fbf6f10 rsp: 0x00007fff5fbf6ee8 r8: 0xfffffffeff8e642f r9: 0x00000000000001ff r10: = 0x00007fff84af423a r11: 0x0000000000000206 r12: 0x00000001049e6980 r13: 0x0000000000000001 r14: = 0x0000000000000006 r15: 0x00000000000004a7 rip: 0x00007fff84af3d46 rfl: 0x0000000000000206 cr2: = 0x0000000100c015d8 Logical CPU: 0 In GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-12-17 on bob.porkrind.org Bzr revision: 111254 rudalics@gmx.at-20121217075457-afkz5nrni0hvzfkj Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure '--host=3Dx86_64-apple-darwin' '--build=3Di686-apple-darwin' '--with-ns' 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' 'CC=3Dgcc -mmacosx-version-min=3D10.7 -isystem = /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOS= X.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/ = -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/Mac= OSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks'' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: nil default enable-multibyte-characters: t