From unknown Mon Aug 18 15:41:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13932: 24.3.50; NS: Emacs crashes when using panel Resent-From: Darren Hoo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Mar 2013 10:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13932 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13932@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136308431824607 (code B ref -1); Tue, 12 Mar 2013 10:32:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Mar 2013 10:31:58 +0000 Received: from localhost ([127.0.0.1]:47956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFMUu-0006Op-UZ for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:31:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60563) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFMUs-0006Oc-69 for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:31:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFMTj-0004Sv-3n for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:30:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFMTj-0004Sq-1R for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:30:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFMTg-00008A-2d for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2013 06:30:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFMTd-0004Rr-Ea for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2013 06:30:40 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:52950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFMTd-0004Rj-5U for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2013 06:30:37 -0400 Received: by mail-we0-f179.google.com with SMTP id p43so4569081wea.24 for ; Tue, 12 Mar 2013 03:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=h22Q9E5H0ARbjG9ssENUGtaE5f5Ch9ezZcm2sooLJ1s=; b=uh9dJjK2+A0cAp8sHgeo0b98WGbpgTK1DmsM6qJAe560gXRgvPx2Z8nZJt2Cs1OfkS QVJ8P1NTP2I9fGGnUn7Fq3rSm0otPKu2xSz9jcUozhXdhWbRaY97GgacSSvE9ii8ukF4 I5kdAgYIdLB6qcifZiRyXqRhhdsbSqo0oOSnRl/urAj1QF7Z26V693nWMOAH0mfp6Vve KWNzIyFCGBclYNTQOS/Aqy/3w4A73Nl64oWjlkgNTyF3H8QFII6IQrgWUtn2F46+K+Y1 tuFwTTGhIp0NQOYQaPWqFkGp/mJius6vSuO6Qfj/hNVvUhSl9LQIKT63ye4NQaszDo1f 10nA== MIME-Version: 1.0 X-Received: by 10.180.183.4 with SMTP id ei4mr18249369wic.21.1363084235955; Tue, 12 Mar 2013 03:30:35 -0700 (PDT) Received: by 10.194.123.197 with HTTP; Tue, 12 Mar 2013 03:30:35 -0700 (PDT) Date: Tue, 12 Mar 2013 18:30:35 +0800 Message-ID: From: Darren Hoo Content-Type: multipart/alternative; boundary=001a11c22a2eaee55804d7b7c712 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: -3.4 (---) 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.1 (------) --001a11c22a2eaee55804d7b7c712 Content-Type: text/plain; charset=ISO-8859-1 Command-o, when the file selection panel pops up select an directory and click open, Emacs crashes, it is expected to enter into this directory $ lldb nextstep/Emacs.app/Contents/MacOS/Emacs Current executable set to 'nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64). (lldb) run Process 12942 launched: '/Volumes/disk/Sources/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64) 2013-03-12 18:26:35.533 Emacs[12942:f0b] *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. Process 12942 stopped * thread #1: tid = 0x1c03, 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16 libsystem_c.dylib`strlen + 16: -> 0x7fff8ed75650: pcmpeqb(%rdi), %xmm0 0x7fff8ed75654: andl $15, %ecx 0x7fff8ed75657: shll %cl, %eax 0x7fff8ed75659: pmovmskb%xmm0, %ecx (lldb) bt * thread #1: tid = 0x1c03, 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16 frame #1: 0x000000010018ed47 Emacs`Fns_read_file_name [inlined] build_string(str=0x0000000000000000) + 8 at lisp.h:3066 frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, dir=4310933248, mustmatch=140734799802432, init=4320145466, dir_only_p=0) + 783 at nsfns.m:1539 frame #3: 0x0000000100114207 Emacs`Ffuncall(, args=0x000000010011436c) + 1047 at eval.c:2691 frame #4: 0x000000010014b518 Emacs`exec_byte_code(, vector=140734799802800, maxdepth=0, args_template=0, nargs=4300775328, args=0x000000010050eba0) + 1992 at bytecode.c:902 frame #5: 0x0000000100114297 Emacs`Ffuncall(, args=0x000000010432dfea) + 1191 at eval.c:2724 frame #6: 0x0000000100116316 Emacs`apply1(fn=4365410282) + 38 at eval.c:2436 frame #7: 0x000000010011018a Emacs`Fcall_interactively(function=140734799803216, record_flag=140734799803216, keys=140734799803216) + 1418 at callint.c:377 frame #8: 0x00000001001141d3 Emacs`Ffuncall(, args=0x000000010011436c) + 995 at eval.c:2682 frame #9: 0x000000010014b518 Emacs`exec_byte_code(, vector=140734799803584, maxdepth=0, args_template=4299906395, nargs=4300775328, args=0x000000010050eba0) + 1992 at bytecode.c:902 frame #10: 0x0000000100114297 Emacs`Ffuncall(, args=0x00000001018115ba) + 1191 at eval.c:2724 frame #11: 0x00000001001175ee Emacs`call1() + 30 at eval.c:2469 frame #12: 0x00000001000aef95 Emacs`command_loop_1 + 1557 at keyboard.c:1586 frame #13: 0x0000000100115c19 Emacs`internal_condition_case(bfun=0x00000001000ae980, handlers=4320211610, hfun=0x00000001000afe10) + 297 at eval.c:1193 frame #14: 0x00000001000ae95e Emacs`command_loop_2() + 62 at keyboard.c:1173 frame #15: 0x0000000100115d15 Emacs`internal_catch(, func=0x00000001000ae920) + 213 at eval.c:964 frame #16: 0x00000001000b0390 Emacs`recursive_edit_1 [inlined] command_loop + 96 at keyboard.c:1152 frame #17: 0x00000001000b0330 Emacs`recursive_edit_1 + 144 at keyboard.c:785 frame #18: 0x00000001000a197d Emacs`Frecursive_edit + 237 at keyboard.c:849 frame #19: 0x000000010009e865 Emacs`main(argc=5808032, argv=0x00007fff5fbffb70) + 5973 at emacs.c:1530 frame #20: 0x00007fff8cca47e1 libdyld.dylib`start + 1 (lldb) f 2 frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, dir=4310933248, mustmatch=140734799802432, init=4320145466, dir_only_p=0) + 783 at nsfns.m:1539 1536 ret = (ret == NSOKButton) || panelOK; 1537 1538 if (ret) -> 1539 fname = build_string ([[panel filename] UTF8String]); 1540 1541 [[FRAME_NS_VIEW (SELECTED_FRAME ()) window] makeKeyWindow]; 1542 unblock_input (); (lldb) In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.2.1, NS apple-appkit-1187.34) of 2013-03-06 on Darren-rMBP Bzr revision: 112020 eggert@cs.ucla.edu-20130312024008-spfyp6t2t44ncr46a Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns' --001a11c22a2eaee55804d7b7c712 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Command-o, when the file selection panel pops up sele= ct an directory and
click open, Emacs crashes, it is expected to = enter into this directory


