Error: attempt to compare iterators from different sequences

Jean-Marc Lasgouttes lasgouttes at lyx.org
Sun May 19 17:27:42 UTC 2024


Le 18/05/2024 à 17:28, Scott Kostyshak a écrit :
> When I compile LyX with some compiler debug flags and extra checks, I
> get the output below when trying to compile a .lyx file to PDF.
> 
> Anything worth fixing here?

Definitely. Could you run it under gdb and tell us where the error 
happened to happen (if I may say)?

JMarc

> 
> /usr/include/c++/12/debug/safe_iterator.h:472:
> In function:
>      bool gnu_debug::operator==(const
>      _Safe_iterator<std::_Rb_tree_const_iterator<std::
>      cxx11::basic_string<char> >, std::debug::set<std::
>      cxx11::basic_string<char> >, std::forward_iterator_tag>::_Self&, const
>      _Safe_iterator<std::_Rb_tree_const_iterator<std::
>      cxx11::basic_string<char> >, std::debug::set<std::
>      cxx11::basic_string<char> >, std::forward_iterator_tag>::_Self&)
> 
> Error: attempt to compare iterators from different sequences.
> 
> Objects involved in the operation:
>      iterator "lhs" @ 0x7f60d4fefbc0 {
>        type = std::_Rb_tree_const_iterator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > (constant iterator);
>        state = dereferenceable (start-of-sequence);
>        references sequence with type 'std::debug::set<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >' @ 0x7f60d4fefc20
>      }
>      iterator "rhs" @ 0x7f60d4fefbf0 {
>        type = std::_Rb_tree_const_iterator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > (constant iterator);
>        state = past-the-end;
>        references sequence with type 'std::debug::set<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >' @ 0x7f60d4fefc70
>      }
> Aborted (core dumped)
> 
> Scott
> 
> 



More information about the lyx-devel mailing list