URL:
<http://gna.org/bugs/?11184>
Summary: core dump sometimes while uploading stats
Project: Battle for Wesnoth
Submitted by: kodama
Submitted on: Saturday 03/01/2008 at 14:39
Category: Bug
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.3.19
Operating System: linux-gnu-amd64
_______________________________________________________
Details:
Wesnoth sometimes dumps core while uploading the player statistics. I suspect
this happens only when uploading several files, like in the following
sequence:
- play 'Heir to the Throne' until 'Bay of Pearls'
- play some turns but do not complete the scenario
- quit the scenario without saving, and quit Wesnoth
I had a core dump while using wesnoth 1.3.19, compiled with debugging
information, on a debian 4.0 (etch, stable):
tamago:~$ uname -a
Linux tamago 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64
GNU/Linux
tamago:~$ gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
[EMAIL PROTECTED]:~$ g++ --version
g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
[EMAIL PROTECTED]:~$ sdl-config --version
1.2.11
I got this output on the terminal:
FATAL: exception not rethrown
Aborted (core dumped)
The backtrace is:
(gdb) bt
#0 0x00002b5ede0af07b in raise () from /lib/libc.so.6
#1 0x00002b5ede0b084e in abort () from /lib/libc.so.6
#2 0x00002b5ede2c8c11 in unwind_cleanup () from /lib/libpthread.so.0
#3 0x00000000007449fc in upload_logs (_ti=0xb17c70) at upload_log.cpp:117
#4 0x00002b5edd1601f7 in SDL_GetThreadID () from /usr/lib/libSDL-1.2.so.0
#5 0x00002b5edd1a2ee9 in SDL_ThreadID () from /usr/lib/libSDL-1.2.so.0
#6 0x00002b5ede2c3f1a in start_thread () from /lib/libpthread.so.0
#7 0x00002b5ede1495d2 in clone () from /lib/libc.so.6
#8 0x0000000000000000 in ?? ()
Going to frame #3, I get this information:
(gdb) print ti
$1 = (upload_log::thread_info *) 0xb17c70
(gdb) print *ti
$2 = {t = 0x2aaab059ef20, lastfile = {static npos = 18446744073709551615,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>>
= {<No data fields>}, <No data fields>},
_M_p = 0x2aaaaf013cd8 "/home/xxxxxxxx/.wesnoth/upload/00000002"}}}
However, the contents of my upload directory are:
tamago:~$ ls -latr /home/xxxxxxxx/.wesnoth/upload/
total 12
drwxr-x--- 7 nicolas nicolas 4096 2008-03-01 16:15 ..
-rw-r--r-- 1 nicolas nicolas 2384 2008-03-01 22:34 00000001
drwxr-x--- 2 nicolas nicolas 4096 2008-03-01 22:34 .
I suspect this file name mismatch to be the cause for the exception. I am
attaching my last savefile, just in case.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Saturday 03/01/2008 at 14:39 Name:
HttT-The_Bay_of_Pearls-Auto-Save5.gz Size: 47kB By: kodama
Heir to the Throne, turn 5 -- savefile
<http://gna.org/bugs/download.php?file_id=3890>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11184>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs