From unknown Sun Jun 22 07:37:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13229: 24.3.50; Crash with ns_run_ascript 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: To: 13229@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.135594034310927 (code B ref -1); Wed, 19 Dec 2012 18:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Dec 2012 18:05:43 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 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 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 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 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 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) 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) From: Carsten Bormann Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Dec 2012 18:25:19 +0100 Message-Id: <483325F1-7B1B-4465-BF4F-50D29B798065@tzi.org> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) 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-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 From unknown Sun Jun 22 07:37:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13229: 24.3.50; Crash with ns_run_ascript Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Dec 2012 12:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Carsten Bormann Cc: 13229@debbugs.gnu.org Received: via spool by 13229-submit@debbugs.gnu.org id=B13229.135626626313330 (code B ref 13229); Sun, 23 Dec 2012 12:38:01 +0000 Received: (at 13229) by debbugs.gnu.org; 23 Dec 2012 12:37:43 +0000 Received: from localhost ([127.0.0.1]:56255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmkoJ-0003Sw-6k for submit@debbugs.gnu.org; Sun, 23 Dec 2012 07:37:43 -0500 Received: from mailout.melmac.se ([62.20.26.67]:54797) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmkoG-0003Sk-DF for 13229@debbugs.gnu.org; Sun, 23 Dec 2012 07:37:41 -0500 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 49D229645 for <13229@debbugs.gnu.org>; Sun, 23 Dec 2012 13:37:15 +0100 (CET) Received: (qmail 18056 invoked by uid 89); 23 Dec 2012 12:37:15 -0000 Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 23 Dec 2012 12:37:15 -0000 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id E0E427FA05E; Sun, 23 Dec 2012 13:37:14 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) From: Jan =?UTF-8?Q?Dj=C3=A4rv?= In-Reply-To: <483325F1-7B1B-4465-BF4F-50D29B798065@tzi.org> Date: Sun, 23 Dec 2012 13:37:16 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <57DC78C0-D9DA-4785-8530-5B94F0D8F2F8@swipnet.se> References: <483325F1-7B1B-4465-BF4F-50D29B798065@tzi.org> X-Mailer: Apple Mail (2.1499) X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.3 (/) Hello. This is a duplicate of 12969. A fix for that bug has been checked in. Jan D. 19 dec 2012 kl. 18:25 skrev Carsten Bormann : > I regularly use this little function: >=20 > (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")) >=20 > 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. >=20 > 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 >=20 > Date/Time: 2012-12-19 09:44:09.463 +0100 > OS Version: Mac OS X 10.8.2 (12C60) > Report Version: 10 >=20 > Crashed Thread: 0 Dispatch queue: com.apple.main-thread >=20 > Exception Type: EXC_BAD_ACCESS (SIGABRT) > Exception Codes: EXC_I386_GPFLT >=20 > 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 > [...] >=20 > 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 >=20 >=20 >=20 > 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'' >=20 > Important settings: > value of $LC_CTYPE: UTF-8 > locale-coding-system: nil > default enable-multibyte-characters: t >=20 >=20 >=20 >=20 From unknown Sun Jun 22 07:37:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Carsten Bormann Subject: bug#13229: closed (Re: bug#13229: 24.3.50; Crash with ns_run_ascript) Message-ID: References: <161BF0D8-F22F-4E3B-934B-EFC820DA6671@swipnet.se> <483325F1-7B1B-4465-BF4F-50D29B798065@tzi.org> X-Gnu-PR-Message: they-closed 13229 X-Gnu-PR-Package: emacs Reply-To: 13229@debbugs.gnu.org Date: Sun, 23 Dec 2012 12:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1356266522-13727-1" This is a multi-part message in MIME format... ------------=_1356266522-13727-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13229: 24.3.50; Crash with ns_run_ascript which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13229@debbugs.gnu.org. --=20 13229: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13229 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1356266522-13727-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13229-done) by debbugs.gnu.org; 23 Dec 2012 12:41:42 +0000 Received: from localhost ([127.0.0.1]:56260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmksA-0003Yr-0t for submit@debbugs.gnu.org; Sun, 23 Dec 2012 07:41:42 -0500 Received: from mailout.melmac.se ([62.20.26.67]:56446) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tmks8-0003Yk-5C for 13229-done@debbugs.gnu.org; Sun, 23 Dec 2012 07:41:41 -0500 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 7618B9655 for <13229-done@debbugs.gnu.org>; Sun, 23 Dec 2012 13:41:14 +0100 (CET) Received: (qmail 19962 invoked by uid 89); 23 Dec 2012 12:41:14 -0000 Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 23 Dec 2012 12:41:14 -0000 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 24D3B7FA05E; Sun, 23 Dec 2012 13:41:14 +0100 (CET) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: bug#13229: 24.3.50; Crash with ns_run_ascript From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: <57DC78C0-D9DA-4785-8530-5B94F0D8F2F8@swipnet.se> Date: Sun, 23 Dec 2012 13:41:13 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <161BF0D8-F22F-4E3B-934B-EFC820DA6671@swipnet.se> References: <483325F1-7B1B-4465-BF4F-50D29B798065@tzi.org> <57DC78C0-D9DA-4785-8530-5B94F0D8F2F8@swipnet.se> To: Carsten Bormann X-Mailer: Apple Mail (2.1499) X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 13229-done Cc: 13229-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.3 (/) Closing this as merge failed because of a package mismatch between bugs. Jan D. 23 dec 2012 kl. 13:37 skrev Jan Dj=E4rv : > Hello. >=20 > This is a duplicate of 12969. A fix for that bug has been checked in. >=20 > Jan D. >=20 > 19 dec 2012 kl. 18:25 skrev Carsten Bormann : >=20 >> I regularly use this little function: >>=20 >> (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")) >>=20 >> 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. >>=20 >> 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 >>=20 >> Date/Time: 2012-12-19 09:44:09.463 +0100 >> OS Version: Mac OS X 10.8.2 (12C60) >> Report Version: 10 >>=20 >> Crashed Thread: 0 Dispatch queue: com.apple.main-thread >>=20 >> Exception Type: EXC_BAD_ACCESS (SIGABRT) >> Exception Codes: EXC_I386_GPFLT >>=20 >> 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 >> [...] >>=20 >> 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 >>=20 >>=20 >>=20 >> 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'' >>=20 >> Important settings: >> value of $LC_CTYPE: UTF-8 >> locale-coding-system: nil >> default enable-multibyte-characters: t >>=20 >>=20 >>=20 >>=20 >=20 ------------=_1356266522-13727-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Dec 2012 18:05:43 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 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 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 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 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 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) 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) From: Carsten Bormann Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Wed, 19 Dec 2012 18:25:19 +0100 Subject: 24.3.50; Crash with ns_run_ascript To: "bug-gnu-emacs@gnu.org" Message-Id: <483325F1-7B1B-4465-BF4F-50D29B798065@tzi.org> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) 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-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 ------------=_1356266522-13727-1-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 23 14:58:53 2012 Received: (at control) by debbugs.gnu.org; 23 Dec 2012 19:58:53 +0000 Received: from localhost ([127.0.0.1]:57073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmrhE-0006WU-R8 for submit@debbugs.gnu.org; Sun, 23 Dec 2012 14:58:53 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:35137) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TmrhC-0006WJ-M3 for control@debbugs.gnu.org; Sun, 23 Dec 2012 14:58:51 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Tmrgm-00069x-6s for control@debbugs.gnu.org; Sun, 23 Dec 2012 14:58:24 -0500 Date: Sun, 23 Dec 2012 14:58:24 -0500 Message-Id: Subject: control message for bug 13229 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) merge 12969 13229