$ ll= db nextstep/Emacs.app/Contents/MacOS/Emacs=A0
Current executable set to 'nextstep/Emacs.app/Contents/MacOS/Emacs= ' (x86_64).
(lldb) run
Process 12942 launched: '= ;/Volumes/disk/Sources/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' (= x86_64)
2013-03-12 18:26:35.533 Emacs[12942:f0b] *** WARNING: Method userSpace= ScaleFactor in class NSWindow is deprecated on 10.7 and later. It should no= t be used in new applications. Use convertRectToBacking: instead.=A0
Process 12942 stopped
* thread #1: tid =3D 0x1c03, 0x00007ff= f8ed75650 libsystem_c.dylib`strlen + 16, stop reason =3D EXC_BAD_ACCESS (co= de=3D1, address=3D0x0)
=A0 =A0 frame #0: 0x00007fff8ed75650 libsy= stem_c.dylib`strlen + 16
libsystem_c.dylib`strlen + 16:
-> 0x7fff8ed75650: =A0pcmp= eqb(%rdi), %xmm0
=A0 =A00x7fff8ed75654: =A0andl =A0 $15, %ecx
=A0 =A00x7fff8ed75657: =A0shll =A0 %cl, %eax
=A0 =A00x7fff= 8ed75659: =A0pmovmskb%xmm0, %ecx
(lldb) bt
* thread #1: tid =3D 0x1c03, 0x00007fff8ed75650 li= bsystem_c.dylib`strlen + 16, stop reason =3D EXC_BAD_ACCESS (code=3D1, addr= ess=3D0x0)
=A0 =A0 frame #0: 0x00007fff8ed75650 libsystem_c.dylib= `strlen + 16
=A0 =A0 frame #1: 0x000000010018ed47 Emacs`Fns_read_file_name [inlined= ] build_string(str=3D0x0000000000000000) + 8 at lisp.h:3066
=A0 = =A0 frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, dir=3D431093324= 8, mustmatch=3D140734799802432, init=3D4320145466, dir_only_p=3D0) + 783 at= nsfns.m:1539
=A0 =A0 frame #3: 0x0000000100114207 Emacs`Ffuncall(, args=3D0x0000000= 10011436c) + 1047 at eval.c:2691
=A0 =A0 frame #4: 0x000000010014= b518 Emacs`exec_byte_code(, vector=3D140734799802800, maxdepth=3D0, args_te= mplate=3D0, nargs=3D4300775328, args=3D0x000000010050eba0) + 1992 at byteco= de.c:902
=A0 =A0 frame #5: 0x0000000100114297 Emacs`Ffuncall(, args=3D0x0000000= 10432dfea) + 1191 at eval.c:2724
=A0 =A0 frame #6: 0x000000010011= 6316 Emacs`apply1(fn=3D4365410282) + 38 at eval.c:2436
=A0 =A0 fr= ame #7: 0x000000010011018a Emacs`Fcall_interactively(function=3D14073479980= 3216, record_flag=3D140734799803216, keys=3D140734799803216) + 1418 at call= int.c:377
=A0 =A0 frame #8: 0x00000001001141d3 Emacs`Ffuncall(, args=3D0x0000000= 10011436c) + 995 at eval.c:2682
=A0 =A0 frame #9: 0x000000010014b= 518 Emacs`exec_byte_code(, vector=3D140734799803584, maxdepth=3D0, args_tem= plate=3D4299906395, nargs=3D4300775328, args=3D0x000000010050eba0) + 1992 a= t bytecode.c:902
=A0 =A0 frame #10: 0x0000000100114297 Emacs`Ffuncall(, args=3D0x000000= 01018115ba) + 1191 at eval.c:2724
=A0 =A0 frame #11: 0x0000000100= 1175ee Emacs`call1() + 30 at eval.c:2469
=A0 =A0 frame #12: 0x000= 00001000aef95 Emacs`command_loop_1 + 1557 at keyboard.c:1586
=A0 =A0 frame #13: 0x0000000100115c19 Emacs`internal_condition_case(bf= un=3D0x00000001000ae980, handlers=3D4320211610, hfun=3D0x00000001000afe10) = + 297 at eval.c:1193
=A0 =A0 frame #14: 0x00000001000ae95e Emacs`= command_loop_2() + 62 at keyboard.c:1173
=A0 =A0 frame #15: 0x0000000100115d15 Emacs`internal_catch(, func=3D0x= 00000001000ae920) + 213 at eval.c:964
=A0 =A0 frame #16: 0x000000= 01000b0390 Emacs`recursive_edit_1 [inlined] command_loop + 96 at keyboard.c= :1152
=A0 =A0 frame #17: 0x00000001000b0330 Emacs`recursive_edit_1 + 144 at = keyboard.c:785
=A0 =A0 frame #18: 0x00000001000a197d Emacs`Frecur= sive_edit + 237 at keyboard.c:849
=A0 =A0 frame #19: 0x0000000100= 09e865 Emacs`main(argc=3D5808032, argv=3D0x00007fff5fbffb70) + 5973 at emac= s.c:1530
=A0 =A0 frame #20: 0x00007fff8cca47e1 libdyld.dylib`start + 1
(lldb) f 2
frame #2: 0x000000010018ed3f Emacs`Fns_read_file_nam= e(, dir=3D4310933248, mustmatch=3D140734799802432, init=3D4320145466, dir_o= nly_p=3D0) + 783 at nsfns.m:1539
=A0 =A01536 =A0ret = =3D (ret =3D=3D NSOKButton) || panelOK;
=A0 =A01537
=A0 =A01538 =A0if (ret)
-> 1539 =A0 =A0f= name =3D build_string ([[panel filename] UTF8String]);
=A0 =A0154= 0
=A0 =A01541<= span class=3D"" style=3D"white-space:pre"> =A0[[FRAME_NS_VIEW (SELE= CTED_FRAME ()) window] makeKeyWindow];
=A0 =A01542 =A0unbl= ock_input ();
(lldb)=A0


