GNOME Bugzilla – Bug 741358
smart_forward_search_without_scanning never returns
Last modified: 2014-12-10 19:26:59 UTC
Created attachment 292481 [details] The offending document Tell gedit to open the attached document and search for ">I". gedit stops responding. (gdb) bt
+ Trace 234411
Run till exit from #0 0x00007ffff71cd39f in _gtk_text_btree_char_is_invisible (iter=iter@entry=0x7fffffffd3b0) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c:2502 copy_segment (string=0x135e360, include_hidden=0, include_nonchars=<optimized out>, start=0x7fffffffd3b0, end=0x7fffffffd450) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c:2342 2342 in /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c Value returned is $22 = 0 (gdb) fin Run till exit from #0 copy_segment (string=0x135e360, include_hidden=0, include_nonchars=<optimized out>, start=0x7fffffffd3b0, end=0x7fffffffd450) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c:2342 _gtk_text_btree_get_text (start_orig=<optimized out>, end_orig=<optimized out>, include_hidden=0, include_nonchars=0) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c:2434 2434 in /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c (gdb) fin Run till exit from #0 _gtk_text_btree_get_text (start_orig=<optimized out>, end_orig=<optimized out>, include_hidden=0, include_nonchars=0) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c:2434 0x00007ffff71e8f25 in lines_match (start=start@entry=0x7fffffffd630, lines=lines@entry=0x1189d20, visible_only=visible_only@entry=1, slice=slice@entry=0, case_insensitive=case_insensitive@entry=1, match_start=match_start@entry=0x7fffffffd5e0, match_end=match_end@entry=0x7fffffffd680) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextiter.c:4706 4706 /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextiter.c: Nie ma takiego pliku ani katalogu. Value returned is $23 = (gchar *) 0xe80f40 "><**:********* **:****=\"******I*\">********-****-****-****-", '*' <repeats 12 times>, "</**:*********><**:********* **:****=\"***\">**I-****</**:*********></**:**********-*****>.&****; *** ******* **** *** *** ** ** ***"... (gdb) fin Run till exit from #0 0x00007ffff71e8f25 in lines_match ( start=start@entry=0x7fffffffd630, lines=lines@entry=0x1189d20, visible_only=visible_only@entry=1, slice=slice@entry=0, case_insensitive=case_insensitive@entry=1, match_start=match_start@entry=0x7fffffffd5e0, match_end=match_end@entry=0x7fffffffd680) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextiter.c:4706 0x00007ffff71e95b6 in gtk_text_iter_forward_search ( iter=iter@entry=0x7fffffffd740, str=str@entry=0x135cec0 ">I", flags=flags@entry=(GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY | GTK_TEXT_SEARCH_CASE_INSENSITIVE), match_start=match_start@entry=0x7fffffffda10, match_end=match_end@entry=0x7fffffffda60, limit=limit@entry=0x7fffffffd920) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextiter.c:4938 4938 in /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextiter.c Value returned is $24 = 1 (gdb) fin Run till exit from #0 0x00007ffff71e95b6 in gtk_text_iter_forward_search ( iter=iter@entry=0x7fffffffd740, str=str@entry=0x135cec0 ">I", flags=flags@entry=(GTK_TEXT_SEARCH_VISIBLE_ONLY | GTK_TEXT_SEARCH_TEXT_ONLY | GTK_TEXT_SEARCH_CASE_INSENSITIVE), match_start=match_start@entry=0x7fffffffda10, match_end=match_end@entry=0x7fffffffda60, limit=limit@entry=0x7fffffffd920) at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextiter.c:4938 basic_forward_search (search=search@entry=0xdaa310, iter=iter@entry=0x7fffffffd8d0, match_start=match_start@entry=0x7fffffffda10, match_end=match_end@entry=0x7fffffffda60, limit=limit@entry=0x7fffffffd920) at gtksourcesearchcontext.c:777 777 if (!found || !gtk_source_search_settings_get_at_word_boundaries (search->priv->settings)) Value returned is $25 = 0 (gdb) fin Run till exit from #0 basic_forward_search (search=search@entry=0xdaa310, iter=iter@entry=0x7fffffffd8d0, match_start=match_start@entry=0x7fffffffda10, match_end=match_end@entry=0x7fffffffda60, limit=limit@entry=0x7fffffffd920) at gtksourcesearchcontext.c:777 0x00007ffff78e0400 in smart_forward_search_without_scanning ( search=search@entry=0xdaa310, start_at=start_at@entry=0x7fffffffd9c0, match_start=match_start@entry=0x7fffffffda10, match_end=match_end@entry=0x7fffffffda60, stop_at=stop_at@entry=0x7fffffffdcd0) at gtksourcesearchcontext.c:1400 1400 while (basic_forward_search (search, &iter, match_start, match_end, &limit)) Value returned is $26 = 0 (gdb) fin Run till exit from #0 0x00007ffff78e0400 in smart_forward_search_without_scanning (search=search@entry=0xdaa310, start_at=start_at@entry=0x7fffffffd9c0, match_start=match_start@entry=0x7fffffffda10, match_end=match_end@entry=0x7fffffffda60, stop_at=stop_at@entry=0x7fffffffdcd0) at gtksourcesearchcontext.c:1400 (never returns)
This only happens when I use incremental search; searching from the dialogue box works.
*** This bug has been marked as a duplicate of bug 127731 ***