Some of my recent code makes gdb crash, but only under windows. The code
runs fine under both windows and linux and can be debugged under linux, but
not under windows. I'm thinking it's a bug in the windows version of gdb.
But before reporting it, I'd like to check with you if my code is correct or
if I'm doing anything nasty. The code breaks in tilesdl.cc:951, at the
beginning of the layout_statcol method:

    for (m_tabs_it = m_tabs.begin(); m_tabs_it != m_tabs.end(); ++m_tabs_it)

m_tabs is a std::map. It works fine when it's empty, but as soon as there is
an element, gdb crashes at the beginning of the second iteration, when it
tries to increment the iterator (m_tabs_it). Here is the error:

Program received signal SIGSEGV, Segmentation fault.
0x00bc37c2 in std::_Rb_tree_increment ()
Current language:  auto; currently c++
(gdb) backtrace
#0  0x00bc37c2 in std::_Rb_tree_increment ()
#1  0x00ca4397 in std::_Rb_tree_iterator<std::pair<int const, TabbedRegion*>
>::
operator++ (this=0x10f3af4)
    at
c:/msysgit/mingw/bin/../lib/gcc/mingw32/4.4.0/include/c++/bits/stl_tree.h
:184
#2  0x00a18b52 in TilesFramework::layout_statcol (this=0x10f3a60,
    show_gold_turns=true) at tilesdl.cc:951
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Crawl-ref-discuss mailing list
Crawl-ref-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crawl-ref-discuss

Reply via email to