From unknown Fri Jun 20 07:13:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11853 <11853@debbugs.gnu.org> To: bug#11853 <11853@debbugs.gnu.org> Subject: Status: Emacs.app font initialization segfault Reply-To: bug#11853 <11853@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:26 +0000 retitle 11853 Emacs.app font initialization segfault reassign 11853 emacs submitter 11853 BT Templeton severity 11853 important tag 11853 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 04 01:05:47 2012 Received: (at submit) by debbugs.gnu.org; 4 Jul 2012 05:05:48 +0000 Received: from localhost ([127.0.0.1]:46703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmHmd-0007j5-0U for submit@debbugs.gnu.org; Wed, 04 Jul 2012 01:05:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50608) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmHmY-0007iw-7P for submit@debbugs.gnu.org; Wed, 04 Jul 2012 01:05:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmHhv-000700-EJ for submit@debbugs.gnu.org; Wed, 04 Jul 2012 01:00:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmHhv-0006zw-B9 for submit@debbugs.gnu.org; Wed, 04 Jul 2012 01:00:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmHht-0001M7-Ab for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 01:00:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmHhp-0006yS-Vy for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 01:00:52 -0400 Received: from deleuze.hcoop.net ([69.90.123.67]:58169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmHhp-0006wt-RN for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 01:00:49 -0400 Received: from cpe-071-070-253-241.nc.res.rr.com ([71.70.253.241] helo=olor.terpri.org) by deleuze.hcoop.net with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1SmHhi-0000zz-LH for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 01:00:42 -0400 Received: from localhost ([::1] helo=olor.terpri.org) by olor.terpri.org with esmtp (Exim 4.80) (envelope-from ) id 1SmHhZ-0007oP-7d for bug-gnu-emacs@gnu.org; Wed, 04 Jul 2012 01:00:33 -0400 From: BT Templeton To: bug-gnu-emacs@gnu.org Subject: Emacs.app font initialization segfault Date: Wed, 04 Jul 2012 01:00:33 -0400 Message-ID: <87hatonmry.fsf@olor.terpri.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) 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 (------) When built under GNUstep, Emacs.app crashes while creating the initial frame: --8<---------------cut here---------------start------------->8--- Program received signal SIGSEGV, Segmentation fault. ns_charset_covers (pct=, set2=0x1db24d8, set1=) at nsfont.m:279 279 off++; (gdb) bt #0 ns_charset_covers (pct=, set2=0x1db24d8, set1=) at nsfont.m:279 #1 ns_get_covering_families (script=0x1c83c38, pct=) at nsfont.m:470 #2 ns_findfonts (font_spec=15502181, isMatch=0 '\000') at nsfont.m:514 #3 0x00000000005f1c6c in font_list_entities (frame=21141749, spec=21133645) at font.c:2754 #4 0x00000000005f3acb in font_find_for_lface (f=0x14298f0, attrs=0x7fffffffb2e0, spec=21129941, c=-1) at font.c:3225 #5 0x00000000005f3e3d in font_load_for_lface (f=0x14298f0, attrs=0x7fffffffb2e0, spec=21129941) at font.c:3291 #6 0x00000000005f4029 in font_open_by_spec (f=0x14298f0, spec=21129941) at font.c:3354 #7 0x00000000005f4093 in font_open_by_name (f=0x14298f0, name=0x1c0e5c0 "FreeMono") at font.c:3370 #8 0x000000000044b909 in x_set_font (f=0x14298f0, arg=18808561, oldval=13346530) at frame.c:3177 #9 0x000000000044a4b3 in x_set_frame_parameters (f=0x14298f0, alist=13346530) at frame.c:2822 #10 0x000000000044d5db in x_default_parameter (f=0x14298f0, alist=19139910, prop=15528290, deflt=18808561, xprop=0x6c1333 "font", xclass=0x6c132e "Font", type=RES_TYPE_STRING) at frame.c:3880 #11 0x000000000068c1a0 in Fx_create_frame (parms=19139910) at nsfns.m:1261 #12 0x00000000005d8eef in Ffuncall (nargs=2, args=0x7fffffffb7d8) at eval.c:2819 #13 0x00000000006264a9 in exec_byte_code (bytestr=9921745, vector=9921781, maxdepth=16, args_template=13346530, nargs=0, args=0x0) at bytecode.c:784 #14 0x00000000005d9982 in funcall_lambda (fun=9921677, nargs=1, arg_vector=0x7fffffffbcd0) at eval.c:3051 #15 0x00000000005d90e3 in Ffuncall (nargs=2, args=0x7fffffffbcc8) at eval.c:2868 #16 0x00000000006264a9 in exec_byte_code (bytestr=10574537, vector=10574573, maxdepth=20, args_template=13346530, nargs=0, args=0x0) at bytecode.c:784 #17 0x00000000005d9982 in funcall_lambda (fun=10574477, nargs=1, arg_vector=0x7fffffffc1c0) at eval.c:3051 #18 0x00000000005d90e3 in Ffuncall (nargs=2, args=0x7fffffffc1b8) at eval.c:2868 #19 0x00000000006264a9 in exec_byte_code (bytestr=10569457, vector=10569493, maxdepth=24, args_template=13346530, nargs=0, args=0x0) at bytecode.c:784 #20 0x00000000005d9982 in funcall_lambda (fun=10569405, nargs=0, arg_vector=0x7fffffffc6c0) at eval.c:3051 #21 0x00000000005d90e3 in Ffuncall (nargs=1, args=0x7fffffffc6b8) at eval.c:2868 #22 0x00000000006264a9 in exec_byte_code (bytestr=9959433, vector=9959469, maxdepth=72, args_template=0, nargs=0, args=0x7fffffffcc28) at bytecode.c:784 #23 0x00000000005d966d in funcall_lambda (fun=9959381, nargs=0, arg_vector=0x7fffffffcc28) at eval.c:2985 #24 0x00000000005d90e3 in Ffuncall (nargs=1, args=0x7fffffffcc20) at eval.c:2868 #25 0x00000000006264a9 in exec_byte_code (bytestr=9956345, vector=9956381, maxdepth=32, args_template=0, nargs=0, args=0x7fffffffd070) at bytecode.c:784 #26 0x00000000005d966d in funcall_lambda (fun=9956293, nargs=0, arg_vector=0x7fffffffd070) at eval.c:2985 #27 0x00000000005d942c in apply_lambda (fun=9956293, args=13346530) at eval.c:2928 #28 0x00000000005d7942 in eval_sub (form=18604566) at eval.c:2211 #29 0x00000000005d703e in Feval (form=18604566, lexical=13346530) at eval.c:2020 #30 0x00000000005d7765 in eval_sub (form=18611638) at eval.c:2169 #31 0x0000000000607440 in readevalloop (readcharfun=15462674, stream=0xee55b0, sourcename=15618625, printflag=0, unibyte=13346530, readfun=13346530, start=13346530, end=13346530) at lread.c:1819 #32 0x0000000000605ebb in Fload (file=15511473, noerror=13346530, nomessage=13346530, nosuffix=13346530, must_suffix=13346530) at lread.c:1303 #33 0x00000000005d7801 in eval_sub (form=15451142) at eval.c:2180 #34 0x00000000005d703e in Feval (form=15451142, lexical=13346530) at eval.c:2020 #35 0x000000000052fbf9 in top_level_2 () at keyboard.c:1162 #36 0x00000000005d576b in internal_condition_case (bfun=0x52fbd2 , handlers=13910114, hfun=0x52f683 ) at eval.c:1332 #37 0x000000000052fc44 in top_level_1 (ignore=13346530) at keyboard.c:1170 #38 0x00000000005d506e in internal_catch (tag=13905986, func=0x52fbfb , arg=13346530) at eval.c:1089 #39 0x000000000052fb27 in command_loop () at keyboard.c:1125 #40 0x000000000052f129 in recursive_edit_1 () at keyboard.c:752 #41 0x000000000052f318 in Frecursive_edit () at keyboard.c:816 #42 0x000000000052d15f in main (argc=2, argv=0x7fffffffe118) at emacs.c:1693 Lisp Backtrace: "x-create-frame" (0xffffb7e0) "x-create-frame-with-faces" (0xffffbcd0) "make-frame" (0xffffc1c0) "frame-initialize" (0xffffc6c0) "command-line" (0xffffcc28) "normal-top-level" (0xffffd070) "eval" (0xffffd310) "load" (0xffffd7e0) --8<---------------cut here---------------end--------------->8--- This is probably a GNUstep bug, but the following patch fixes the problem. diff --git a/src/nsfont.m b/src/nsfont.m index 556102b..302a2d0 100644 --- a/src/nsfont.m +++ b/src/nsfont.m @@ -271,6 +271,9 @@ ns_charset_covers(NSCharacterSet *set1, NSCharacterSet *set2, float pct) const unsigned short *bytes2 = [[set2 bitmapRepresentation] bytes]; int i, off = 0, tot = 0; + if (! (bytes1 && bytes2)) + return NO; + for (i=0; i<4096; i++, bytes1++, bytes2++) if (*bytes2) { From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 12 21:43:57 2012 Received: (at 11853-done) by debbugs.gnu.org; 13 Jul 2012 01:43:57 +0000 Received: from localhost ([127.0.0.1]:37237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpUvE-0004aI-ST for submit@debbugs.gnu.org; Thu, 12 Jul 2012 21:43:57 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:48514) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SpUvC-0004aB-IR for 11853-done@debbugs.gnu.org; Thu, 12 Jul 2012 21:43:54 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 324B539E800B; Thu, 12 Jul 2012 18:38:19 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aYqvVyw60n02; Thu, 12 Jul 2012 18:38:18 -0700 (PDT) Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id DB49739E8008; Thu, 12 Jul 2012 18:38:18 -0700 (PDT) Message-ID: <4FFF7C0E.2010304@cs.ucla.edu> Date: Thu, 12 Jul 2012 18:38:22 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: BT Templeton Subject: Re: Emacs.app font initialization segfault Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11853-done Cc: 11853-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.9 (-) Thanks, I installed that fix and am marking this as done. From unknown Fri Jun 20 07:13:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 10 Aug 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator