Re: GtkTextIter functions



"Padraig O'Briain" <Padraig Obriain Sun COM> writes:

> I have found that if I call gtk_text_iter_inside_word () for an iterator, for 
> which gtk_text_iter_is_end () returns TRUE, I get a crash. I have included a 
> stack trace (from dbx rather than gdb)
> 
> =>[1] inside_word_func(0x0, 0x0, 0x0, 0x0, 0xff0b26a8, 0xff3b0b28), at 
> 0xff0b26e4
>   [2] test_log_attrs(0xffbec300, 0xff0b26a8, 0xff0b26a8, 0x9, 0x0, 0x100790), at 
> 0xff0b2ba4
>   [3] gtk_text_iter_inside_word(0xffbec300, 0xffbec300, 0xfe865e58, 0xfe865d80, 
> 0xc63d8, 0x21c), at 0xff0b33ec
>   [4] gail_text_helper_get_text(0xc6040, 0x0, 0x2, 0x1, 0xcf, 0xffbec568), at 
> 0xfe84ad98
>   [5] get_text_near_offset(0xc7828, 0x2, 0x1, 0xcf, 0xffbec568, 0xffbec564), at 
> 0xfe852008
>   [6] gail_text_view_get_text_after_offset(0xc7828, 0xcf, 0x1, 0xffbec568, 
> 0xffbec564, 0xfe84d6e4), at 0xfe84d750
>   [7] atk_text_get_text_after_offset(0xc7828, 0xcf, 0x1, 0xffbec568, 0xffbec564, 
> 0x72000000), at 0xff2349d0
> 
> 
> Is this a coding error on my part in that I ought to check whether the iterator 
> is the end iterator or is it a bug in the function gtk_text_iter_inside_word ()? 
> I have not checked but I believe that the same problem occurs with all the 
> GtkTextIter functions which check an iterator.

The later, please bugzilla if it isn't already there. (It looks
like it might be a duplicate of #61729, but it would be good to
at least add an addition to that bug indicating that it happens
in your case as well, and a test case.)

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]