Error: attempt to compare iterators from different sequences
Scott Kostyshak
skostysh at lyx.org
Thu Jun 6 15:33:44 UTC 2024
On Thu, Jun 06, 2024 at 09:00:05AM GMT, Jean-Marc Lasgouttes wrote:
> Le 20/05/2024 à 03:45, Scott Kostyshak a écrit :
> > Great, thanks! I pulled in the fix, made a fresh build and I get another error along the same lines.
>
> Actually the fix was faulty. Could you check that the issue is gone now?
The issue is gone, thanks!
With the same build (i.e., with debug flags), I still get two other issues.
One is from viewing (as PDF) doc/es/UserGuide.lyx in the GUI. I attach the backtrace as bt-view-in-gui.txt.
The other is from "lyx -e default Welcome.lyx". I attach the bt as bt-command-line-export.txt.
Scott
-------------- next part --------------
Thread 1 "lyx" received signal SIGSEGV, Segmentation fault.
std::_Rb_tree<int, std::pair<int const, QtPrivate::ResultItem>, std::_Select1st<std::pair<int const, QtPrivate::ResultItem> >, std::less<int>, std::allocator<std::pair<int const, QtPrivate::
ResultItem> > >::_M_lower_bound (__k=<synthetic pointer>: 1511848232,
__y=0x7ffff6a6793d <QFutureInterfaceBase::waitForResult(int)+109>, __x=0x4800000102850f00,
this=0x7ffff6a67935 <QFutureInterfaceBase::waitForResult(int)+101>) at /usr/include/c++/12/bits/stl_tree.h:1968
warning: Source file is more recent than executable.
1968 while (__x != 0)
(gdb) bt
#0 std::_Rb_tree<int, std::pair<int const, QtPrivate::ResultItem>, std::_Select1st<std::pair<int const, QtPrivate::ResultItem> >, std::less<int>, std::allocator<std::pair<int const, QtPriva
te::ResultItem> > >::_M_lower_bound (__k=<synthetic pointer>: 1511848232,
__y=0x7ffff6a6793d <QFutureInterfaceBase::waitForResult(int)+109>, __x=0x4800000102850f00,
this=0x7ffff6a67935 <QFutureInterfaceBase::waitForResult(int)+101>) at /usr/include/c++/12/bits/stl_tree.h:1968
#1 std::_Rb_tree<int, std::pair<int const, QtPrivate::ResultItem>, std::_Select1st<std::pair<int const, QtPrivate::ResultItem> >, std::less<int>, std::allocator<std::pair<int const, QtPriva
te::ResultItem> > >::lower_bound (__k=<synthetic pointer>: 1511848232,
this=0x7ffff6a67935 <QFutureInterfaceBase::waitForResult(int)+101>) at /usr/include/c++/12/bits/stl_tree.h:1274
#2 std::map<int, QtPrivate::ResultItem, std::less<int>, std::allocator<std::pair<int const, QtPrivate::ResultItem> > >::lower_bound (
__x=<synthetic pointer>: 1511848232, this=0x7ffff6a67935 <QFutureInterfaceBase::waitForResult(int)+101>)
at /usr/include/c++/12/bits/stl_map.h:1332
#3 QMap<int, QtPrivate::ResultItem>::lowerBound (key=<synthetic pointer>: 1511848232, this=<optimized out>)
at /usr/src/qt6-base-6.4.2+dfsg-6/obj-x86_64-linux-gnu/include/QtCore/../../../src/corelib/tools/qmap.h:670
#4 QtPrivate::findResult (store=..., index=1511848232) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/thread/qresultstore.cpp:19
#5 0x00005555560b795b in QFutureInterface<lyx::Buffer::ExportStatus>::resultReference (this=0x555556cb7160, index=0)
at /usr/include/x86_64-linux-gnu/qt6/QtCore/qfutureinterface.h:371
#6 0x00005555560b78d6 in QFuture<lyx::Buffer::ExportStatus>::result<lyx::Buffer::ExportStatus, void> (this=0x555556cb7160)
at /usr/include/x86_64-linux-gnu/qt6/QtCore/qfuture.h:308
#7 0x00005555560aa009 in QFutureWatcher<lyx::Buffer::ExportStatus>::result<lyx::Buffer::ExportStatus, void> (this=0x555556cb7150)
at /usr/include/x86_64-linux-gnu/qt6/QtCore/qfuturewatcher.h:113
#8 0x00005555560872ac in lyx::frontend::GuiView::processingThreadFinished (this=0x555556edc880)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiView.cpp:960
#9 0x00005555560a676f in lyx::frontend::GuiView::qt_static_metacall (_o=0x555556edc880, _c=QMetaObject::InvokeMetaMethod, _id=27,
_a=0x7fffffffd1d8) at /home/scott/lyxbuilds/master-master/CMakeBuild/src/frontends/qt/moc_GuiView.cpp:387
#10 0x00007ffff69726d3 in doActivate<false> (sender=0x555556cb7150, signal_index=4, argv=0x7fffffffd1d8)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qobject.cpp:3991
#11 0x00007ffff6a689d8 in QFutureWatcherBasePrivate::sendCallOutEvent (event=0x555558baad90, this=0x5555570d5d40)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/thread/qfuturewatcher.cpp:493
#12 QFutureWatcherBase::event (this=<optimized out>, event=0x555558baad90)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/thread/qfuturewatcher.cpp:392
#13 0x00007ffff778baab in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x555556cb7150, e=0x555558baad90)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/widgets/kernel/qapplication.cpp:3315
#14 0x000055555602aa8f in lyx::frontend::GuiApplication::notify (this=0x555556bdc030, receiver=0x555556cb7150, event=0x555558baad90)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:3001
#15 0x00007ffff6927858 in QCoreApplication::notifyInternal2 (receiver=0x555556cb7150, event=0x555558baad90)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1026
#16 0x00007ffff692789d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1442
#17 0x00007ffff6927a37 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x555556bbda10)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1804
#18 0x00007ffff6b17397 in postEventSourceDispatch (s=0x555556bdfb10)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qeventdispatcher_glib.cpp:243
#19 0x00007ffff671449d in g_main_dispatch (context=0x7fffec000f10) at ../../../glib/gmain.c:3460
#20 g_main_context_dispatch (context=0x7fffec000f10) at ../../../glib/gmain.c:4200
#21 0x00007ffff676f178 in g_main_context_iterate.constprop.0 (context=0x7fffec000f10, block=<optimized out>, dispatch=1,
self=<optimized out>) at ../../../glib/gmain.c:4276
#22 0x00007ffff67131b0 in g_main_context_iteration (context=0x7fffec000f10, may_block=1) at ../../../glib/gmain.c:4343
#23 0x00007ffff6b14f20 in QEventDispatcherGlib::processEvents (this=0x555556c45dd0, flags=...)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#24 0x00007ffff69319aa in QEventLoop::exec (this=0x7fffffffd840, flags=...)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/global/qflags.h:34
#25 0x00007ffff692a71c in QCoreApplication::exec () at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/global/qflags.h:74
#26 0x0000555556028fc3 in lyx::frontend::GuiApplication::exec (this=0x555556bdc030)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:2764
#27 0x0000555555a72eed in lyx::LyX::exec (this=0x7fffffffdbc0, argc=@0x7fffffffdbd8: 2, argv=0x7fffffffdcf8)
at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:377
#28 0x0000555555c79223 in main (argc=2, argv=0x7fffffffdcf8) at /home/scott/lyxbuilds/master-master/repo/src/main.cpp:55
(gdb)
-------------- next part --------------
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/unique_ptr.h:454: std::unique_ptr::pointer std::unique_ptr<lyx::frontend::Application>::operator->() const [_Tp = lyx::frontend::Application, _Dp = std::default_delete<lyx::frontend::Application>]: Assertion 'get() != pointer()' failed.
Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
Download failed: Invalid argument. Continuing without source file ./nptl/./nptl/pthread_kill.c.
44 ./nptl/pthread_kill.c: No such file or directory.
Undefined command: "pagination". Try "help".
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo at entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff603c3b6 in __GI_raise (sig=sig at entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff602287c in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff64e21cf in std::__glibcxx_assert_fail (file=<optimized out>, line=<optimized out>, function=<optimized out>, condition=<optimized out>)
at ../../../../../src/libstdc++-v3/src/c++11/debug.cc:61
#6 0x0000555555a7fb72 in std::unique_ptr<lyx::frontend::Application, std::default_delete<lyx::frontend::Application> >::operator-> (this=0x555556bdda78)
at /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/unique_ptr.h:454
#7 0x0000555555a7744e in lyx::LyX::init (this=0x7fffffffdbd0) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:980
#8 0x0000555555a74e19 in lyx::LyX::init (this=0x7fffffffdbd0, argc=@0x7fffffffdbe8: 2, argv=0x7fffffffdd08) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:463
#9 0x0000555555a7836f in lyx::LyX::execWithoutGui (this=0x7fffffffdbd0, argc=@0x7fffffffdbe8: 2, argv=0x7fffffffdd08) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:488
#10 0x0000555555a84565 in lyx::LyXConsoleApp::doExec (this=0x7fffffffda78) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:227
#11 0x0000555556438d7a in lyx::support::ConsoleApplicationPrivate::doExec (this=0x555556be0f30) at ../../../repo/src/support/ConsoleApplicationPrivate.h:61
#12 0x0000555556438951 in lyx::support::ConsoleApplicationPrivate::qt_static_metacall (_o=0x555556be0f30, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x555556be09d8)
at /home/scott/lyxbuilds/master-master/CMakeBuild/src/support/moc_ConsoleApplicationPrivate.cpp:92
#13 0x00007ffff6964d58 in QObject::event (this=0x555556be0f30, e=0x555556be0990) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qobject.cpp:1378
#14 0x00007ffff6927825 in doNotify (event=0x555556be0990, receiver=0x555556be0f30) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1122
#15 QCoreApplication::notify (event=<optimized out>, receiver=<optimized out>, this=<optimized out>) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1105
#16 QCoreApplication::notifyInternal2 (receiver=0x555556be0f30, event=0x555556be0990) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1026
#17 0x00007ffff692789d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1442
#18 0x00007ffff6927a37 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x555556bbda10)
at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qcoreapplication.cpp:1804
#19 0x00007ffff6b17397 in postEventSourceDispatch (s=0x555556be0590) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qeventdispatcher_glib.cpp:243
#20 0x00007ffff671449d in g_main_dispatch (context=0x555556bde740) at ../../../glib/gmain.c:3460
#21 g_main_context_dispatch (context=0x555556bde740) at ../../../glib/gmain.c:4200
#22 0x00007ffff676f178 in g_main_context_iterate.constprop.0 (context=0x555556bde740, block=<optimized out>, dispatch=1, self=<optimized out>) at ../../../glib/gmain.c:4276
#23 0x00007ffff67131b0 in g_main_context_iteration (context=0x555556bde740, may_block=1) at ../../../glib/gmain.c:4343
#24 0x00007ffff6b14f20 in QEventDispatcherGlib::processEvents (this=0x555556bdbed0, flags=...) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#25 0x00007ffff69319aa in QEventLoop::exec (this=0x7fffffffd830, flags=...) at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/global/qflags.h:34
#26 0x00007ffff692a71c in QCoreApplication::exec () at /usr/src/qt6-base-6.4.2+dfsg-6/src/corelib/global/qflags.h:74
#27 0x0000555556438d53 in lyx::support::ConsoleApplicationPrivate::execute (this=0x555556be0f30) at ../../../repo/src/support/ConsoleApplicationPrivate.h:56
#28 0x00005555564388e9 in lyx::support::ConsoleApplication::exec (this=0x7fffffffda78) at /home/scott/lyxbuilds/master-master/repo/src/support/ConsoleApplication.cpp:38
#29 0x0000555555a72c51 in lyx::LyX::exec (this=0x7fffffffdbd0, argc=@0x7fffffffdbe8: 2, argv=0x7fffffffdd08) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:334
#30 0x0000555555c79223 in main (argc=2, argv=0x7fffffffdd08) at /home/scott/lyxbuilds/master-master/repo/src/main.cpp:55
(gdb)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240606/7999d060/attachment-0001.asc>
More information about the lyx-devel
mailing list