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#15570: 24.3.50; Null pointer crash in (ns-convert-utf8-nfd-to-nfc "\377") Date: Wed, 9 Oct 2013 13:37:27 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381319960 19014 80.91.229.3 (9 Oct 2013 11:59:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Oct 2013 11:59:20 +0000 (UTC) To: 15570@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 09 13:59: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 1VTsQF-0007zA-6I for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 13:59:23 +0200 Original-Received: from localhost ([::1]:41397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTsQE-0001PR-SJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Oct 2013 07:59:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTsQ4-0001Nq-Ij for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 07:59:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTsPw-0002Jv-8T for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 07:59:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTsPw-0002Jr-5M for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 07:59:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VTsPu-0000Ek-W1 for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 07:59:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carsten Bormann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Oct 2013 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15570 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.1381319917872 (code B ref -1); Wed, 09 Oct 2013 11:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Oct 2013 11:58:37 +0000 Original-Received: from localhost ([127.0.0.1]:37024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VTsPT-0000Dy-Jf for submit@debbugs.gnu.org; Wed, 09 Oct 2013 07:58:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46211) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VTsPP-0000Do-Fn for submit@debbugs.gnu.org; Wed, 09 Oct 2013 07:58:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTsPI-0002Dj-Hq for submit@debbugs.gnu.org; Wed, 09 Oct 2013 07:58:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTsPI-0002Df-EM for submit@debbugs.gnu.org; Wed, 09 Oct 2013 07:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTsPB-00017r-MZ for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 07:58:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTsP4-0002AO-2U for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 07:58:17 -0400 Original-Received: from mailhost.informatik.uni-bremen.de ([2001:638:708:30c9::12]:64628 helo=informatik.uni-bremen.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTsP3-00028d-HW for bug-gnu-emacs@gnu.org; Wed, 09 Oct 2013 07:58:09 -0400 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.4/8.14.4) with ESMTP id r99BbSRi025533 for ; Wed, 9 Oct 2013 13:37:28 +0200 (CEST) Original-Received: from [192.168.217.105] (p54891327.dip0.t-ipconnect.de [84.137.19.39]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 7B9B8E89; Wed, 9 Oct 2013 13:37:28 +0200 (CEST) X-Mailer: Apple Mail (2.1510) 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:79080 Archived-At: (ns-convert-utf8-nfd-to-nfc "\377") crashes in strlen (called from build_string),=20 as it is run on a null-pointer (apparently returned from [utfStr = UTF8String]). Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00007fff94ac3670 in strlen () (gdb) where #0 0x00007fff94ac3670 in strlen () #1 0x000000010009fbb4 in build_string () #2 0x000000010019300d in Fns_convert_utf8_nfd_to_nfc () ... 0x00007fff94ac3670 : pcmpeqb (%rdi),%xmm0 ... (gdb) info reg rdi 0x0 0 Further, there are no tests for this function. (Bug manifests itself with tramp no longer working on hosts stuck in = Latin-1-land, which might be due to an unrelated change.) Gr=FC=DFe, Carsten In GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-10-06 on bob.porkrind.org Bzr revision: 114537 dgutov@yandex.ru-20131006012151-wprswhei2ipqvr0c Windowing system distributor `Apple', version 10.3.1187 Configured using: `configure --host=3Dx86_64-apple-darwin --build=3Di686-apple-darwin --with-ns' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. current-kill: Kill ring is empty Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs)