runtime error: load of value 4294967293, which is not a valid value for type 'const lyx::Update::flags'
Scott Kostyshak
skostysh at lyx.org
Sat Jan 22 15:04:44 UTC 2022
With Clang and fsanitize, I get the following error when I open a buffer:
runtime error: load of value 4294967293, which is not a valid value for type 'const lyx::Update::flags'
Attached is the backtrace (which is printed to terminal if I set 'export UBSAN_OPTIONS=print_stacktrace=1').
Scott
-------------- next part --------------
/home/scott/lyxbuilds/master/repo/src/update_flags.h:44:41: runtime error: load of value 4294967293, which is not a valid value for type 'const lyx::Update::flags'
#0 0xfe5bbf in lyx::Update::operator&(lyx::Update::flags, lyx::Update::flags) /home/scott/lyxbuilds/master/repo/src/update_flags.h:44:41
#1 0xfa9072 in lyx::BufferView::updateMetrics(lyx::Update::flags&) /home/scott/lyxbuilds/master/repo/src/BufferView.cpp:3025:31
#2 0xfac3ac in lyx::BufferView::updateMetrics() /home/scott/lyxbuilds/master/repo/src/BufferView.cpp:2933:2
#3 0xfd44b5 in lyx::BufferView::resize(int, int) /home/scott/lyxbuilds/master/repo/src/BufferView.cpp:2346:2
#4 0x21f5b16 in lyx::frontend::GuiWorkArea::init() /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiWorkArea.cpp:206:19
#5 0x21f4982 in lyx::frontend::GuiWorkArea::GuiWorkArea(lyx::Buffer&, lyx::frontend::GuiView&) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiWorkArea.cpp:178:2
#6 0x221fcc4 in lyx::frontend::TabWorkArea::addWorkArea(lyx::Buffer&, lyx::frontend::GuiView&) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiWorkArea.cpp:1743:25
#7 0x2180694 in lyx::frontend::GuiView::addWorkArea(lyx::Buffer&) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiView.cpp:1732:21
#8 0x2184688 in lyx::frontend::GuiView::setBuffer(lyx::Buffer*, bool) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiView.cpp:1937:8
#9 0x2199543 in lyx::frontend::GuiView::newDocument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiView.cpp:2909:3
#10 0x206dea5 in lyx::frontend::GuiApplication::dispatch(lyx::FuncRequest const&, lyx::DispatchResult&) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:1813:19
#11 0x2065f79 in lyx::frontend::GuiApplication::dispatch(lyx::FuncRequest const&) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:1561:3
#12 0x13797e9 in lyx::dispatch(lyx::FuncRequest const&) /home/scott/lyxbuilds/master/repo/src/LyX.cpp:1482:19
#13 0x207beb0 in lyx::frontend::GuiApplication::processFuncRequest(lyx::FuncRequest const&) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:2510:2
#14 0x2081f66 in lyx::frontend::GuiApplication::processKeySym(lyx::KeySymbol const&, unsigned int) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:2504:3
#15 0x21c196d in lyx::frontend::(anonymous namespace)::BackgroundWidget::keyPressEvent(QKeyEvent*) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiView.cpp:250:12
#16 0x7f548b64f007 in QWidget::event(QEvent*) (/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1b0007)
#17 0x7f548b60b6b2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x16c6b2)
#18 0x7f548b61341d in QApplication::notify(QObject*, QEvent*) (/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x17441d)
#19 0x208caaa in lyx::frontend::GuiApplication::notify(QObject*, QEvent*) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:3000:24
#20 0x7f548ab1d169 in QCoreApplication::notifyInternal2(QObject*, QEvent*) src/corelib/kernel/qcoreapplication.cpp:1063:24
#21 0x7f548b66ac9e (/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1cbc9e)
#22 0x7f548b60b6b2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x16c6b2)
#23 0x208caaa in lyx::frontend::GuiApplication::notify(QObject*, QEvent*) /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:3000:24
#24 0x7f548ab1d169 in QCoreApplication::notifyInternal2(QObject*, QEvent*) src/corelib/kernel/qcoreapplication.cpp:1063:24
#25 0x7f548af00409 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x13d409)
#26 0x7f548aed99bb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x1169bb)
#27 0x7f5486ca0b9d (/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5+0x73b9d)
#28 0x7f548a20d8ba in g_main_context_dispatch (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x558ba)
#29 0x7f548a260f07 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0xa8f07)
#30 0x7f548a20b002 in g_main_context_iteration (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x53002)
#31 0x7f548ab76547 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) src/corelib/kernel/qeventdispatcher_glib.cpp:423:43
#32 0x7f548ab1ba9a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) src/corelib/kernel/qeventloop.cpp:232:22
#33 0x7f548ab24023 in QCoreApplication::exec() src/corelib/kernel/qcoreapplication.cpp:1371:36
#34 0x20880f8 in lyx::frontend::GuiApplication::exec() /home/scott/lyxbuilds/master/repo/src/frontends/qt/GuiApplication.cpp:2750:9
#35 0x136d9d6 in lyx::LyX::exec(int&, char**) /home/scott/lyxbuilds/master/repo/src/LyX.cpp:397:39
#36 0x17b61fa in main /home/scott/lyxbuilds/master/repo/src/main.cpp:55:26
#37 0x7f548a336fcf in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#38 0x7f548a33707c in __libc_start_main csu/../csu/libc-start.c:409:3
#39 0xc894e4 in _start (/home/scott/lyxbuilds/master/CMakeBuild/bin/lyx+0xc894e4)
-------------- 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/20220122/f67cc624/attachment.asc>
More information about the lyx-devel
mailing list