Bug#867827: Incremental regexp search crashes after pressing backslash
Dear texinfo team,
(please keep cc)
down at Debian we got the following bug report:
On Sun, 09 Jul 2017, Ben Hutchings wrote:
> When I press C-s, \, info writes:
>
> regexp error: Trailing backslash
>
> and then segfaults.
I get the following backtrace:
(gdb) bt
#0 __GI___libc_free (mem=0x83e5) at malloc.c:2966
#1 0x000055ca237b1b9c in free_matches (state=state@entry=0x7ffee08077a0) at search.c:480
#2 0x000055ca237b4a73 in info_search_in_node_internal (window=window@entry=0x55ca24629710, node=node@entry=0x55ca246454f0,
string=string@entry=0x55ca24646e20 "\\", start=<optimized out>, dir=dir@entry=1, case_sensitive=case_sensitive@entry=0,
match_regexp=1, poff=0x7ffee0807958) at session.c:3957
#3 0x000055ca237b4e65 in info_search_internal (string=string@entry=0x55ca24646e20 "\\", window=window@entry=0x55ca24629710,
dir=<optimized out>, case_sensitive=0, start_off=start_off@entry=0x7ffee0807958) at session.c:4080
#4 0x000055ca237b596e in incremental_search (window=0x55ca24629710, count=<optimized out>) at session.c:5198
#5 0x000055ca237ba4d9 in info_read_and_dispatch () at session.c:253
#6 0x000055ca237ba68b in info_session (ref_list=<optimized out>, user_filename=<optimized out>, error=<optimized out>)
at session.c:221
#7 0x000055ca2379ed14 in main (argc=<optimized out>, argv=<optimized out>) at info.c:1079
All the best
Norbert
--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Reply to: