Zandronum Chat @ irc.zandronum.com
#zandronum
Get the latest version: 3.0
Source Code

View Revisions: Issue #3456 All Revisions ] Back to Issue ]
Summary 0003456: Something under Refresher::sendMasterQueries() may cause a segfault if the program quits
Revision 2018-08-20 23:42 by WubTheCaptain
Description (I think?)

$ gdb /tmp/doomseeker/doomseeker core
GNU gdb (Debian 8.1-4) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/doomseeker/doomseeker...(no debugging symbols found)...done.
[New LWP 9904]
[New LWP 9905]
[New LWP 9912]
[New LWP 9909]
[New LWP 9914]
[New LWP 9910]
[New LWP 9907]
[New LWP 9911]
[New LWP 9906]
[New LWP 9913]
[New LWP 9915]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/tmp/doomseeker/doomseeker'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000000001 in ?? ()
[Current thread is 1 (Thread 0x7f9fa4327840 (LWP 9904))]
(gdb) bt
#0  0x0000000000000001 in ?? ()
#1  0x0000557e725bda5d in Refresher::sendMasterQueries() ()
0000002  0x0000557e7260992f in Refresher::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()

0000003  0x00007f9fab5917bb in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000004  0x00007f9fab59d5c3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000005  0x00007f9fab59202b in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000006  0x00007f9fac1c44a1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

0000007  0x00007f9fac1cbae0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

0000008  0x00007f9fab568579 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000009  0x00007f9fab5b9638 in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000010 0x00007f9fab5b9e94 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000011 0x00007f9fa9a5d287 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0

0000012 0x00007f9fa9a5d4c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
0000013 0x00007f9fa9a5d54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0

0000014 0x00007f9fab5ba223 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 
() from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000015 0x00007f9fa3fa3e51 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
0000016 0x00007f9fab56724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000017 0x00007f9fab56f3c2 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000018 0x0000557e725aedfc in Main::run() ()
0000019 0x0000557e725b16cd in main ()
(gdb) i r
rax            0x1      1
rbx            0x557e7320b060   94001585762400
rcx            0x0      0
rdx            0x557e7309fa40   94001584273984
rsi            0x0      0
rdi            0x557e7309fa40   94001584273984
rbp            0x7ffd78801080   0x7ffd78801080
rsp            0x7ffd78801038   0x7ffd78801038
r8             0xc      12
r9             0x1c     28
r10            0x8e606d 9330797
r11            0x3a6fbc85       980401285
r12            0xc      12
r13            0x557e7260983e   94001573173310
r14            0x557e730c7680   94001584436864
r15            0x7ffd78801190   140726625112464
rip            0x1      0x1
eflags         0x10202  [ IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
Revision 2018-08-20 23:38 by WubTheCaptain
Description (I think?)

$ /tmp/doomseeker/doomseeker
[23:37:32] Starting Doomseeker. Hello World! :)
[23:37:32] Setting up data directories.
[23:37:32] Cache directory: /home/wub/.cache/doomseeker
[23:37:32] Config directory: /home/wub/.config/doomseeker
[23:37:32] Data directory: /home/wub/.local/share/doomseeker
[23:37:32] Attempting to load plugins from directory: /home/wub/.local/share/doomseeker/engines
[23:37:32] Attempting to load plugins from directory: /tmp/doomseeker/engines
[23:37:32] Loaded plugin: "Chocolate Doom"!
[23:37:32] Loaded plugin: "Odamex"!
[23:37:32] Loaded plugin: "Sonic Robo Blast 2"!
[23:37:32] Loaded plugin: "Turok 2 Remaster"!
[23:37:32] Loaded plugin: "Zandronum"!
[23:37:32] Listening to Zandronum's LAN servers broadcasts on port 15101.
[23:37:32] Initializing configuration file.
[23:37:32] Setting INI file: /home/wub/.config/doomseeker/doomseeker.ini
[23:37:32] Loading translations definitions
[23:37:32] Reading localizations definitions file: translations.def
[23:37:32] Loading translation "en_EN".
[23:37:32] Translation loaded.
[23:37:32] Initializing IP2C database.
[23:37:32] Initializing passwords configuration file.
[23:37:32] Initializing configuration for plugins.
[23:37:32] Initializing IRC configuration file.
[23:37:32] Setting IRC INI file: /home/wub/.config/doomseeker/doomseeker-irc.ini
[23:37:32] Starting refreshing thread.
[23:37:32] Preparing GUI.
[23:37:32] Please wait. IP2C database is being read. This may take some time.
[23:37:32] Parsing IP2C database: /home/wub/.local/share/doomseeker/IpToCountry.dat
[23:37:32] Init finished.
================================
[23:37:32] Total refresh process initialized!
[23:37:32] IP2C parser is still working, awaiting stop...
[23:37:32] IP2C database read in 180 ms. Entries read: 158337
Segmentation fault
$ gdb /tmp/doomseeker/doomseeker core
GNU gdb (Debian 8.1-4) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/doomseeker/doomseeker...(no debugging symbols found)...done.
[New LWP 9904]
[New LWP 9905]
[New LWP 9912]
[New LWP 9909]
[New LWP 9914]
[New LWP 9910]
[New LWP 9907]
[New LWP 9911]
[New LWP 9906]
[New LWP 9913]
[New LWP 9915]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/tmp/doomseeker/doomseeker'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000000001 in ?? ()
[Current thread is 1 (Thread 0x7f9fa4327840 (LWP 9904))]
(gdb) bt
#0  0x0000000000000001 in ?? ()
#1  0x0000557e725bda5d in Refresher::sendMasterQueries() ()
0000002  0x0000557e7260992f in Refresher::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()