=

In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.2.1, NS a= pple-appkit-1187.34)
=A0of 2013-03-06 on Darren-rMBP
Bzr revision: 112020 eggert@= cs.ucla.edu-20130312024008-spfyp6t2t44ncr46a
Windowing system dis= tributor `Apple', version 10.3.1187
Configured using:
=A0`configure --with-ns'


--001a11c22a2eaee55804d7b7c712-- From unknown Mon Aug 18 15:41:40 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: Darren Hoo Subject: bug#13932: closed (Re: bug#13932: 24.3.50; NS: Emacs crashes when using panel) Message-ID: References: <4DED2439-90C8-4163-A853-BB7484325E39@swipnet.se> X-Gnu-PR-Message: they-closed 13932 X-Gnu-PR-Package: emacs,ns Reply-To: 13932@debbugs.gnu.org Date: Sat, 16 Mar 2013 13:55:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1363442103-28743-1" This is a multi-part message in MIME format... ------------=_1363442103-28743-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13932: 24.3.50; NS: Emacs crashes when using panel which was filed against the emacs,ns package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13932@debbugs.gnu.org. --=20 13932: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13932 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1363442103-28743-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13932-done) by debbugs.gnu.org; 16 Mar 2013 13:54:18 +0000 Received: from localhost ([127.0.0.1]:57468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGrYw-0007Sb-BA for submit@debbugs.gnu.org; Sat, 16 Mar 2013 09:54:18 -0400 Received: from mailout.melmac.se ([62.20.26.67]:65512) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGrYt-0007SK-Ec for 13932-done@debbugs.gnu.org; Sat, 16 Mar 2013 09:54:16 -0400 Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id E9670923F for <13932-done@debbugs.gnu.org>; Sat, 16 Mar 2013 14:52:44 +0100 (CET) Received: (qmail 13605 invoked by uid 89); 16 Mar 2013 12:52:41 -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; 16 Mar 2013 12:52:41 -0000 Received: from [172.20.199.14] (zeplinf [172.20.199.14]) by coolsville.localdomain (Postfix) with ESMTPSA id 79A757FA06C; Sat, 16 Mar 2013 14:52:44 +0100 (CET) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: bug#13932: 24.3.50; NS: Emacs crashes when using panel From: =?iso-8859-1?Q?Jan_Dj=E4rv?= In-Reply-To: Date: Sat, 16 Mar 2013 14:52:44 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <4DED2439-90C8-4163-A853-BB7484325E39@swipnet.se> References: To: Darren Hoo X-Mailer: Apple Mail (2.1503) X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 13932-done Cc: 13932-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: -1.2 (-) Hello. This has been fixed in the trunk. Jan D. 12 mar 2013 kl. 11:30 skrev Darren Hoo : > Command-o, when the file selection panel pops up select an directory = and > click open, Emacs crashes, it is expected to enter into this directory >=20 >=20 > $ lldb nextstep/Emacs.app/Contents/MacOS/Emacs=20 > Current executable set to 'nextstep/Emacs.app/Contents/MacOS/Emacs' = (x86_64). > (lldb) run > Process 12942 launched: = '/Volumes/disk/Sources/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' = (x86_64) > 2013-03-12 18:26:35.533 Emacs[12942:f0b] *** WARNING: Method = userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. = It should not be used in new applications. Use convertRectToBacking: = instead.=20 > Process 12942 stopped > * thread #1: tid =3D 0x1c03, 0x00007fff8ed75650 = libsystem_c.dylib`strlen + 16, stop reason =3D EXC_BAD_ACCESS (code=3D1, = address=3D0x0) > frame #0: 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16 > libsystem_c.dylib`strlen + 16: > -> 0x7fff8ed75650: pcmpeqb(%rdi), %xmm0 > 0x7fff8ed75654: andl $15, %ecx > 0x7fff8ed75657: shll %cl, %eax > 0x7fff8ed75659: pmovmskb%xmm0, %ecx > (lldb) bt > * thread #1: tid =3D 0x1c03, 0x00007fff8ed75650 = libsystem_c.dylib`strlen + 16, stop reason =3D EXC_BAD_ACCESS (code=3D1, = address=3D0x0) > frame #0: 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16 > frame #1: 0x000000010018ed47 Emacs`Fns_read_file_name [inlined] = build_string(str=3D0x0000000000000000) + 8 at lisp.h:3066 > frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, = dir=3D4310933248, mustmatch=3D140734799802432, init=3D4320145466, = dir_only_p=3D0) + 783 at nsfns.m:1539 > frame #3: 0x0000000100114207 Emacs`Ffuncall(, = args=3D0x000000010011436c) + 1047 at eval.c:2691 > frame #4: 0x000000010014b518 Emacs`exec_byte_code(, = vector=3D140734799802800, maxdepth=3D0, args_template=3D0, = nargs=3D4300775328, args=3D0x000000010050eba0) + 1992 at bytecode.c:902 > frame #5: 0x0000000100114297 Emacs`Ffuncall(, = args=3D0x000000010432dfea) + 1191 at eval.c:2724 > frame #6: 0x0000000100116316 Emacs`apply1(fn=3D4365410282) + 38 at = eval.c:2436 > frame #7: 0x000000010011018a = Emacs`Fcall_interactively(function=3D140734799803216, = record_flag=3D140734799803216, keys=3D140734799803216) + 1418 at = callint.c:377 > frame #8: 0x00000001001141d3 Emacs`Ffuncall(, = args=3D0x000000010011436c) + 995 at eval.c:2682 > frame #9: 0x000000010014b518 Emacs`exec_byte_code(, = vector=3D140734799803584, maxdepth=3D0, args_template=3D4299906395, = nargs=3D4300775328, args=3D0x000000010050eba0) + 1992 at bytecode.c:902 > frame #10: 0x0000000100114297 Emacs`Ffuncall(, = args=3D0x00000001018115ba) + 1191 at eval.c:2724 > frame #11: 0x00000001001175ee Emacs`call1() + 30 at eval.c:2469 > frame #12: 0x00000001000aef95 Emacs`command_loop_1 + 1557 at = keyboard.c:1586 > frame #13: 0x0000000100115c19 = Emacs`internal_condition_case(bfun=3D0x00000001000ae980, = handlers=3D4320211610, hfun=3D0x00000001000afe10) + 297 at eval.c:1193 > frame #14: 0x00000001000ae95e Emacs`command_loop_2() + 62 at = keyboard.c:1173 > frame #15: 0x0000000100115d15 Emacs`internal_catch(, = func=3D0x00000001000ae920) + 213 at eval.c:964 > frame #16: 0x00000001000b0390 Emacs`recursive_edit_1 [inlined] = command_loop + 96 at keyboard.c:1152 > frame #17: 0x00000001000b0330 Emacs`recursive_edit_1 + 144 at = keyboard.c:785 > frame #18: 0x00000001000a197d Emacs`Frecursive_edit + 237 at = keyboard.c:849 > frame #19: 0x000000010009e865 Emacs`main(argc=3D5808032, = argv=3D0x00007fff5fbffb70) + 5973 at emacs.c:1530 > frame #20: 0x00007fff8cca47e1 libdyld.dylib`start + 1 > (lldb) f 2 > frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, = dir=3D4310933248, mustmatch=3D140734799802432, init=3D4320145466, = dir_only_p=3D0) + 783 at nsfns.m:1539 > 1536 ret =3D (ret =3D=3D NSOKButton) || panelOK; > 1537=09 > 1538 if (ret) > -> 1539 fname =3D build_string ([[panel filename] = UTF8String]); > 1540=09 > 1541 [[FRAME_NS_VIEW (SELECTED_FRAME ()) window] = makeKeyWindow]; > 1542 unblock_input (); > (lldb)=20 >=20 >=20 >=20 > In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.2.1, NS = apple-appkit-1187.34) > of 2013-03-06 on Darren-rMBP > Bzr revision: 112020 = eggert@cs.ucla.edu-20130312024008-spfyp6t2t44ncr46a > Windowing system distributor `Apple', version 10.3.1187 > Configured using: > `configure --with-ns' >=20 >=20 ------------=_1363442103-28743-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Mar 2013 10:31:58 +0000 Received: from localhost ([127.0.0.1]:47956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFMUu-0006Op-UZ for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:31:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60563) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UFMUs-0006Oc-69 for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:31:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFMTj-0004Sv-3n for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:30:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:48042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFMTj-0004Sq-1R for submit@debbugs.gnu.org; Tue, 12 Mar 2013 06:30:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFMTg-00008A-2d for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2013 06:30:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFMTd-0004Rr-Ea for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2013 06:30:40 -0400 Received: from mail-we0-x233.google.com ([2a00:1450:400c:c03::233]:52950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFMTd-0004Rj-5U for bug-gnu-emacs@gnu.org; Tue, 12 Mar 2013 06:30:37 -0400 Received: by mail-we0-f179.google.com with SMTP id p43so4569081wea.24 for ; Tue, 12 Mar 2013 03:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=h22Q9E5H0ARbjG9ssENUGtaE5f5Ch9ezZcm2sooLJ1s=; b=uh9dJjK2+A0cAp8sHgeo0b98WGbpgTK1DmsM6qJAe560gXRgvPx2Z8nZJt2Cs1OfkS QVJ8P1NTP2I9fGGnUn7Fq3rSm0otPKu2xSz9jcUozhXdhWbRaY97GgacSSvE9ii8ukF4 I5kdAgYIdLB6qcifZiRyXqRhhdsbSqo0oOSnRl/urAj1QF7Z26V693nWMOAH0mfp6Vve KWNzIyFCGBclYNTQOS/Aqy/3w4A73Nl64oWjlkgNTyF3H8QFII6IQrgWUtn2F46+K+Y1 tuFwTTGhIp0NQOYQaPWqFkGp/mJius6vSuO6Qfj/hNVvUhSl9LQIKT63ye4NQaszDo1f 10nA== MIME-Version: 1.0 X-Received: by 10.180.183.4 with SMTP id ei4mr18249369wic.21.1363084235955; Tue, 12 Mar 2013 03:30:35 -0700 (PDT) Received: by 10.194.123.197 with HTTP; Tue, 12 Mar 2013 03:30:35 -0700 (PDT) Date: Tue, 12 Mar 2013 18:30:35 +0800 Message-ID: Subject: 24.3.50; NS: Emacs crashes when using panel From: Darren Hoo To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c22a2eaee55804d7b7c712 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: -3.4 (---) 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.1 (------) --001a11c22a2eaee55804d7b7c712 Content-Type: text/plain; charset=ISO-8859-1 Command-o, when the file selection panel pops up select an directory and click open, Emacs crashes, it is expected to enter into this directory $ lldb nextstep/Emacs.app/Contents/MacOS/Emacs Current executable set to 'nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64). (lldb) run Process 12942 launched: '/Volumes/disk/Sources/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' (x86_64) 2013-03-12 18:26:35.533 Emacs[12942:f0b] *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. Process 12942 stopped * thread #1: tid = 0x1c03, 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16 libsystem_c.dylib`strlen + 16: -> 0x7fff8ed75650: pcmpeqb(%rdi), %xmm0 0x7fff8ed75654: andl $15, %ecx 0x7fff8ed75657: shll %cl, %eax 0x7fff8ed75659: pmovmskb%xmm0, %ecx (lldb) bt * thread #1: tid = 0x1c03, 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x00007fff8ed75650 libsystem_c.dylib`strlen + 16 frame #1: 0x000000010018ed47 Emacs`Fns_read_file_name [inlined] build_string(str=0x0000000000000000) + 8 at lisp.h:3066 frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, dir=4310933248, mustmatch=140734799802432, init=4320145466, dir_only_p=0) + 783 at nsfns.m:1539 frame #3: 0x0000000100114207 Emacs`Ffuncall(, args=0x000000010011436c) + 1047 at eval.c:2691 frame #4: 0x000000010014b518 Emacs`exec_byte_code(, vector=140734799802800, maxdepth=0, args_template=0, nargs=4300775328, args=0x000000010050eba0) + 1992 at bytecode.c:902 frame #5: 0x0000000100114297 Emacs`Ffuncall(, args=0x000000010432dfea) + 1191 at eval.c:2724 frame #6: 0x0000000100116316 Emacs`apply1(fn=4365410282) + 38 at eval.c:2436 frame #7: 0x000000010011018a Emacs`Fcall_interactively(function=140734799803216, record_flag=140734799803216, keys=140734799803216) + 1418 at callint.c:377 frame #8: 0x00000001001141d3 Emacs`Ffuncall(, args=0x000000010011436c) + 995 at eval.c:2682 frame #9: 0x000000010014b518 Emacs`exec_byte_code(, vector=140734799803584, maxdepth=0, args_template=4299906395, nargs=4300775328, args=0x000000010050eba0) + 1992 at bytecode.c:902 frame #10: 0x0000000100114297 Emacs`Ffuncall(, args=0x00000001018115ba) + 1191 at eval.c:2724 frame #11: 0x00000001001175ee Emacs`call1() + 30 at eval.c:2469 frame #12: 0x00000001000aef95 Emacs`command_loop_1 + 1557 at keyboard.c:1586 frame #13: 0x0000000100115c19 Emacs`internal_condition_case(bfun=0x00000001000ae980, handlers=4320211610, hfun=0x00000001000afe10) + 297 at eval.c:1193 frame #14: 0x00000001000ae95e Emacs`command_loop_2() + 62 at keyboard.c:1173 frame #15: 0x0000000100115d15 Emacs`internal_catch(, func=0x00000001000ae920) + 213 at eval.c:964 frame #16: 0x00000001000b0390 Emacs`recursive_edit_1 [inlined] command_loop + 96 at keyboard.c:1152 frame #17: 0x00000001000b0330 Emacs`recursive_edit_1 + 144 at keyboard.c:785 frame #18: 0x00000001000a197d Emacs`Frecursive_edit + 237 at keyboard.c:849 frame #19: 0x000000010009e865 Emacs`main(argc=5808032, argv=0x00007fff5fbffb70) + 5973 at emacs.c:1530 frame #20: 0x00007fff8cca47e1 libdyld.dylib`start + 1 (lldb) f 2 frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, dir=4310933248, mustmatch=140734799802432, init=4320145466, dir_only_p=0) + 783 at nsfns.m:1539 1536 ret = (ret == NSOKButton) || panelOK; 1537 1538 if (ret) -> 1539 fname = build_string ([[panel filename] UTF8String]); 1540 1541 [[FRAME_NS_VIEW (SELECTED_FRAME ()) window] makeKeyWindow]; 1542 unblock_input (); (lldb) In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.2.1, NS apple-appkit-1187.34) of 2013-03-06 on Darren-rMBP Bzr revision: 112020 eggert@cs.ucla.edu-20130312024008-spfyp6t2t44ncr46a Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --with-ns' --001a11c22a2eaee55804d7b7c712 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Command-o, when the file selection panel pops up sele= ct an directory and
click open, Emacs crashes, it is expected to = enter into this directory


