URL:
<http://gna.org/bugs/?18666>
Summary: Game sometimes segfaults when closed
Project: Battle for Wesnoth
Submitted by: espreon
Submitted on: Fri 16 Sep 2011 03:02:45 PM GMT
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: thonsew
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.9+svn (51206)
Operating System: Sabayon Linux
_______________________________________________________
Details:
Yeah, all I had to do was start a campaign, quit the campaign, and press
"Leave". This isn't reproducible one hundred percent of the time.
Sorry about the useless error messages from Python in the backtrace, but it
seems that the pretty printer stuff *still* isn't working over here.
Error:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000ffc97d in boost::hash_combine<char> (seed=@0x7fffffffd738,
v=@0x7fffe3f32000) at /usr/include/boost/functional/hash/hash.hpp:251
251 seed ^= hasher(v) + 0x9e3779b9 + (seed<<6) + (seed>>2)
Backtrace:
(gdb) bt
#0 0x0000000000ffc97d in boost::hash_combine<char> (seed=@0x7fffffffd738,
v=@0x7fffe3f32000) at /usr/include/boost/functional/hash/hash.hpp:251
#1 0x0000000000ffb6e5 in boost::hash_range<__gnu_cxx::__normal_iterator<char
const*, std::basic_string<char> > > (first=0 '�00', last=Cannot access
memory at address 0xffffc06d60a8
) at /usr/include/boost/functional/hash/hash.hpp:265
#2 0x0000000000ffa82f in boost::hash_value<char, std::allocator<char> >
(v=Traceback (most recent call last):
File
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.5.2/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 587, in to_string
return ptr.lazy_string (length = len)
OverflowError: signed integer is greater than maximum
) at /usr/include/boost/functional/hash/hash.hpp:324
#3 0x0000000000ffa24c in boost::hash<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >::operator() (this=0x22c7cd2,
v=Traceback (most recent call last):
File
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.5.2/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 587, in to_string
return ptr.lazy_string (length = len)
OverflowError: signed integer is greater than maximum
) at /usr/include/boost/functional/hash/hash.hpp:443
#4 0x0000000000ffe183 in
boost::unordered_detail::hash_table<boost::unordered_detail::map<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::hash<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::equal_to<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::allocator<std::pair<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const, n_ref_counter::t_ref_counter<long> > > >
>::bucket_index (this=0x22c7cc0, k=Traceback (most recent call last):
File
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.5.2/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 587, in to_string
return ptr.lazy_string (length = len)
OverflowError: signed integer is greater than maximum
) at /usr/include/boost/unordered/detail/table.hpp:110
#5 0x0000000000ffd679 in
boost::unordered_detail::hash_table<boost::unordered_detail::map<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
boost::hash<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::equal_to<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::allocator<std::pair<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const, n_ref_counter::t_ref_counter<long> > > >
>::erase_key (this=0x22c7cc0, k=Traceback (most recent call last):
File
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.5.2/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 587, in to_string
return ptr.lazy_string (length = len)
OverflowError: signed integer is greater than maximum
) at /usr/include/boost/unordered/detail/table.hpp:682
#6 0x0000000000ffca87 in boost::unordered_map<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
n_ref_counter::t_ref_counter<long>, boost::hash<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >,
std::equal_to<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const,
n_ref_counter::t_ref_counter<long> > > >::erase (this=Traceback (most recent
call last):
File "/home/espreon/wesnoth/utils/gdb/wesnoth_pretty_printers.py", line
146, in children
return self._iterator(self.val)
File "/home/espreon/wesnoth/utils/gdb/wesnoth_pretty_printers.py", line
114, in __init__
t_key = val.type.template_argument(0)
RuntimeError: Null type name.
"boost::unordered_map", k=Traceback (most recent call last):
File
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.5.2/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 587, in to_string
return ptr.lazy_string (length = len)
OverflowError: signed integer is greater than maximum
) at /usr/include/boost/unordered/unordered_map.hpp:375
#7 0x0000000000ffb882 in
n_interned::t_interned_token<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, boost::hash<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >::dec_ref (this=Traceback
(most recent call last):
File
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.5.2/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 587, in to_string
return ptr.lazy_string (length = len)
OverflowError: signed integer is greater than maximum
) at /home/espreon/wesnoth/src/utils/interned.hpp:261
#8 0x0000000000ffa8f6 in
n_interned::t_interned_token<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, boost::hash<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >::~t_interned_token
(this=Traceback (most recent call last):
File
"/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../share/gcc-data/x86_64-pc-linux-gnu/4.5.2/gcc-4.5.2/python/libstdcxx/v6/printers.py",
line 587, in to_string
return ptr.lazy_string (length = len)
OverflowError: signed integer is greater than maximum
---Type <return> to continue, or q <return> to quit---
, __in_chrg=<value optimized out>) at
/home/espreon/wesnoth/src/utils/interned.hpp:248
#9 0x0000000000ffa6de in n_token::t_token::~t_token (this=
"Xi�02340377177�00�00�00�00�00�00�00�00�00�00301t�00�00�00�00�00�00260Y�03340377177�00�00`i�02340377177",
'�00' <repeats 18 times>,
"X362D364377177�00�00�00�00�00�00377177�00�00x304�06340377177�00�00�00�00�00�00�00�00�00�00370222�34340377177�00�00�00�00�00�00377177�00�00�03�00�00�00300�67�67�67�00�00�00�00377177�00�00H~,�02�00�00�00�00�21a�00�00�00�00�00�00200253�02340377177�00�00�20270�02340377177",
'�00' <repeats 18 times>,
"P244�03340377177�00�00260242�03340377177", '�00' <repeats 34
times>,
"(!�34340377177�00�00�01�00�00�00�00�00�00�00�02�00�00�00$�00�00�00221�00�00�00�00�00�00�00`B353340377177�00�00�60�17344340377177",
'�00' <repeats 20 times>"200,
?377177�00�00210320�02340377177�00�00v", '�00' <repeats 15
times>...,
__in_chrg=<value optimized out>) at
/home/espreon/wesnoth/src/token.hpp:74
#10 0x00000000018062a4 in std::pair<n_token::t_token const,
color_range>::~pair (this=0x7fffe06ac588, __in_chrg=<value optimized out>)
at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_pair.h:72
#11 0x000000000180835c in
boost::unordered_detail::destroy<std::pair<n_token::t_token const,
color_range> > (x=0x7fffe06ac588) at
/usr/include/boost/unordered/detail/fwd.hpp:86
#12 0x00000000018095b8 in
boost::unordered_detail::hash_buckets<std::allocator<std::pair<n_token::t_token
const, color_range> >, boost::unordered_detail::ungrouped>::delete_node (
this=0x22c1760, b=0x7fffe06ac580) at
/usr/include/boost/unordered/detail/buckets.hpp:67
#13 0x0000000001809170 in
boost::unordered_detail::hash_buckets<std::allocator<std::pair<n_token::t_token
const, color_range> >, boost::unordered_detail::ungrouped>::clear_bucket (
this=0x22c1760, b=0x7fffe0e4e748) at
/usr/include/boost/unordered/detail/buckets.hpp:82
#14 0x0000000001808ad0 in
boost::unordered_detail::hash_buckets<std::allocator<std::pair<n_token::t_token
const, color_range> >, boost::unordered_detail::ungrouped>::delete_buckets (
this=0x22c1760) at /usr/include/boost/unordered/detail/buckets.hpp:92
#15 0x0000000001808175 in
boost::unordered_detail::hash_buckets<std::allocator<std::pair<n_token::t_token
const, color_range> >, boost::unordered_detail::ungrouped>::~hash_buckets (
this=0x22c1760, __in_chrg=<value optimized out>) at
/usr/include/boost/unordered/detail/buckets.hpp:135
#16 0x000000000180758f in
boost::unordered_detail::hash_table<boost::unordered_detail::map<n_token::t_token,
boost::hash<n_token::t_token>, std::equal_to<n_token::t_token>,
std::allocator<std::pair<n_token::t_token const, color_range> > >
>::~hash_table (this=0x22c1760, __in_chrg=<value optimized out>) at
/usr/include/boost/unordered/detail/fwd.hpp:585
#17 0x0000000001806aee in
boost::unordered_detail::hash_unique_table<boost::unordered_detail::map<n_token::t_token,
boost::hash<n_token::t_token>, std::equal_to<n_token::t_token>,
std::allocator<std::pair<n_token::t_token const, color_range> > >
>::~hash_unique_table (this=0x22c1760, __in_chrg=<value optimized out>) at
/usr/include/boost/unordered/detail/unique.hpp:49
#18 0x0000000001809730 in boost::unordered_map<n_token::t_token, color_range,
boost::hash<n_token::t_token>, std::equal_to<n_token::t_token>,
std::allocator<std::pair<n_token::t_token const, color_range> >
>::~unordered_map (this=Traceback (most recent call last):
File "/home/espreon/wesnoth/utils/gdb/wesnoth_pretty_printers.py", line
146, in children
return self._iterator(self.val)
File "/home/espreon/wesnoth/utils/gdb/wesnoth_pretty_printers.py", line
114, in __init__
t_key = val.type.template_argument(0)
RuntimeError: Null type name.
"boost::unordered_map", __in_chrg=<value optimized out>) at
/usr/include/boost/unordered/unordered_map.hpp:160
#19 0x00007ffff377b321 in ?? () from /lib64/libc.so.6
#20 0x00007ffff377b375 in exit () from /lib64/libc.so.6
#21 0x0000000000fda6e2 in safe_exit (res=0) at
/home/espreon/wesnoth/src/game.cpp:67
#22 0x0000000000fddacf in main (argc=1, argv=0x7fffffffdc08) at
/home/espreon/wesnoth/src/game.cpp:622
(gdb)
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18666>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs