From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#26388: 26.0.50; assertion failed: !NILP (Vpurify_flag) during temacs bootstrap Date: Thu, 06 Apr 2017 20:39:20 -0400 Message-ID: <87d1cpuk3r.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491525563 27633 195.159.176.226 (7 Apr 2017 00:39:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Apr 2017 00:39:23 +0000 (UTC) Cc: Michal Nazarewicz To: 26388@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 07 02:39:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwHvk-0005oO-IG for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Apr 2017 02:39:12 +0200 Original-Received: from localhost ([::1]:48214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwHvn-0002o5-7w for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Apr 2017 20:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwHve-0002nz-6K for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2017 20:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwHvb-0005tN-39 for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2017 20:39:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37308) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwHva-0005t4-UI for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2017 20:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cwHva-0001ls-2u; Thu, 06 Apr 2017 20:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: mina86@mina86.com, bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Apr 2017 00:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26388 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Michal Nazarewicz Original-Received: via spool by submit@debbugs.gnu.org id=B.14915254926739 (code B ref -1); Fri, 07 Apr 2017 00:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Apr 2017 00:38:12 +0000 Original-Received: from localhost ([127.0.0.1]:35506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwHul-0001kd-OS for submit@debbugs.gnu.org; Thu, 06 Apr 2017 20:38:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cwHuj-0001kP-QA for submit@debbugs.gnu.org; Thu, 06 Apr 2017 20:38:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwHud-0005d7-Gh for submit@debbugs.gnu.org; Thu, 06 Apr 2017 20:38:04 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42798) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cwHud-0005d3-DV for submit@debbugs.gnu.org; Thu, 06 Apr 2017 20:38:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cwHub-0002dl-VL for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2017 20:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cwHuY-0005Yv-QD for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2017 20:38:01 -0400 Original-Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]:35949) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cwHuY-0005YJ-K7 for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2017 20:37:58 -0400 Original-Received: by mail-it0-x234.google.com with SMTP id 19so15289690itj.1 for ; Thu, 06 Apr 2017 17:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=z13N4AxYuFo3/P7kpA1GisoZdmWuiWGGHx/830qSCuM=; b=kD+Z6Lpyd/CausKNZxgRAaL0cbtwSY0wNusCpblV6+A031vRLE1wGFitBK7h/hc4N9 r8fgdw5ZTNnE1jYAZ5L8prpZ7aJfBskEe1QkwiHvI2iKWRfVN6JdRadrqlttOslx+GKQ EY7MRwa6/5ZBz9ADC+T/uqg/vcLHwVVw346qrCMi6IKDjBb6RUEfxkc6f8q4LDJ5kub2 nn0jpQ88cpfX9MlX6ysBH29tirc3XFdnOp4DTumRyeGrRXHSfe7WE8NlQNFGh+J7bbXy K6Hi8yQqcj+21jGUlsZh4BlxyRxCnWl39aTLcmemzQI8EGqcWBC/MSlg6SB5Mgz+X949 whAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=z13N4AxYuFo3/P7kpA1GisoZdmWuiWGGHx/830qSCuM=; b=l70vJ4PLBsoljNeLqTC60w9GR8mxY+XGy44Lii1yeyDEBHWGISxegeW799vszL4w7D RcNKy1zhaBk63bvYzMqqLBx1sdjq0RN7VpwuQyZoWDP9H+ijKwk/tIav3tfVh52pHcdi JLRsSCqAS924abjN8axTcEnH/SkeZqkNcP7nfd9P36SsBbzlTq4cqBODF4JYjsDNPYyU zxttPD7B0oyVXcgF0EFpXkQg4r6RydqmG3tV0ieDnhnibat8NrUZQ2aM1mMQ7mkmvEBD sgk5Fiuuus6Q155dmi1P1+DzDSKdEr/+HuUg6P7rTU/mpDZ/o9PDzuNIJ/3Q9gGICKzU Q/3w== X-Gm-Message-State: AFeK/H02PitYrgHKGdvE96JSWMalsu5lUkfEyUfK73YPpEuO56z7WMAh 7ahvzkMkJzSKV88H X-Received: by 10.36.53.194 with SMTP id k185mr27426081ita.27.1491525477724; Thu, 06 Apr 2017 17:37:57 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id y203sm1753972iod.11.2017.04.06.17.37.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Apr 2017 17:37:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:131319 Archived-At: The patch below seems to fix it. According to the backtrace, I guess it's related to the recent casing changes. diff --git i/src/casefiddle.c w/src/casefiddle.c index 3b550470bf..b7782a83c3 100644 --- i/src/casefiddle.c +++ w/src/casefiddle.c @@ -66,16 +66,16 @@ prepare_casing_context (struct casing_context *ctx, ctx->inword = false; ctx->titlecase_char_table = (flag < CASE_CAPITALIZE ? Qnil - : uniprop_table (intern_c_string ("titlecase"))); + : uniprop_table (Qtitlecase)); ctx->specialcase_char_tables[CASE_UP] = (flag == CASE_DOWN ? Qnil - : uniprop_table (intern_c_string ("special-uppercase"))); + : uniprop_table (Qspecial_uppercase)); ctx->specialcase_char_tables[CASE_DOWN] = (flag == CASE_UP ? Qnil - : uniprop_table (intern_c_string ("special-lowercase"))); + : uniprop_table (Qspecial_lowercase)); ctx->specialcase_char_tables[CASE_CAPITALIZE] = (flag < CASE_CAPITALIZE ? Qnil - : uniprop_table (intern_c_string ("special-titlecase"))); + : uniprop_table (Qspecial_titlecase)); /* If the case table is flagged as modified, rescan it. */ if (NILP (XCHAR_TABLE (BVAR (current_buffer, downcase_table))->extras[1])) @@ -644,6 +644,11 @@ DEFUN ("capitalize-word", Fcapitalize_word, Scapitalize_word, 1, 1, "p", syms_of_casefiddle (void) { DEFSYM (Qidentity, "identity"); + DEFSYM (Qtitlecase, "titlecase"); + DEFSYM (Qspecial_uppercase, "special-uppercase"); + DEFSYM (Qspecial_lowercase, "special-lowercase"); + DEFSYM (Qspecial_titlecase, "special-titlecase"); + defsubr (&Supcase); defsubr (&Sdowncase); defsubr (&Scapitalize); Starting program: /home/npostavs/src/emacs/emacs-bootstrapping/src/temacs --batch --load loadup bootstrap [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Loading loadup.el (source)... Using load-path (/home/npostavs/src/emacs/emacs-bootstrapping/lisp /home/npostavs/src/emacs/emacs-bootstrapping/lisp/emacs-lisp /home/npostavs/src/emacs/emacs-bootstrapping/lisp/language /home/npostavs/src/emacs/emacs-bootstrapping/lisp/international /home/npostavs/src/emacs/emacs-bootstrapping/lisp/textmodes /home/npostavs/src/emacs/emacs-bootstrapping/lisp/vc) Loading emacs-lisp/byte-run (source)... Loading emacs-lisp/backquote (source)... Loading subr (source)... Loading version (source)... Loading widget (source)... Loading custom (source)... Loading emacs-lisp/map-ynp (source)... Loading international/mule (source)... Loading international/mule-conf (source)... lread.c:3914: Emacs fatal error: assertion failed: !NILP (Vpurify_flag) Breakpoint 1, terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:363 363 signal (sig, SIG_DFL); (gdb) bt #0 0x0000000000579826 in terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at emacs.c:363 #1 0x000000000060ec33 in die (msg=0x7678e2 "!NILP (Vpurify_flag)", file=0x766a68 "lread.c", line=3914) at alloc.c:7352 #2 0x000000000066db40 in intern_c_string_1 (str=0x7520e0 "titlecase", len=9) at lread.c:3914 #3 0x0000000000576884 in intern_c_string (str=0x7520e0 "titlecase") at lisp.h:3790 #4 0x00000000005dc84f in prepare_casing_context (ctx=0x7fffffffceb0, flag=CASE_CAPITALIZE, inbuffer=false) at casefiddle.c:69 #5 0x00000000005dd37f in casify_object (flag=CASE_CAPITALIZE, obj=...) at casefiddle.c:311 #6 0x00000000005dd47f in Fcapitalize (obj=...) at casefiddle.c:356 #7 0x00000000006325ac in eval_sub (form=...) at eval.c:2219 #8 0x0000000000632368 in eval_sub (form=...) at eval.c:2184 #9 0x000000000063446c in apply_lambda (fun=..., args=..., count=37) at eval.c:2875 #10 0x00000000006329af in eval_sub (form=...) at eval.c:2294 #11 0x000000000062d462 in Fprogn (body=...) at eval.c:449 #12 0x000000000062d4cf in prog_ignore (body=...) at eval.c:461 #13 0x000000000062f19c in Fwhile (args=...) at eval.c:982 #14 0x00000000006321f4 in eval_sub (form=...) at eval.c:2172 #15 0x000000000062d462 in Fprogn (body=...) at eval.c:449 #16 0x000000000062f0c4 in Flet (args=...) at eval.c:963 #17 0x00000000006321f4 in eval_sub (form=...) at eval.c:2172 #18 0x0000000000632963 in eval_sub (form=...) at eval.c:2290 #19 0x000000000062d462 in Fprogn (body=...) at eval.c:449 #20 0x000000000062f0c4 in Flet (args=...) at eval.c:963 #21 0x00000000006321f4 in eval_sub (form=...) at eval.c:2172 #22 0x0000000000668caa in readevalloop (readcharfun=..., stream=0xe5dea0 , sourcename=..., printflag=false, unibyte=..., readfun=..., start=..., end=...) at lread.c:1927 #23 0x0000000000667253 in Fload (file=..., noerror=..., nomessage=..., nosuffix=..., must_suffix=...) at lread.c:1332 #24 0x0000000000632683 in eval_sub (form=...) at eval.c:2233 #25 0x0000000000668caa in readevalloop (readcharfun=..., stream=0xe5cc60 , sourcename=..., printflag=false, unibyte=..., readfun=..., start=..., end=...) at lread.c:1927 #26 0x0000000000667253 in Fload (file=..., noerror=..., nomessage=..., nosuffix=..., must_suffix=...) at lread.c:1332 #27 0x0000000000632683 in eval_sub (form=...) at eval.c:2233 #28 0x0000000000631be5 in Feval (form=..., lexical=...) at eval.c:2041 #29 0x000000000057e1af in top_level_2 () at keyboard.c:1121 #30 0x000000000062ffc7 in internal_condition_case (bfun=0x57e192 , handlers=..., hfun=0x57dbc0 ) at eval.c:1324 #31 0x000000000057e1f0 in top_level_1 (ignore=...) at keyboard.c:1129 #32 0x000000000062f51e in internal_catch (tag=..., func=0x57e1b1 , arg=...) at eval.c:1091 #33 0x000000000057e0ea in command_loop () at keyboard.c:1090 #34 0x000000000057d6d5 in recursive_edit_1 () at keyboard.c:697 #35 0x000000000057d8b4 in Frecursive_edit () at keyboard.c:768 #36 0x000000000057b55b in main (argc=5, argv=0x7fffffffe958) at emacs.c:1687 Lisp Backtrace: "capitalize" (0xffffcf70) "format" (0xffffd130) "define-charset" (0xffffd370) "while" (0xffffd560) "let" (0xffffd7c0) "dolist" (0xffffd910) "let" (0xffffdb70) "load" (0xffffdfe0) "load" (0xffffe4a0)