After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 741358 - smart_forward_search_without_scanning never returns
smart_forward_search_without_scanning never returns
Status: RESOLVED DUPLICATE of bug 127731
Product: gtksourceview
Classification: Platform
Component: General
3.10.x
Other Linux
: Normal critical
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2014-12-10 19:17 UTC by Christopher Yeleighton
Modified: 2014-12-10 19:26 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10


Attachments
The offending document (67.39 KB, text/plain)
2014-12-10 19:17 UTC, Christopher Yeleighton
Details

Description Christopher Yeleighton 2014-12-10 19:17:45 UTC
Created attachment 292481 [details]
The offending document

Tell gedit to open the attached document and search for ">I".  gedit stops responding.  

(gdb) bt
  • #0 _gtk_text_btree_char_is_invisible
    at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c line 2502
  • #1 copy_segment
    at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c line 2343
  • #2 copy_segment
    at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c line 2328
  • #3 _gtk_text_btree_get_text
    at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextbtree.c line 2431
  • #4 lines_match
    at /build/buildd/gtk+3.0-3.10.8/./gtk/gtktextiter.c line 4706
  • #5 gtk_text_iter_forward_search
  • #6 basic_forward_search
    at gtksourcesearchcontext.c line 770
  • #7 smart_forward_search_without_scanning
    at gtksourcesearchcontext.c line 1400
  • #8 remove_occurrences_in_range
    at gtksourcesearchcontext.c line 1442
  • #9 scan_subregion
    at gtksourcesearchcontext.c line 1492
  • #10 scan_region_forward
    at gtksourcesearchcontext.c line 1607
  • #11 scan_task_region
    at gtksourcesearchcontext.c line 1689
  • #12 idle_scan_normal_search
    at gtksourcesearchcontext.c line 1718
  • #13 idle_scan_cb
    at gtksourcesearchcontext.c line 2059
  • #14 g_main_dispatch
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c line 3064
  • #15 g_main_context_dispatch
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c line 3663
  • #16 g_main_context_iterate
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c line 3734
  • #17 g_main_context_iteration
    at /build/buildd/glib2.0-2.40.2/./glib/gmain.c line 3795
  • #18 g_application_run
    at /build/buildd/glib2.0-2.40.2/./gio/gapplication.c line 2115
  • #19 main
    at gedit.c line 68
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)
Comment 1 Christopher Yeleighton 2014-12-10 19:21:44 UTC
This only happens when I use incremental search; searching from the dialogue box works.
Comment 2 Sébastien Wilmet 2014-12-10 19:26:59 UTC

*** This bug has been marked as a duplicate of bug 127731 ***