$ ll= db nextstep/Emacs.app/Contents/MacOS/Emacs=A0
Current executable set to 'nextstep/Emacs.app/Contents/MacOS/Emacs= ' (x86_64).
(lldb) run
Process 12942 launched: '= ;/Volumes/disk/Sources/emacs/nextstep/Emacs.app/Contents/MacOS/Emacs' (= x86_64)
2013-03-12 18:26:35.533 Emacs[12942:f0b] *** WARNING: Method userSpace= ScaleFactor in class NSWindow is deprecated on 10.7 and later. It should no= t be used in new applications. Use convertRectToBacking: instead.=A0
Process 12942 stopped
* thread #1: tid =3D 0x1c03, 0x00007ff= f8ed75650 libsystem_c.dylib`strlen + 16, stop reason =3D EXC_BAD_ACCESS (co= de=3D1, address=3D0x0)
=A0 =A0 frame #0: 0x00007fff8ed75650 libsy= stem_c.dylib`strlen + 16
libsystem_c.dylib`strlen + 16:
-> 0x7fff8ed75650: =A0pcmp= eqb(%rdi), %xmm0
=A0 =A00x7fff8ed75654: =A0andl =A0 $15, %ecx
=A0 =A00x7fff8ed75657: =A0shll =A0 %cl, %eax
=A0 =A00x7fff= 8ed75659: =A0pmovmskb%xmm0, %ecx
(lldb) bt
* thread #1: tid =3D 0x1c03, 0x00007fff8ed75650 li= bsystem_c.dylib`strlen + 16, stop reason =3D EXC_BAD_ACCESS (code=3D1, addr= ess=3D0x0)
=A0 =A0 frame #0: 0x00007fff8ed75650 libsystem_c.dylib= `strlen + 16
=A0 =A0 frame #1: 0x000000010018ed47 Emacs`Fns_read_file_name [inlined= ] build_string(str=3D0x0000000000000000) + 8 at lisp.h:3066
=A0 = =A0 frame #2: 0x000000010018ed3f Emacs`Fns_read_file_name(, dir=3D431093324= 8, mustmatch=3D140734799802432, init=3D4320145466, dir_only_p=3D0) + 783 at= nsfns.m:1539
=A0 =A0 frame #3: 0x0000000100114207 Emacs`Ffuncall(, args=3D0x0000000= 10011436c) + 1047 at eval.c:2691
=A0 =A0 frame #4: 0x000000010014= b518 Emacs`exec_byte_code(, vector=3D140734799802800, maxdepth=3D0, args_te= mplate=3D0, nargs=3D4300775328, args=3D0x000000010050eba0) + 1992 at byteco= de.c:902
=A0 =A0 frame #5: 0x0000000100114297 Emacs`Ffuncall(, args=3D0x0000000= 10432dfea) + 1191 at eval.c:2724
=A0 =A0 frame #6: 0x000000010011= 6316 Emacs`apply1(fn=3D4365410282) + 38 at eval.c:2436
=A0 =A0 fr= ame #7: 0x000000010011018a Emacs`Fcall_interactively(function=3D14073479980= 3216, record_flag=3D140734799803216, keys=3D140734799803216) + 1418 at call= int.c:377
=A0 =A0 frame #8: 0x00000001001141d3 Emacs`Ffuncall(, args=3D0x0000000= 10011436c) + 995 at eval.c:2682
=A0 =A0 frame #9: 0x000000010014b= 518 Emacs`exec_byte_code(, vector=3D140734799803584, maxdepth=3D0, args_tem= plate=3D4299906395, nargs=3D4300775328, args=3D0x000000010050eba0) + 1992 a= t bytecode.c:902
=A0 =A0 frame #10: 0x0000000100114297 Emacs`Ffuncall(, args=3D0x000000= 01018115ba) + 1191 at eval.c:2724
=A0 =A0 frame #11: 0x0000000100= 1175ee Emacs`call1() + 30 at eval.c:2469
=A0 =A0 frame #12: 0x000= 00001000aef95 Emacs`command_loop_1 + 1557 at keyboard.c:1586
=A0 =A0 frame #13: 0x0000000100115c19 Emacs`internal_condition_case(bf= un=3D0x00000001000ae980, handlers=3D4320211610, hfun=3D0x00000001000afe10) = + 297 at eval.c:1193
=A0 =A0 frame #14: 0x00000001000ae95e Emacs`= command_loop_2() + 62 at keyboard.c:1173
=A0 =A0 frame #15: 0x0000000100115d15 Emacs`internal_catch(, func=3D0x= 00000001000ae920) + 213 at eval.c:964
=A0 =A0 frame #16: 0x000000= 01000b0390 Emacs`recursive_edit_1 [inlined] command_loop + 96 at keyboard.c= :1152
=A0 =A0 frame #17: 0x00000001000b0330 Emacs`recursive_edit_1 + 144 at = keyboard.c:785
=A0 =A0 frame #18: 0x00000001000a197d Emacs`Frecur= sive_edit + 237 at keyboard.c:849
=A0 =A0 frame #19: 0x0000000100= 09e865 Emacs`main(argc=3D5808032, argv=3D0x00007fff5fbffb70) + 5973 at emac= s.c:1530
=A0 =A0 frame #20: 0x00007fff8cca47e1 libdyld.dylib`start + 1
(lldb) f 2
frame #2: 0x000000010018ed3f Emacs`Fns_read_file_nam= e(, dir=3D4310933248, mustmatch=3D140734799802432, init=3D4320145466, dir_o= nly_p=3D0) + 783 at nsfns.m:1539
=A0 =A01536 =A0ret = =3D (ret =3D=3D NSOKButton) || panelOK;
=A0 =A01537
=A0 =A01538 =A0if (ret)
-> 1539 =A0 =A0f= name =3D build_string ([[panel filename] UTF8String]);
=A0 =A0154= 0
=A0 =A01541<= span class=3D"" style=3D"white-space:pre"> =A0[[FRAME_NS_VIEW (SELE= CTED_FRAME ()) window] makeKeyWindow];
=A0 =A01542 =A0unbl= ock_input ();
(lldb)=A0


=

In GNU Emacs 24.3.50.1 (x86_64-apple-darwin12.2.1, NS a= pple-appkit-1187.34)
=A0of 2013-03-06 on Darren-rMBP
Bzr revision: 112020 eggert@= cs.ucla.edu-20130312024008-spfyp6t2t44ncr46a
Windowing system dis= tributor `Apple', version 10.3.1187
Configured using:
=A0`configure --with-ns'


--001a11c22a2eaee55804d7b7c712-- ------------=_1363442103-28743-1--