URL:
  <http://gna.org/bugs/?16919>

                 Summary: Wesnoth Freezes - backtrace: #0 0x7c90120f in
ntdll!DbgUiConnectToDbg ()
                 Project: Battle for Wesnoth
            Submitted by: awen
            Submitted on: Thursday 10/21/10 at 22:01
                Category: Bug
                Severity: 4 - Important
                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.8.4
        Operating System: Windows xp pro

    _______________________________________________________

Details:


this maybe the c++ error i was trying to capture although in this case
wesnoth froze when ran with gdb rather than displaying c++ error messages as
when not running through gdb.

------------------------------------------------

i done everything in the below except i had to end task the wesnoth program
because it had frozen and i could not type into the cmd prompt, when i tried
to switch window to it nothing appeared but after ending the wesnoth program
i was able to see and type in to the cmd prompt.

----------------------------------------------------

-Get the gnu debugger gdb.exe - I use the one that comes with the installer
of the IDE CodeBlocks, mingw version. For me it is located in
E:\Programme\CodeBlocks\MinGW\bin\.
-click start>run, type cmd, click ok
-type cd .. to climb up a directory, type cd <subdirectory> to enter a
directory, until reaching the wesnoth installation folder (tab completes
partly typed names)
-type <drive letter>: (c: in my case) to change the hard drive partition
(only needed for me due to the location of my installation folder)
-when in wesnoth's installation folder with the shell I type

"E:\Programme\CodeBlocks\MinGW\bin\gdb.exe" wesnoth.exe
run

(wesnoth starts up, I close it and type)

break std::terminate()
run

(wesnoth runs until execution reaches the breakpoint, wesnoth freezes, I can
again type in the shell, and I do type)

bt
-----------------------------------------------------------
here is the back trace, i copied everything...
-------------------------------------------------------------

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\ME>cd..

C:\Documents and Settings>cd..

C:\>cd program files

C:\Program Files>cd battle for wesnoth 1.8.4

C:\Program Files\Battle for Wesnoth 1.8.4>"c:\mingw\bin\gdb.exe" wesnoth.exe
GNU gdb (GDB) 7.2
Copyright (C) 2010 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 "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\Program Files\Battle for Wesnoth
1.8.4/wesnoth.exe...don
e.
(gdb) run
Starting program: C:\Program Files\Battle for Wesnoth 1.8.4/wesnoth.exe
[New Thread 2672.0x96c]
[New Thread 2672.0xdc]
[New Thread 2672.0x860]
[New Thread 2672.0xfe4]
[New Thread 2672.0x45c]
[New Thread 2672.0xea0]
[New Thread 2672.0x7c0]
[New Thread 2672.0xcfc]

Program exited normally.
(gdb) break std::terminate()
Can't find member of namespace, class, struct, or union named
"std::terminate"
Hint: try 'std::terminate()<TAB> or 'std::terminate()<ESC-?>
(Note leading single quote.)
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (std::terminate()) pending.
(gdb) run
Starting program: C:\Program Files\Battle for Wesnoth 1.8.4/wesnoth.exe
[New Thread 2816.0xc40]
[New Thread 2816.0xe88]
[New Thread 2816.0xa54]
[New Thread 2816.0x74c]
[New Thread 2816.0x968]
[New Thread 2816.0x3b8]
[New Thread 2816.0x9dc]
[New Thread 2816.0x710]
[New Thread 2816.0xc68]
[New Thread 2816.0xf68]
[New Thread 2816.0xb20]
[New Thread 2816.0xd24]
warning: HEAP[wesnoth.exe]:
warning: Invalid Address specified to RtlFreeHeap( 01830000, 00DFF718 )


Program received signal SIGTRAP, Trace/breakpoint trap.
0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll
(gdb) bt
#0 0x7c90120f in ntdll!DbgUiConnectToDbg ()
from C:\WINDOWS\system32\ntdll.dll
Cannot access memory at address 0x22a15c
(gdb)
--------------------------------------------------------

i do not kn ow if it caught the c++ error because i did not see that error
box, all i got was wesnoth freezing. 

i ran wesnoth in full screen mode because in windowed mode i cannot move the
map in game because you have to scroll to the very corners of the map and it
does not work in windowed mode. perhaps if i had been in windowed mode id
been able to type into the cmd prompt after freeze, i dont know.
---------------------------------------------------

the below forum thread describes the c++ error that i saw...
http://www.wesnoth.org/forum/viewtopic.php?f=4&t=31231

the below forum thread displays my effort to catch the c++ error...
http://www.wesnoth.org/forum/viewtopic.php?f=4&t=31531






    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?16919>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to