Package: emacs;
Reported by: Ken Raeburn <raeburn <at> permabit.com>
Date: Thu, 15 Oct 2015 08:26:01 UTC
Severity: normal
Merged with 21802
Found in version 25.0.50
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21688 in the body.
You can then email your comments to 21688 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
View this report as an mbox folder, status mbox, maintainer mbox
bug-gnu-emacs <at> gnu.org
:bug#21688
; Package emacs
.
(Thu, 15 Oct 2015 08:26:02 GMT) Full text and rfc822 format available.Ken Raeburn <raeburn <at> permabit.com>
:bug-gnu-emacs <at> gnu.org
.
(Thu, 15 Oct 2015 08:26:02 GMT) Full text and rfc822 format available.Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Ken Raeburn <raeburn <at> permabit.com> To: bug-gnu-emacs <at> gnu.org Subject: 25.0.50; abort in regex.c during "align" Date: Thu, 15 Oct 2015 04:25:21 -0400
I'm getting an abort in the regex code while doing an align operation on some perl code. I've boiled down a test case to reproduce it to this: (setq my-string "#!/usr/bin/perl -w\n\nBEGIN {\n %f = (\n \"bio\" => \"blue\",\n \"eng\" => \"purple\",\n \"other\" => \"black\",\n );\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^[0]//;\n }\n}\n") (setq my-buffer (get-buffer-create "foo")) (switch-to-buffer my-buffer) (insert my-string) (cperl-mode) (goto-char (point-min)) (search-forward "\"bio\"") (move-beginning-of-line nil) (sit-for 1) ; Important? (setq start (point)) (backward-up-list) (forward-sexp) (move-beginning-of-line nil) (setq end (point)) (align start end) I invoke this with: emacs -Q -l test.el or emacs -Q -nw -l test.el The perl code is briefly displayed, and then Emacs aborts. It seems pretty sensitive to minor changes to the text, or to not delaying in the middle. (gdb) bt full #0 0x00007ffff30b6425 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 resultvar = 0 pid = <optimized out> selftid = 16684 #1 0x00007ffff30b9b8b in __GI_abort () at abort.c:91 save_stage = 2 act = { __sigaction_handler = { sa_handler = 0x5b, sa_sigaction = 0x5b }, sa_mask = { __val = {0, 140737270803528, 140737354010624, 280, 4477183, 0, 206158430232, 4294967295, 140737488338704, 0, 66, 9148144, 0, 140737488338928, 66, 0} }, sa_flags = -136411276, sa_restorer = 0x5 } sigs = { __val = {32, 0 <repeats 15 times>} } #2 0x000000000057bc71 in re_match_2_internal (bufp=0xc942a0, string1=<optimized out>, size1=<optimized out>, string2=0xd56176 "=> \"blue\",\n", ' ' <repeats 21 times>, "\"eng\" => \"purple\",\n", ' ' <repeats 21 times>, "\"other\" => \"black\",\n", ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^"..., size2=213, pos=119, regs=0xc95360, stop=160) at ../../src/regex.c:6256 str = 0xd561c0 "\"other\" => \"black\",\n", ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^[0]//;\n }\n}\n" pat = 0xf62973 "\006\001\016\021" mcnt = <optimized out> reg = <optimized out> end1 = <optimized out> end2 = 0xd5624b "" end_match_1 = 0xd56152 "" end_match_2 = 0xd561d4 ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^[0]//;\n }\n}\n" d = 0xd561c0 "\"other\" => \"black\",\n", ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^[0]//;\n }\n}\n" dend = 0xd561d4 ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^[0]//;\n }\n}\n" dfail = <optimized out> p = 0xf62977 "" pend = <optimized out> translate = 18970709 multibyte = 0 '\000' target_multibyte = 1 '\001' fail_stack = { stack = <optimized out>, size = 80, avail = 66, frame = 66 } nfailure_points_pushed = 22 nfailure_points_popped = 1 num_regs = 3 regstart = 0x7fffffffc310 regend = 0x7fffffffc2e0 best_regs_set = 0 best_regstart = 0x7fffffffc2b0 best_regend = 0x7fffffffc280 match_end = 0x0 sa_avail = 12448 sa_must_free = false __PRETTY_FUNCTION__ = "re_match_2_internal" #3 0x0000000000585584 in re_search_2 (bufp=0xc942a0, str1=0xd56110 "#!/usr/bin/perl -w\n\nBEGIN {\n %f = (\n", ' ' <repeats 21 times>, "\"bio\" ", size1=66, str2=0xd56176 "=> \"blue\",\n", ' ' <repeats 21 times>, "\"eng\" => \"purple\",\n", ' ' <repeats 21 times>, "\"other\" => \"black\",\n", ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^"..., size2=213, startpos=119, range=41, regs=0xc95360, stop=160) at ../../src/regex.c:4446 val = <optimized out> string1 = 0xd56110 "#!/usr/bin/perl -w\n\nBEGIN {\n %f = (\n", ' ' <repeats 21 times>, "\"bio\" " string2 = 0xd56176 "=> \"blue\",\n", ' ' <repeats 21 times>, "\"eng\" => \"purple\",\n", ' ' <repeats 21 times>, "\"other\" => \"black\",\n", ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^"... fastmap = 0xc942e0 '\001' <repeats 200 times>... translate = 18970709 total_size = 279 endpos = <optimized out> anchored_start = <optimized out> multibyte = 1 '\001' #4 0x0000000000577a28 in search_buffer (string=<optimized out>, pos=<optimized out>, pos_byte=<optimized out>, lim=161, lim_byte=161, n=<optimized out>, RE=1, trt=18970709, inverse_trt=18950421, posix=false) at ../../src/search.c:1267 val = <optimized out> p2 = 0xd56176 "=> \"blue\",\n", ' ' <repeats 21 times>, "\"eng\" => \"purple\",\n", ' ' <repeats 21 times>, "\"other\" => \"black\",\n", ' ' <repeats 20 times>, ");\n}\n\nsub new {\n $zname =~ s/::/:/g;\n if ($zname =~ /^(.+):$/i) {\n $foobar =~ s/^"... s1 = 66 p1 = <optimized out> s2 = <optimized out> bufp = 0xc942a0 len = <optimized out> len_byte = <optimized out> i = <optimized out> #5 0x0000000000578206 in search_command (string=15220516, bound=<optimized out>, noerror=44160, count=<optimized out>, direction=<optimized out>, RE=1, posix=false) at ../../src/search.c:1060 np = <optimized out> lim = 161 lim_byte = 161 n = <optimized out> #6 0x000000000057850c in Fre_search_forward (regexp=<optimized out>, bound=<optimized out>, noerror=<optimized out>, count=<optimized out>) at ../../src/search.c:2245 No locals. #7 0x00000000005afbde in Ffuncall (nargs=4, args=0x7fffffffd418) at ../../src/eval.c:2661 internal_argbuf = {15220516, 15128833, 44160, 0, 38, 5999846, 140737488344832, 154} fun = <optimized out> original_fun = <optimized out> funcar = 0 numargs = 3 lisp_numargs = 6 val = <optimized out> internal_args = 0x7fffffffd420 count = 40 #8 0x00000000005eed5d in exec_byte_code (bytestr=16684, vector=16684, maxdepth=6, args_template=256, nargs=4, args=0x400000000d000000) at ../../src/bytecode.c:880 targets = {0x5eeb2a, 0x5ef394, 0x5ef399, 0x5ef39e, 0x5ef3a5, 0x5eeb8b, 0x5eeeca, 0x5f06f0, 0x5eef3f, 0x5eef44, 0x5eef10, 0x5eef15, 0x5eebcc, 0x5eebd0, 0x5ef07f, 0x5eef1a, 0x5ef24a, 0x5ef24f, 0x5eeff9, 0x5eeffe, 0x5eec59, 0x5eec60, 0x5ef028, 0x5ef003, 0x5eefbb, 0x5eefc0, 0x5eefc5, 0x5eefd5, 0x5eecf1, 0x5eecf8, 0x5ef06b, 0x5eef96, 0x5eef87, 0x5eef8c, 0x5eef91, 0x5eef5d, 0x5eed37, 0x5eed40, 0x5eefe5, 0x5eef62, 0x5f07bb, 0x5f07c0, 0x5f07c5, 0x5f0791, 0x5eed80, 0x5eed80, 0x5eef49, 0x5f0796, 0x5f05ab, 0x5f05a0, 0x5f043a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5f14bc, 0x5f140e, 0x5f1465, 0x5f128e, 0x5f12e5, 0x5ef254, 0x5ef199, 0x5f1364, 0x5ef128, 0x5ef1d9, 0x5f13ce, 0x5f0e68, 0x5f169d, 0x5f1623, 0x5f1660, 0x5f15f4, 0x5f16dd, 0x5f171d, 0x5f0cd3, 0x5f125f, 0x5f11df, 0x5f121f, 0x5f10de, 0x5f111e, 0x5f1165, 0x5f11a2, 0x5f0e97, 0x5f0f24, 0x5f0f64, 0x5f0fa8, 0x5f1054, 0x5f100f, 0x5f1099, 0x5ef963, 0x5f00f1, 0x5f0075, 0x5f00b4, 0x5eff81, 0x5effbe, 0x5efffb, 0x5efd7e, 0x5eeddd, 0x5efddf, 0x5efe0e, 0x5efe8c, 0x5efef1, 0x5eff52, 0x5ef9a8, 0x5ef9d9, 0x5efa0a, 0x5efa62, 0x5eeb2a, 0x5efab2, 0x5efae7, 0x5efb1c, 0x5efb51, 0x5efb86, 0x5efbbb, 0x5eeddd, 0x5eeb2a, 0x5efbea, 0x5efc31, 0x5efc60, 0x5efc8f, 0x5efccf, 0x5efd0f, 0x5ef5d3, 0x5ef620, 0x5ef660, 0x5ef6a0, 0x5ef6e0, 0x5ef715, 0x5eeb2a, 0x5f0373, 0x5f07d5, 0x5ef093, 0x5f0898, 0x5f0b47, 0x5f0bd9, 0x5f0304, 0x5f0352, 0x5ef03c, 0x5f01f6, 0x5f0174, 0x5f03c7, 0x5f03f5, 0x5f05d9, 0x5f0646, 0x5f068d, 0x5f0acc, 0x5f012e, 0x5ef744, 0x5ef788, 0x5ef7b7, 0x5ef7e6, 0x5ef815, 0x5ef844, 0x5ef884, 0x5ef8c4, 0x5ef904, 0x5ef944, 0x5ef3b5, 0x5ef3f5, 0x5ef435, 0x5ef464, 0x5ef4a4, 0x5ef4e4, 0x5ef53d, 0x5ef596, 0x5f0038, 0x5efd3e, 0x5eee0b, 0x5eee73, 0x5eeb2a, 0x5f0996, 0x5f0a46, 0x5f0d02, 0x5f0de3, 0x5f0224, 0x5f15a4, 0x5f0ed4, 0x5efe3f, 0x5f074c, 0x5ef2b6, 0x5eeb2a, 0x5eeb2a, 0x5ef30e, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5ef359 <repeats 64 times>} count = 38 stack = { pc = 0xe8eae1 "\203.\004\006!\203*\002\006\035@\211\203\030\002\211\071\203\030\002\352\353\326\003!\006$\006$\354`\006*Z\355_\006+\006+Z\"%\210\202)\002\352\356\354`\006'Z\357_\006(\006(Z\"\"\210\210n\203\070\002`\006\024V\203\070\002\360u\210\006\021\204X\002\361\006\036\236A\206F\002\310\262\023\006\022<\204S\002\006\022C\262\023\006\022@\262\t\006\017\204g\002\362\006\036\236A\262\021\307\262\020\006\r\204\213\002\363\006\036\236\211\203y\002\211A\202\204\002\r9\203\203\002\rJ\202\204\002\r\262\001\262\017\307\262\016`\006\025V\203\255\002\311\262\026\336\006\025!\203\246\002\006\024\364 \311\223\210\202\255\002\306\364 \311\"\262\025\006\v\204\274"..., byte_string = 15262932, byte_string_start = 0xe8e8f8 "\004\205\b", next = 0x7fffffffd8c0 } result = 0 type = 167772160 #9 0x00000000005af892 in Ffuncall (nargs=6, args=0x7fffffffd7f8) at ../../src/eval.c:2711 fun = <optimized out> original_fun = 1881088 funcar = 0 numargs = 5 lisp_numargs = 6 val = <optimized out> internal_args = <optimized out> count = 37 #10 0x00000000005eed5d in exec_byte_code (bytestr=16684, vector=16684, maxdepth=6, args_template=0, nargs=6, args=0x400000000d000000) at ../../src/bytecode.c:880 targets = {0x5eeb2a, 0x5ef394, 0x5ef399, 0x5ef39e, 0x5ef3a5, 0x5eeb8b, 0x5eeeca, 0x5f06f0, 0x5eef3f, 0x5eef44, 0x5eef10, 0x5eef15, 0x5eebcc, 0x5eebd0, 0x5ef07f, 0x5eef1a, 0x5ef24a, 0x5ef24f, 0x5eeff9, 0x5eeffe, 0x5eec59, 0x5eec60, 0x5ef028, 0x5ef003, 0x5eefbb, 0x5eefc0, 0x5eefc5, 0x5eefd5, 0x5eecf1, 0x5eecf8, 0x5ef06b, 0x5eef96, 0x5eef87, 0x5eef8c, 0x5eef91, 0x5eef5d, 0x5eed37, 0x5eed40, 0x5eefe5, 0x5eef62, 0x5f07bb, 0x5f07c0, 0x5f07c5, 0x5f0791, 0x5eed80, 0x5eed80, 0x5eef49, 0x5f0796, 0x5f05ab, 0x5f05a0, 0x5f043a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5f14bc, 0x5f140e, 0x5f1465, 0x5f128e, 0x5f12e5, 0x5ef254, 0x5ef199, 0x5f1364, 0x5ef128, 0x5ef1d9, 0x5f13ce, 0x5f0e68, 0x5f169d, 0x5f1623, 0x5f1660, 0x5f15f4, 0x5f16dd, 0x5f171d, 0x5f0cd3, 0x5f125f, 0x5f11df, 0x5f121f, 0x5f10de, 0x5f111e, 0x5f1165, 0x5f11a2, 0x5f0e97, 0x5f0f24, 0x5f0f64, 0x5f0fa8, 0x5f1054, 0x5f100f, 0x5f1099, 0x5ef963, 0x5f00f1, 0x5f0075, 0x5f00b4, 0x5eff81, 0x5effbe, 0x5efffb, 0x5efd7e, 0x5eeddd, 0x5efddf, 0x5efe0e, 0x5efe8c, 0x5efef1, 0x5eff52, 0x5ef9a8, 0x5ef9d9, 0x5efa0a, 0x5efa62, 0x5eeb2a, 0x5efab2, 0x5efae7, 0x5efb1c, 0x5efb51, 0x5efb86, 0x5efbbb, 0x5eeddd, 0x5eeb2a, 0x5efbea, 0x5efc31, 0x5efc60, 0x5efc8f, 0x5efccf, 0x5efd0f, 0x5ef5d3, 0x5ef620, 0x5ef660, 0x5ef6a0, 0x5ef6e0, 0x5ef715, 0x5eeb2a, 0x5f0373, 0x5f07d5, 0x5ef093, 0x5f0898, 0x5f0b47, 0x5f0bd9, 0x5f0304, 0x5f0352, 0x5ef03c, 0x5f01f6, 0x5f0174, 0x5f03c7, 0x5f03f5, 0x5f05d9, 0x5f0646, 0x5f068d, 0x5f0acc, 0x5f012e, 0x5ef744, 0x5ef788, 0x5ef7b7, 0x5ef7e6, 0x5ef815, 0x5ef844, 0x5ef884, 0x5ef8c4, 0x5ef904, 0x5ef944, 0x5ef3b5, 0x5ef3f5, 0x5ef435, 0x5ef464, 0x5ef4a4, 0x5ef4e4, 0x5ef53d, 0x5ef596, 0x5f0038, 0x5efd3e, 0x5eee0b, 0x5eee73, 0x5eeb2a, 0x5f0996, 0x5f0a46, 0x5f0d02, 0x5f0de3, 0x5f0224, 0x5f15a4, 0x5f0ed4, 0x5efe3f, 0x5f074c, 0x5ef2b6, 0x5eeb2a, 0x5eeb2a, 0x5ef30e, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5ef359 <repeats 64 times>} count = 37 stack = { pc = 0xe85d79 "\202\222", byte_string = 15246948, byte_string_start = 0xe85d38 "\002\206\031", next = 0x7fffffffdcd0 } result = 0 type = CATCHER #11 0x00000000005ae59d in apply_lambda (fun=19895405, args=<optimized out>, count=36) at ../../src/eval.c:2751 args_left = <optimized out> i = <optimized out> numargs = 2 arg_vector = 0x7fffffffd920 tem = <optimized out> sa_avail = <optimized out> sa_must_free = <optimized out> #12 0x00000000005ae8d2 in eval_sub (form=<optimized out>) at ../../src/eval.c:2198 fun = <optimized out> val = <optimized out> original_fun = 4217216 original_args = 15169939 funcar = 6 count = 36 #13 0x00000000005db35e in readevalloop (readcharfun=13977749, stream=0x0, sourcename=15919540, printflag=false, unibyte=<optimized out>, readfun=0, start=0, end=0) at ../../src/lread.c:1905 c = <optimized out> val = 15169923 b = 0xd54890 continue_reading_p = true lex_bound = <optimized out> whole_buffer = true first_sexp = <optimized out> macroexpand = 372240 #14 0x00000000005dbb80 in Feval_buffer (buffer=<optimized out>, printflag=0, filename=15945556, unibyte=0, do_allow_print=<optimized out>) at ../../src/lread.c:1966 tem = <optimized out> buf = 13977749 #15 0x00000000005afb9c in Ffuncall (nargs=6, args=0x7fffffffdc48) at ../../src/eval.c:2666 internal_argbuf = {864, 140737488346400, 17686992, 5956090, 0, 5879994, 16416, 0} fun = <optimized out> original_fun = <optimized out> funcar = 0 numargs = 5 lisp_numargs = 6 val = <optimized out> internal_args = 0x7fffffffdc50 count = 27 #16 0x00000000005eed5d in exec_byte_code (bytestr=16684, vector=16684, maxdepth=6, args_template=0, nargs=6, args=0x400000000d000000) at ../../src/bytecode.c:880 targets = {0x5eeb2a, 0x5ef394, 0x5ef399, 0x5ef39e, 0x5ef3a5, 0x5eeb8b, 0x5eeeca, 0x5f06f0, 0x5eef3f, 0x5eef44, 0x5eef10, 0x5eef15, 0x5eebcc, 0x5eebd0, 0x5ef07f, 0x5eef1a, 0x5ef24a, 0x5ef24f, 0x5eeff9, 0x5eeffe, 0x5eec59, 0x5eec60, 0x5ef028, 0x5ef003, 0x5eefbb, 0x5eefc0, 0x5eefc5, 0x5eefd5, 0x5eecf1, 0x5eecf8, 0x5ef06b, 0x5eef96, 0x5eef87, 0x5eef8c, 0x5eef91, 0x5eef5d, 0x5eed37, 0x5eed40, 0x5eefe5, 0x5eef62, 0x5f07bb, 0x5f07c0, 0x5f07c5, 0x5f0791, 0x5eed80, 0x5eed80, 0x5eef49, 0x5f0796, 0x5f05ab, 0x5f05a0, 0x5f043a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5f14bc, 0x5f140e, 0x5f1465, 0x5f128e, 0x5f12e5, 0x5ef254, 0x5ef199, 0x5f1364, 0x5ef128, 0x5ef1d9, 0x5f13ce, 0x5f0e68, 0x5f169d, 0x5f1623, 0x5f1660, 0x5f15f4, 0x5f16dd, 0x5f171d, 0x5f0cd3, 0x5f125f, 0x5f11df, 0x5f121f, 0x5f10de, 0x5f111e, 0x5f1165, 0x5f11a2, 0x5f0e97, 0x5f0f24, 0x5f0f64, 0x5f0fa8, 0x5f1054, 0x5f100f, 0x5f1099, 0x5ef963, 0x5f00f1, 0x5f0075, 0x5f00b4, 0x5eff81, 0x5effbe, 0x5efffb, 0x5efd7e, 0x5eeddd, 0x5efddf, 0x5efe0e, 0x5efe8c, 0x5efef1, 0x5eff52, 0x5ef9a8, 0x5ef9d9, 0x5efa0a, 0x5efa62, 0x5eeb2a, 0x5efab2, 0x5efae7, 0x5efb1c, 0x5efb51, 0x5efb86, 0x5efbbb, 0x5eeddd, 0x5eeb2a, 0x5efbea, 0x5efc31, 0x5efc60, 0x5efc8f, 0x5efccf, 0x5efd0f, 0x5ef5d3, 0x5ef620, 0x5ef660, 0x5ef6a0, 0x5ef6e0, 0x5ef715, 0x5eeb2a, 0x5f0373, 0x5f07d5, 0x5ef093, 0x5f0898, 0x5f0b47, 0x5f0bd9, 0x5f0304, 0x5f0352, 0x5ef03c, 0x5f01f6, 0x5f0174, 0x5f03c7, 0x5f03f5, 0x5f05d9, 0x5f0646, 0x5f068d, 0x5f0acc, 0x5f012e, 0x5ef744, 0x5ef788, 0x5ef7b7, 0x5ef7e6, 0x5ef815, 0x5ef844, 0x5ef884, 0x5ef8c4, 0x5ef904, 0x5ef944, 0x5ef3b5, 0x5ef3f5, 0x5ef435, 0x5ef464, 0x5ef4a4, 0x5ef4e4, 0x5ef53d, 0x5ef596, 0x5f0038, 0x5efd3e, 0x5eee0b, 0x5eee73, 0x5eeb2a, 0x5f0996, 0x5f0a46, 0x5f0d02, 0x5f0de3, 0x5f0224, 0x5f15a4, 0x5f0ed4, 0x5efe3f, 0x5f074c, 0x5ef2b6, 0x5eeb2a, 0x5eeb2a, 0x5ef30e, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5ef359 <repeats 64 times>} count = 20 stack = { pc = 0xc293b1 "\210,\336\b!\210\016\"\204\256", byte_string = 9375868, byte_string_start = 0xc29325 "\306\b!\204\022", next = 0x7fffffffe200 } result = 0 type = 4 #17 0x00000000005af4fd in funcall_lambda (fun=9375741, nargs=<optimized out>, arg_vector=0x7fffffffde48) at ../../src/eval.c:2876 val = <optimized out> syms_left = <optimized out> next = 5 lexenv = 0 i = <optimized out> optional = <optimized out> rest = <optimized out> #18 0x00000000005af892 in Ffuncall (nargs=5, args=0x7fffffffde40) at ../../src/eval.c:2711 fun = <optimized out> original_fun = 3417920 funcar = 0 numargs = 4 lisp_numargs = 6 val = <optimized out> internal_args = <optimized out> count = 15 #19 0x00000000005afe99 in call4 (fn=<optimized out>, arg1=<optimized out>, arg2=<optimized out>, arg3=<optimized out>, arg4=<optimized out>) at ../../src/eval.c:2534 No locals. #20 0x00000000005dc534 in Fload (file=15946116, noerror=0, nomessage=44160, nosuffix=<optimized out>, must_suffix=<optimized out>) at ../../src/lread.c:1259 val = <optimized out> stream = <optimized out> fd = 12 fd_index = 10 found = 15945556 efound = <optimized out> hist_file_name = 15945556 newer = false compiled = false handler = <optimized out> safe_p = true fmode = 0x67fcaa "r" version = 0 #21 0x00000000005afb9c in Ffuncall (nargs=4, args=0x7fffffffe068) at ../../src/eval.c:2666 internal_argbuf = {15946116, 0, 44160, 0, 0, 15475748, 22, 4611686018595160064} fun = <optimized out> original_fun = <optimized out> funcar = 0 numargs = 3 lisp_numargs = 6 val = <optimized out> internal_args = 0x7fffffffe070 count = 9 #22 0x00000000005eed5d in exec_byte_code (bytestr=16684, vector=16684, maxdepth=6, args_template=1, nargs=4, args=0x400000000d000000) at ../../src/bytecode.c:880 targets = {0x5eeb2a, 0x5ef394, 0x5ef399, 0x5ef39e, 0x5ef3a5, 0x5eeb8b, 0x5eeeca, 0x5f06f0, 0x5eef3f, 0x5eef44, 0x5eef10, 0x5eef15, 0x5eebcc, 0x5eebd0, 0x5ef07f, 0x5eef1a, 0x5ef24a, 0x5ef24f, 0x5eeff9, 0x5eeffe, 0x5eec59, 0x5eec60, 0x5ef028, 0x5ef003, 0x5eefbb, 0x5eefc0, 0x5eefc5, 0x5eefd5, 0x5eecf1, 0x5eecf8, 0x5ef06b, 0x5eef96, 0x5eef87, 0x5eef8c, 0x5eef91, 0x5eef5d, 0x5eed37, 0x5eed40, 0x5eefe5, 0x5eef62, 0x5f07bb, 0x5f07c0, 0x5f07c5, 0x5f0791, 0x5eed80, 0x5eed80, 0x5eef49, 0x5f0796, 0x5f05ab, 0x5f05a0, 0x5f043a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5f14bc, 0x5f140e, 0x5f1465, 0x5f128e, 0x5f12e5, 0x5ef254, 0x5ef199, 0x5f1364, 0x5ef128, 0x5ef1d9, 0x5f13ce, 0x5f0e68, 0x5f169d, 0x5f1623, 0x5f1660, 0x5f15f4, 0x5f16dd, 0x5f171d, 0x5f0cd3, 0x5f125f, 0x5f11df, 0x5f121f, 0x5f10de, 0x5f111e, 0x5f1165, 0x5f11a2, 0x5f0e97, 0x5f0f24, 0x5f0f64, 0x5f0fa8, 0x5f1054, 0x5f100f, 0x5f1099, 0x5ef963, 0x5f00f1, 0x5f0075, 0x5f00b4, 0x5eff81, 0x5effbe, 0x5efffb, 0x5efd7e, 0x5eeddd, 0x5efddf, 0x5efe0e, 0x5efe8c, 0x5efef1, 0x5eff52, 0x5ef9a8, 0x5ef9d9, 0x5efa0a, 0x5efa62, 0x5eeb2a, 0x5efab2, 0x5efae7, 0x5efb1c, 0x5efb51, 0x5efb86, 0x5efbbb, 0x5eeddd, 0x5eeb2a, 0x5efbea, 0x5efc31, 0x5efc60, 0x5efc8f, 0x5efccf, 0x5efd0f, 0x5ef5d3, 0x5ef620, 0x5ef660, 0x5ef6a0, 0x5ef6e0, 0x5ef715, 0x5eeb2a, 0x5f0373, 0x5f07d5, 0x5ef093, 0x5f0898, 0x5f0b47, 0x5f0bd9, 0x5f0304, 0x5f0352, 0x5ef03c, 0x5f01f6, 0x5f0174, 0x5f03c7, 0x5f03f5, 0x5f05d9, 0x5f0646, 0x5f068d, 0x5f0acc, 0x5f012e, 0x5ef744, 0x5ef788, 0x5ef7b7, 0x5ef7e6, 0x5ef815, 0x5ef844, 0x5ef884, 0x5ef8c4, 0x5ef904, 0x5ef944, 0x5ef3b5, 0x5ef3f5, 0x5ef435, 0x5ef464, 0x5ef4a4, 0x5ef4e4, 0x5ef53d, 0x5ef596, 0x5f0038, 0x5efd3e, 0x5eee0b, 0x5eee73, 0x5eeb2a, 0x5f0996, 0x5f0a46, 0x5f0d02, 0x5f0de3, 0x5f0224, 0x5f15a4, 0x5f0ed4, 0x5efe3f, 0x5f074c, 0x5ef2b6, 0x5eeb2a, 0x5eeb2a, 0x5ef30e, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5ef359 <repeats 64 times>} count = 7 stack = { pc = 0xbbc31a "\266\003\202L\003\016A\356\235\203\027\002\352\002\206\b\002\n\211A\022\242!\351\001!\355\001\313\332\211$\266\003\202L\003\016A\357\232\203@\002\332\026B\001\206*\002\n\211A\022\242\262\n\006\t;\204\066\002\333\360!\210\361\352\006\v!!\210\202L\003\016A\362\232\203N\002\363\332!\210\202L\003\016A\364\232\203\\\002\365\366!\210\202L\003\322\367\016A\"\203n\002\005\370\016A!\240\210\202L\003\322\371\016A\"\203\215\002\005\370\326\327\016A\"!\240\210\004\370\326\372\016A\"!\240\210\202L\003\335\003\r\"\211\262\v\203\241\002\006\tA@\n\233\022\202L\003\335\003\016@\"\211\262\v\203\266\002\006\tA@\n\233\022\202L\003\016A\373\235"..., byte_string = 10404700, byte_string_start = 0xbbc128 "\306 \210\b\203\021", next = 0x7fffffffe410 } result = 0 type = 167772160 #23 0x00000000005af892 in Ffuncall (nargs=2, args=0x7fffffffe318) at ../../src/eval.c:2711 fun = <optimized out> original_fun = 8034176 funcar = 0 numargs = 1 lisp_numargs = 6 val = <optimized out> internal_args = <optimized out> count = 6 #24 0x00000000005eed5d in exec_byte_code (bytestr=16684, vector=16684, maxdepth=6, args_template=140737488347928, nargs=2, args=0x400000000d000000) at ../../src/bytecode.c:880 targets = {0x5eeb2a, 0x5ef394, 0x5ef399, 0x5ef39e, 0x5ef3a5, 0x5eeb8b, 0x5eeeca, 0x5f06f0, 0x5eef3f, 0x5eef44, 0x5eef10, 0x5eef15, 0x5eebcc, 0x5eebd0, 0x5ef07f, 0x5eef1a, 0x5ef24a, 0x5ef24f, 0x5eeff9, 0x5eeffe, 0x5eec59, 0x5eec60, 0x5ef028, 0x5ef003, 0x5eefbb, 0x5eefc0, 0x5eefc5, 0x5eefd5, 0x5eecf1, 0x5eecf8, 0x5ef06b, 0x5eef96, 0x5eef87, 0x5eef8c, 0x5eef91, 0x5eef5d, 0x5eed37, 0x5eed40, 0x5eefe5, 0x5eef62, 0x5f07bb, 0x5f07c0, 0x5f07c5, 0x5f0791, 0x5eed80, 0x5eed80, 0x5eef49, 0x5f0796, 0x5f05ab, 0x5f05a0, 0x5f043a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5f14bc, 0x5f140e, 0x5f1465, 0x5f128e, 0x5f12e5, 0x5ef254, 0x5ef199, 0x5f1364, 0x5ef128, 0x5ef1d9, 0x5f13ce, 0x5f0e68, 0x5f169d, 0x5f1623, 0x5f1660, 0x5f15f4, 0x5f16dd, 0x5f171d, 0x5f0cd3, 0x5f125f, 0x5f11df, 0x5f121f, 0x5f10de, 0x5f111e, 0x5f1165, 0x5f11a2, 0x5f0e97, 0x5f0f24, 0x5f0f64, 0x5f0fa8, 0x5f1054, 0x5f100f, 0x5f1099, 0x5ef963, 0x5f00f1, 0x5f0075, 0x5f00b4, 0x5eff81, 0x5effbe, 0x5efffb, 0x5efd7e, 0x5eeddd, 0x5efddf, 0x5efe0e, 0x5efe8c, 0x5efef1, 0x5eff52, 0x5ef9a8, 0x5ef9d9, 0x5efa0a, 0x5efa62, 0x5eeb2a, 0x5efab2, 0x5efae7, 0x5efb1c, 0x5efb51, 0x5efb86, 0x5efbbb, 0x5eeddd, 0x5eeb2a, 0x5efbea, 0x5efc31, 0x5efc60, 0x5efc8f, 0x5efccf, 0x5efd0f, 0x5ef5d3, 0x5ef620, 0x5ef660, 0x5ef6a0, 0x5ef6e0, 0x5ef715, 0x5eeb2a, 0x5f0373, 0x5f07d5, 0x5ef093, 0x5f0898, 0x5f0b47, 0x5f0bd9, 0x5f0304, 0x5f0352, 0x5ef03c, 0x5f01f6, 0x5f0174, 0x5f03c7, 0x5f03f5, 0x5f05d9, 0x5f0646, 0x5f068d, 0x5f0acc, 0x5f012e, 0x5ef744, 0x5ef788, 0x5ef7b7, 0x5ef7e6, 0x5ef815, 0x5ef844, 0x5ef884, 0x5ef8c4, 0x5ef904, 0x5ef944, 0x5ef3b5, 0x5ef3f5, 0x5ef435, 0x5ef464, 0x5ef4a4, 0x5ef4e4, 0x5ef53d, 0x5ef596, 0x5f0038, 0x5efd3e, 0x5eee0b, 0x5eee73, 0x5eeb2a, 0x5f0996, 0x5f0a46, 0x5f0d02, 0x5f0de3, 0x5f0224, 0x5f15a4, 0x5f0ed4, 0x5efe3f, 0x5f074c, 0x5ef2b6, 0x5eeb2a, 0x5eeb2a, 0x5ef30e, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5ef359 <repeats 64 times>} count = 6 stack = { pc = 0xbbecf4 "\210\307\016@\211\203k\006\211@\002\204d\006\211;\203d\006\201\316", byte_string = 10381684, byte_string_start = 0xbbe6d3 "\306 \020\307\021\n\023\307\024\310\311!\211\307=\204\060", next = 0x7fffffffe5e0 } result = 0 type = CONDITION_CASE #25 0x00000000005af892 in Ffuncall (nargs=1, args=0x7fffffffe530) at ../../src/eval.c:2711 fun = <optimized out> original_fun = 8033456 funcar = 0 numargs = 0 lisp_numargs = 6 val = <optimized out> internal_args = <optimized out> count = 5 #26 0x00000000005eed5d in exec_byte_code (bytestr=16684, vector=16684, maxdepth=6, args_template=1, nargs=1, args=0x400000000d000000) at ../../src/bytecode.c:880 targets = {0x5eeb2a, 0x5ef394, 0x5ef399, 0x5ef39e, 0x5ef3a5, 0x5eeb8b, 0x5eeeca, 0x5f06f0, 0x5eef3f, 0x5eef44, 0x5eef10, 0x5eef15, 0x5eebcc, 0x5eebd0, 0x5ef07f, 0x5eef1a, 0x5ef24a, 0x5ef24f, 0x5eeff9, 0x5eeffe, 0x5eec59, 0x5eec60, 0x5ef028, 0x5ef003, 0x5eefbb, 0x5eefc0, 0x5eefc5, 0x5eefd5, 0x5eecf1, 0x5eecf8, 0x5ef06b, 0x5eef96, 0x5eef87, 0x5eef8c, 0x5eef91, 0x5eef5d, 0x5eed37, 0x5eed40, 0x5eefe5, 0x5eef62, 0x5f07bb, 0x5f07c0, 0x5f07c5, 0x5f0791, 0x5eed80, 0x5eed80, 0x5eef49, 0x5f0796, 0x5f05ab, 0x5f05a0, 0x5f043a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5f14bc, 0x5f140e, 0x5f1465, 0x5f128e, 0x5f12e5, 0x5ef254, 0x5ef199, 0x5f1364, 0x5ef128, 0x5ef1d9, 0x5f13ce, 0x5f0e68, 0x5f169d, 0x5f1623, 0x5f1660, 0x5f15f4, 0x5f16dd, 0x5f171d, 0x5f0cd3, 0x5f125f, 0x5f11df, 0x5f121f, 0x5f10de, 0x5f111e, 0x5f1165, 0x5f11a2, 0x5f0e97, 0x5f0f24, 0x5f0f64, 0x5f0fa8, 0x5f1054, 0x5f100f, 0x5f1099, 0x5ef963, 0x5f00f1, 0x5f0075, 0x5f00b4, 0x5eff81, 0x5effbe, 0x5efffb, 0x5efd7e, 0x5eeddd, 0x5efddf, 0x5efe0e, 0x5efe8c, 0x5efef1, 0x5eff52, 0x5ef9a8, 0x5ef9d9, 0x5efa0a, 0x5efa62, 0x5eeb2a, 0x5efab2, 0x5efae7, 0x5efb1c, 0x5efb51, 0x5efb86, 0x5efbbb, 0x5eeddd, 0x5eeb2a, 0x5efbea, 0x5efc31, 0x5efc60, 0x5efc8f, 0x5efccf, 0x5efd0f, 0x5ef5d3, 0x5ef620, 0x5ef660, 0x5ef6a0, 0x5ef6e0, 0x5ef715, 0x5eeb2a, 0x5f0373, 0x5f07d5, 0x5ef093, 0x5f0898, 0x5f0b47, 0x5f0bd9, 0x5f0304, 0x5f0352, 0x5ef03c, 0x5f01f6, 0x5f0174, 0x5f03c7, 0x5f03f5, 0x5f05d9, 0x5f0646, 0x5f068d, 0x5f0acc, 0x5f012e, 0x5ef744, 0x5ef788, 0x5ef7b7, 0x5ef7e6, 0x5ef815, 0x5ef844, 0x5ef884, 0x5ef8c4, 0x5ef904, 0x5ef944, 0x5ef3b5, 0x5ef3f5, 0x5ef435, 0x5ef464, 0x5ef4a4, 0x5ef4e4, 0x5ef53d, 0x5ef596, 0x5f0038, 0x5efd3e, 0x5eee0b, 0x5eee73, 0x5eeb2a, 0x5f0996, 0x5f0a46, 0x5f0d02, 0x5f0de3, 0x5f0224, 0x5f15a4, 0x5f0ed4, 0x5efe3f, 0x5f074c, 0x5ef2b6, 0x5eeb2a, 0x5eeb2a, 0x5ef30e, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5eeb2a, 0x5ef359 <repeats 64 times>} count = 4 stack = { pc = 0xbbf3c8 "\210)\210\375\376\377\"\210\201H", byte_string = 10377692, byte_string_start = 0xbbf264 "\b\203\b", next = 0x0 } result = 0 type = CATCHER #27 0x00000000005ae59d in apply_lambda (fun=10377645, args=<optimized out>, count=3) at ../../src/eval.c:2751 args_left = <optimized out> i = <optimized out> numargs = 0 arg_vector = 0x7fffffffe640 tem = <optimized out> sa_avail = <optimized out> sa_must_free = <optimized out> #28 0x00000000005ae8d2 in eval_sub (form=<optimized out>) at ../../src/eval.c:2198 fun = <optimized out> val = <optimized out> original_fun = 8058480 original_args = 0 funcar = 6 count = 3 #29 0x00000000005b1802 in Feval (form=18112627, lexical=<optimized out>) at ../../src/eval.c:1953 No locals. #30 0x00000000005ad964 in internal_condition_case (bfun=0x527400 <top_level_2>, handlers=<optimized out>, hfun=0x5288e0 <cmd_error>) at ../../src/eval.c:1309 val = <optimized out> c = 0x40f4 #31 0x0000000000526b04 in top_level_1 (ignore=<optimized out>) at ../../src/keyboard.c:1105 No locals. #32 0x00000000005ad878 in internal_catch (tag=<error reading variable: Cannot access memory at address 0x40fc>, func=0x526ae0 <top_level_1>, arg=0) at ../../src/eval.c:1073 val = <optimized out> c = 0x40f4 #33 0x0000000000526a61 in command_loop () at ../../src/keyboard.c:1066 No locals. #34 0x00000000005283d6 in recursive_edit_1 () at ../../src/keyboard.c:673 val = <optimized out> #35 0x0000000000528735 in Frecursive_edit () at ../../src/keyboard.c:744 buffer = <optimized out> #36 0x0000000000412608 in main (argc=<optimized out>, argv=<optimized out>) at ../../src/emacs.c:1644 dummy = 302865947 stack_bottom_variable = 0 '\000' do_initial_setlocale = <optimized out> dumping = <optimized out> skip_args = 0 rlim = { rlim_cur = 8720000, rlim_max = 18446744073709551615 } no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = 0x4 <Address 0x4 out of bounds> Lisp Backtrace: "re-search-forward" (0xffffd600) "align-region" (0xffffd800) "align" (0xffffd920) "eval-buffer" (0xffffdc50) "load-with-code-conversion" (0xffffde48) "load" (0xffffe178) "command-line-1" (0xffffe320) "command-line" (0xffffe538) "normal-top-level" (0xffffe640) (gdb) The current pattern buffer is: (gdb) p pat $1 = (const unsigned char *) 0xf62973 "\006\001\016\021" (gdb) p bufp $2 = (struct re_pattern_buffer *) 0xc942a0 (gdb) p *bufp $3 = { buffer = 0xf62970 "\016\355\001\006\001\016\021", allocated = 768, used = 605, syntax = 3408388, fastmap = 0xc942e0 '\001' <repeats 200 times>..., translate = 2, re_nsub = 8, can_be_null = 0, regs_allocated = 1, fastmap_accurate = 1, no_sub = 0, not_bol = 0, not_eol = 0, used_syntax = 0, multibyte = 0, target_multibyte = 1, charset_unibyte = 1 } (gdb) p *bufp->buffer <at> 300 $8 = "\016\355\001\006\001\016\021\000\005\f", '\000' <repeats 11 times>, "\020\r\030\000\016\030\000\002\001\\\005\020\000\000\000\000\000\000\377\003\376\377\377\207\230\277\353\a\r\b\000\016\b\000\002\002\\c\003\r]\000\016]\000\002\002\\x\006\002\016$\000\004\r\000\000\000\000\000\000\377\003~\000\000\000~\016\017\000\004\r\000\000\000\000\000\000\377\003~\000\000\000~\r+\000\037\002\001{\004\r\000\000\000\000\000\000\377\003~\000\000\000~\022\022\000\004\r\000\000\000\000\000\000\377\003~\000\000\000~\r\353\377\002\001}\a\002\r-\000\016-\000\002\001\\\016\003\000\002\001\060\004\a\000\000\000\000\000\000\377\016\t\000\004\a\000\000\000\000\000\000\377\016\t\000\004\a\000\000\000\000\000\000\377\r \000\002\003\\N{\022\025\000\005\020", '\000' <repeats 15 times>... The abort at 6256 is in the switch statement after the "fail" label. Since "pat" is only three bytes into the buffer, the value branched on would've been two bytes in, a 1, which is the "succeed" enumerator, which isn't expected in that switch statement. The regular expression it's searching for at the time, according to gdb, is: "\\(\\s-*\\)\\(&&\\|||\\|\\<and\\>\\|\\<or\\>\\)" The aligning operation works fine under older versions. Bisecting takes me to this commit: commit 3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea Author: Stefan Monnier <monnier <at> iro.umontreal.ca> Date: Fri Sep 11 20:00:05 2015 -0400 Merge syntax-propertize--done and parse-sexp-propertize-done With that version of the sources, or any later that I've tried, I'm getting the crash, and with the previous version it works okay. I've looked over the change, but I don't know enough about either the regex compiler or the syntax support to understand where the problem might be. In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2015-10-14 Repository revision: 5417bdc180b7a3ed3dc7f6422aa4a002a7983db4 Windowing system distributor 'The X.Org Foundation', version 11.0.11502000 System Description: Ubuntu 12.04.2 LTS Configured using: 'configure --prefix=/permabit/user/raeburn/dev/emacs/emacs/lx2/Inst --with-x-toolkit=lucid --enable-checking' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-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 messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 80991 6475) (symbols 48 18984 0) (miscs 40 39 110) (strings 32 13820 4191) (string-bytes 1 385519) (vectors 16 11278) (vector-slots 8 418962 4566) (floats 8 137 124) (intervals 56 256 224) (buffers 976 11) (heap 1024 18607 714))
bug-gnu-emacs <at> gnu.org
:bug#21688
; Package emacs
.
(Mon, 26 Oct 2015 02:59:02 GMT) Full text and rfc822 format available.Message #8 received at 21688 <at> debbugs.gnu.org (full text, mbox):
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA> To: Ken Raeburn <raeburn <at> permabit.com> Cc: 21688 <at> debbugs.gnu.org Subject: Re: bug#21688: 25.0.50; abort in regex.c during "align" Date: Sun, 25 Oct 2015 22:57:54 -0400
> I'm getting an abort in the regex code while doing an align operation on > some perl code. I've boiled down a test case to reproduce it to this: [...] > The abort at 6256 is in the switch statement after the "fail" label. > Since "pat" is only three bytes into the buffer, the value branched on > would've been two bytes in, a 1, which is the "succeed" enumerator, > which isn't expected in that switch statement. I think the issue is simply that syntax-propertization is now done on-the-fly during regexp-matching and that this is wrong: the regexp code is not re-entrant, so if syntax-propertization happens from regexp-matching and performs regexp-matching itself we're likely to see weird behaviors. I think the fix is to make regexp.c use a new UPDATE_SYNTAX_TABLE_FORWARD_FAST (which doesn't pay attention to syntax-propertize--done) instead of UPDATE_SYNTAX_TABLE_FORWARD. Stefan
Dima Kogan <dima <at> secretsauce.net>
to control <at> debbugs.gnu.org
.
(Sun, 01 Nov 2015 18:08:02 GMT) Full text and rfc822 format available.Paul Eggert <eggert <at> cs.ucla.edu>
:Ken Raeburn <raeburn <at> permabit.com>
:Message #15 received at 21688-done <at> debbugs.gnu.org (full text, mbox):
From: Paul Eggert <eggert <at> cs.ucla.edu> To: 21688-done <at> debbugs.gnu.org Cc: Ken Raeburn <raeburn <at> permabit.com>, Stefan Monnier <monnier <at> IRO.UMontreal.CA> Subject: Re: 25.0.50; abort in regex.c during "align",,Previous Next Date: Sun, 15 Nov 2015 01:34:06 -0800
I implemented Stefan's suggestion as emacs-25 commit 8121757b3ae6cbb7a7bac12b11ac32f243657aee and am marking this bug as done.
Paul Eggert <eggert <at> cs.ucla.edu>
:Dima Kogan <dima <at> secretsauce.net>
:bug-gnu-emacs <at> gnu.org
:bug#21688
; Package emacs
.
(Sat, 21 Nov 2015 22:24:02 GMT) Full text and rfc822 format available.Message #23 received at 21688 <at> debbugs.gnu.org (full text, mbox):
From: Paul Eggert <eggert <at> cs.ucla.edu> To: Ken Brown <kbrown <at> cornell.edu>, 21688 <at> debbugs.gnu.org Cc: John Wiegley <johnw <at> newartisans.com>, Stefan Monnier <monnier <at> IRO.UMontreal.CA> Subject: Re: [Emacs-diffs] emacs-25 8ff888a: Improve fix for regex reentrancy abort Date: Sat, 21 Nov 2015 14:23:07 -0800
John Wiegley wrote: >>>>>> Ken Brown<kbrown <at> cornell.edu> writes: >>> >>branch: emacs-25 >>> >>commit 8ff888a07d0500f1274723086469191aade0a33e >> >The message-mode-propertize test fails after this commit. > Let's make sure all tests are run prior to any commits on the emacs-25 branch. I briefly looked into getting that test working, but couldn't figure it out quickly, so I have reverted the fix for the regex reentrancy abort, in emacs-25 commit 8e84823f3f06714d0668060d62456cf7e3100e6c. This means Bug#21688 is no longer fixed, i.e., Emacs can dump core when aligning Perl code. I'll reopen Bug#21688. Perhaps Stefan or someone else will be able to knock a few cycles free to fix this. I'm afraid I've been spending most of my time elsewhere in Emacs recently, what with the new module code and all.
Debbugs Internal Request <help-debbugs <at> gnu.org>
to internal_control <at> debbugs.gnu.org
.
(Sat, 21 Nov 2015 22:25:01 GMT) Full text and rfc822 format available.bug-gnu-emacs <at> gnu.org
:bug#21688
; Package emacs
.
(Sun, 22 Nov 2015 02:25:01 GMT) Full text and rfc822 format available.Message #28 received at 21688 <at> debbugs.gnu.org (full text, mbox):
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA> To: Paul Eggert <eggert <at> cs.ucla.edu> Cc: John Wiegley <johnw <at> newartisans.com>, 21688 <at> debbugs.gnu.org, Ken Brown <kbrown <at> cornell.edu> Subject: Re: [Emacs-diffs] emacs-25 8ff888a: Improve fix for regex reentrancy abort Date: Sat, 21 Nov 2015 21:23:31 -0500
> Perhaps Stefan or someone else will be able to knock a few cycles free to > fix this. I'm afraid I've been spending most of my time elsewhere in Emacs > recently, what with the new module code and all. My crystal ball tells me that maybe it's just the following hunk which is to blame: diff --git a/src/syntax.c b/src/syntax.c index 5b0ec6d..f939a76 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -514,7 +514,6 @@ update_syntax_table_forward (ptrdiff_t charpos, bool init, { eassert (NILP (object)); eassert (charpos >= gl_state.e_property); - parse_sexp_propertize (charpos); } else { I think this hunk is just a mistake that was introduced during the "back&forth" that took place when you added and then removed the "bool propertize" argument. Stefan
Paul Eggert <eggert <at> cs.ucla.edu>
:Ken Raeburn <raeburn <at> permabit.com>
:Message #33 received at 21688-done <at> debbugs.gnu.org (full text, mbox):
From: Paul Eggert <eggert <at> cs.ucla.edu> To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>, 21688-done <at> debbugs.gnu.org Subject: Re: [Emacs-diffs] emacs-25 8e84823: Revert regexp reentrancy abort patch Date: Wed, 25 Nov 2015 00:10:25 -0800
Stefan Monnier wrote: > I think Bug#21688 can be re-closed. Thanks, reclosing.
Paul Eggert <eggert <at> cs.ucla.edu>
:Dima Kogan <dima <at> secretsauce.net>
:Debbugs Internal Request <help-debbugs <at> gnu.org>
to internal_control <at> debbugs.gnu.org
.
(Wed, 23 Dec 2015 12:24:03 GMT) Full text and rfc822 format available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.