Incidencia #41529

packets_gen.c: runtime error: member access within misaligned address (3.0.0-beta0 8a225b6be0, civ2civ3, qt))

Abrir Fecha: 2021-02-10 03:43 Última actualización: 2021-02-10 03:43

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

Details

I got this text in the client's console. Everything in the game seemed fine. I dunno what produced the stack trace, since I'm currently running without sanitizers. Maybe some instrumentation pulled in by --enable-debug=some?

packets_gen.c:13721:13: runtime error: member access within misaligned address 0x7ffeeb454684 for type 'const struct packet_city_info', which requires 8 byte alignment
0x7ffeeb454684: note: pointer points here
  00 00 00 00 02 0e 00 00  30 ef 09 eb 5c 55 00 00  80 4f 3e e4 5c 55 00 00  07 00 00 00 00 00 00 00
              ^ 
    #0 0x555ce0e23f36 in hash_packet_city_info_100 /home/chippo/Downloads/git_clones/freeciv/freeciv-30/common/packets_gen.c:13721
    #1 0x555ce0fc1097 in genhash_val_calc /home/chippo/Downloads/git_clones/freeciv/freeciv-30/utility/genhash.c:386
    #2 0x555ce0fc1097 in genhash_remove_full /home/chippo/Downloads/git_clones/freeciv/freeciv-30/utility/genhash.c:725
    #3 0x555ce0fc1a63 in genhash_remove /home/chippo/Downloads/git_clones/freeciv/freeciv-30/utility/genhash.c:706
    #4 0x555ce0e6fb5a in receive_packet_city_remove_100 /home/chippo/Downloads/git_clones/freeciv/freeciv-30/common/packets_gen.c:13579
    #5 0x555ce102c7a5 in get_packet_from_connection_raw /home/chippo/Downloads/git_clones/freeciv/freeciv-30/common/networking/packets.c:580
    #6 0x555ce06e8b4d in input_from_server /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/clinet.c:417
    #7 0x555ce09b4ada in fc_client::server_input(int) /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/fc_client.cpp:461
    #8 0x555ce09f5a47 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, void (fc_client::*)(int)>::call(void (fc_client::*)(int), fc_client*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:152
    #9 0x555ce09f5a47 in void QtPrivate::FunctionPointer<void (fc_client::*)(int)>::call<QtPrivate::List<int>, void>(void (fc_client::*)(int), fc_client*, void**) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:185
    #10 0x555ce09f5a47 in QtPrivate::QSlotObject<void (fc_client::*)(int), QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:414
    #11 0x7f9af98ec457 in QMetaObject::activate(QObject*, int, int, void**) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2b2457)
    #12 0x7f9af98f8fe4 in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2befe4)
    #13 0x7f9af98f9340 in QSocketNotifier::event(QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2bf340)
    #14 0x7f9af9109a65 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x16aa65)
    #15 0x7f9af91130ef in QApplication::notify(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5+0x1740ef)
    #16 0x7f9af98c0939 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x286939)
    #17 0x7f9af99191c4  (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2df1c4)
    #18 0x7f9af4e8a4da in g_main_context_dispatch (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x534da)
    #19 0x7f9af4e8a787  (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x53787)
    #20 0x7f9af4e8a852 in g_main_context_iteration (/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x53852)
    #21 0x7f9af9918564 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2de564)
    #22 0x7f9af98bf4da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x2854da)
    #23 0x7f9af98c7245 in QCoreApplication::exec() (/usr/lib/x86_64-linux-gnu/libQt5Core.so.5+0x28d245)
    #24 0x555ce09b59bd in fc_client::fc_main(QApplication*) /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/fc_client.cpp:256
    #25 0x555ce06d6054 in qtg_ui_main(int, char**) /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/gui_main.cpp:194
    #26 0x555ce06d2642 in ui_main /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui_interface.c:59
    #27 0x555ce06dc60c in client_main /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/client_main.c:685
    #28 0x555ce06d5ba4 in main /home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/gui-qt/gui_main.cpp:103
    #29 0x7f9af8101cb1 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x28cb1)
    #30 0x555ce06d255d in _start (/home/chippo/Downloads/git_clones/freeciv/freeciv-30/client/freeciv-qt+0x86155d)

Ticket History (1/1 Histories)

2021-02-10 03:43 Updated by: chippo
  • New Ticket "packets_gen.c: runtime error: member access within misaligned address (3.0.0-beta0 8a225b6be0, civ2civ3, qt))" created

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