Incidencia #41454

UBSAN warnings (3.0.0-beta0 a26111bbd4)

Abrir Fecha: 2021-02-04 02:45 Última actualización: 2021-02-11 08:29

Informador:
Propietario:
(Ninguno)
Tipo:
Estado:
Open
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Ninguno
Fichero:
Ninguno

Details

These warnings were found in the server's console, scrolled way back. I don't know what I was doing at the time. I'm fairly sure it was civ2civ3 ruleset. I can't replicate them.

unit.c:2405:24: runtime error: index -1 out of bounds for type 'unit_list_link *[5]'
daimilitary.c:1474:18: runtime error: signed integer overflow: 23020804 * 100 cannot be represented in type 'int'
aiunit.c:343:61: runtime error: signed integer overflow: 244213500 * 17 cannot be represented in type 'int'

Ticket History (2/2 Histories)

2021-02-04 02:45 Updated by: chippo
  • New Ticket "UBSAN warnings (3.0.0-beta0 a26111bbd4)" created
2021-02-11 08:29 Updated by: chippo
Comentario

I got a stack trace for the first error above, FWIW.

unit.c:2405:24: runtime error: index -1 out of bounds for type 'unit_list_link *[5]'
    #0 0x55901eef550d in cargo_iter_next /home/chippo/Downloads/git_clones/freeciv/freeciv-30/common/unit.c:2405
    #1 0x55901eef6830 in iterator_next ../utility/iterator.h:40
    #2 0x55901eef6830 in unit_cargo_depth /home/chippo/Downloads/git_clones/freeciv/freeciv-30/common/unit.c:2340
    #3 0x55901efa70c0 in pft_fill_unit_default_parameter /home/chippo/Downloads/git_clones/freeciv/freeciv-30/common/aicore/pf_tools.c:766
    #4 0x55901efab690 in pft_fill_unit_parameter /home/chippo/Downloads/git_clones/freeciv/freeciv-30/common/aicore/pf_tools.c:817
    #5 0x55901e224a19 in goto_fill_parameter_base /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/goto.c:884
    #6 0x55901e228898 in goto_fill_parameter_full /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/goto.c:919
    #7 0x55901e228898 in enter_goto_state /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/goto.c:997
    #8 0x55901e1fda1f in request_unit_goto /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/control.c:1149
    #9 0x55901e20ab1a in key_unit_goto /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/control.c:3116
    #10 0x55901e7e7034 in mr_menu::slot_unit_goto() /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/menu.cpp:3014
    #11 0x55901e8ac368 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (mr_menu::*)()>::call(void (mr_menu::*)(), mr_menu*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:152
    #12 0x55901e8ac368 in void QtPrivate::FunctionPointer<void (mr_menu::*)()>::call<QtPrivate::List<>, void>(void (mr_menu::*)(), mr_menu*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:185
    #13 0x55901e8ac368 in QtPrivate::QSlotObject<void (mr_menu::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:414
    #14 0x7f99090af457 in QMetaObject::activate(QObject*, int, int, void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2b2457)
    #15 0x7f99088c43e5 in QAction::triggered(bool) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1643e5)
    #16 0x7f99088c6aa1 in QAction::activate(QAction::ActionEvent) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x166aa1)
    #17 0x7f99088c736e in QAction::event(QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x16736e)
    #18 0x7f99088caa65 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x16aa65)
    #19 0x7f99088d40ef in QApplication::notify(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1740ef)
    #20 0x7f9909083939 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x286939)
    #21 0x7f99094970ad in QShortcutMap::dispatchEvent(QKeyEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x1510ad)
    #22 0x7f9909497192 in QShortcutMap::tryShortcut(QKeyEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x151192)
    #23 0x7f990944b6c1 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x1056c1)
    #24 0x7f9909468a50 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x122a50)
    #25 0x7f990946e0f0 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x1280f0)
    #26 0x7f990944835a in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Gui.so.5+0x10235a)
    #27 0x7f98fbb9732d  (/usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5+0x7932d)
    #28 0x7f990464d4da in g_main_context_dispatch (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x534da)
    #29 0x7f990464d787  (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x53787)
    #30 0x7f990464d852 in g_main_context_iteration (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x53852)
    #31 0x7f99090db564 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2de564)
    #32 0x7f99090824da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2854da)
    #33 0x7f990908a245 in QCoreApplication::exec() (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x28d245)
    #34 0x55901e60a77c in fc_client::fc_main(QApplication*) /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/fc_client.cpp:256
    #35 0x55901e1ddcd5 in qtg_ui_main(int, char**) /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/gui_main.cpp:194
    #36 0x55901e1d8b56 in ui_main /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui_interface.c:59
    #37 0x55901e1e6208 in client_main /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/client_main.c:685
    #38 0x55901e1dd3c7 in main /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/gui_main.cpp:103
    #39 0x7f99078c2cb1 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x28cb1)
    #40 0x55901e1d8a5d in _start (/home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/freeciv-qt+0x16b8a5d)

This was out of the client's console, not the server's.

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Entrar