0000003  0x00007f9fab5917bb in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000004  0x00007f9fab59d5c3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000005  0x00007f9fab59202b in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000006  0x00007f9fac1c44a1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

0000007  0x00007f9fac1cbae0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

0000008  0x00007f9fab568579 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000009  0x00007f9fab5b9638 in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000010 0x00007f9fab5b9e94 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000011 0x00007f9fa9a5d287 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0

0000012 0x00007f9fa9a5d4c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
0000013 0x00007f9fa9a5d54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0

0000014 0x00007f9fab5ba223 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 
() from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000015 0x00007f9fa3fa3e51 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
0000016 0x00007f9fab56724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000017 0x00007f9fab56f3c2 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000018 0x0000557e725aedfc in Main::run() ()
0000019 0x0000557e725b16cd in main ()
(gdb) i r
rax            0x1      1
rbx            0x557e7320b060   94001585762400
rcx            0x0      0
rdx            0x557e7309fa40   94001584273984
rsi            0x0      0
rdi            0x557e7309fa40   94001584273984
rbp            0x7ffd78801080   0x7ffd78801080
rsp            0x7ffd78801038   0x7ffd78801038
r8             0xc      12
r9             0x1c     28
r10            0x8e606d 9330797
r11            0x3a6fbc85       980401285
r12            0xc      12
r13            0x557e7260983e   94001573173310
r14            0x557e730c7680   94001584436864
r15            0x7ffd78801190   140726625112464
rip            0x1      0x1
eflags         0x10202  [ IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
Revision 2018-08-20 23:19 by WubTheCaptain
Description (I think?)

$ gdb /tmp/doomseeker/doomseeker core
GNU gdb (Debian 8.1-4) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /tmp/doomseeker/doomseeker...(no debugging symbols found)...done.
[New LWP 9904]
[New LWP 9905]
[New LWP 9912]
[New LWP 9909]
[New LWP 9914]
[New LWP 9910]
[New LWP 9907]
[New LWP 9911]
[New LWP 9906]
[New LWP 9913]
[New LWP 9915]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/tmp/doomseeker/doomseeker'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000000001 in ?? ()
[Current thread is 1 (Thread 0x7f9fa4327840 (LWP 9904))]
(gdb) bt
#0  0x0000000000000001 in ?? ()
#1  0x0000557e725bda5d in Refresher::sendMasterQueries() ()
0000002  0x0000557e7260992f in Refresher::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()

0000003  0x00007f9fab5917bb in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000004  0x00007f9fab59d5c3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000005  0x00007f9fab59202b in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000006  0x00007f9fac1c44a1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

0000007  0x00007f9fac1cbae0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5

0000008  0x00007f9fab568579 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000009  0x00007f9fab5b9638 in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000010 0x00007f9fab5b9e94 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000011 0x00007f9fa9a5d287 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0

0000012 0x00007f9fa9a5d4c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
0000013 0x00007f9fa9a5d54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0

0000014 0x00007f9fab5ba223 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) 
() from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000015 0x00007f9fa3fa3e51 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
0000016 0x00007f9fab56724b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000017 0x00007f9fab56f3c2 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

0000018 0x0000557e725aedfc in Main::run() ()
0000019 0x0000557e725b16cd in main ()
(gdb) i r
rax            0x1      1
rbx            0x557e7320b060   94001585762400
rcx            0x0      0
rdx            0x557e7309fa40   94001584273984
rsi            0x0      0
rdi            0x557e7309fa40   94001584273984
rbp            0x7ffd78801080   0x7ffd78801080
rsp            0x7ffd78801038   0x7ffd78801038
r8             0xc      12
r9             0x1c     28
r10            0x8e606d 9330797
r11            0x3a6fbc85       980401285
r12            0xc      12
r13            0x557e7260983e   94001573173310
r14            0x557e730c7680   94001584436864
r15            0x7ffd78801190   140726625112464
rip            0x1      0x1
eflags         0x10202  [ IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker