#38 Crash somewhere in GetItem()

closed-fixed
8
2005-02-06
2005-02-06
No

Hi,
after your latest commits, GemRB crashes as soon as
it's about to display an area. It looks like it's
caused by GetItem() changes, since it crashes there -
probably because of corrupted heap few lines before the
actual crash. Hard to debug :(

Running PS:T from gdb:

....
29: BRORING : 0 x 1
[KEYImporter]: Searching for BRORING.ITM...[FOUND]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1491)]
0x40228e4e in mallopt () from /lib/libc.so.6
(gdb) where
#0 0x40228e4e in mallopt () from /lib/libc.so.6
#1 0x40227e63 in malloc () from /lib/libc.so.6
#2 0x401632ee in operator new () from
/usr/lib/libstdc++.so.5
#3 0x4007f417 in Interface::GetItem (this=0x8049540,
resname=0x93c3f48 "BRORING") at Interface.cpp:2643
#4 0x400901cf in Inventory::CalculateWeight
(this=0x93c6b60)
at Inventory.cpp:68
#5 0x4007030b in Map::DrawMap (this=0x82a2f90, viewport=
{x = 0, y = 0, w = 640, h = 407}, gc=0x8242c38)
at Map.cpp:405
#6 0x4005a7b9 in GameControl::Draw (this=0x8242c38,
x=0, y=0)
at GameControl.cpp:237
#7 0x400668ba in Window::DrawWindow (this=0x8222f30)
at stl_iterator.h:602
#8 0x4007c89b in Interface::DrawWindows
(this=0x8049540) at stl_vector.h:151
#9 0x08048caa in main (argc=1073742080,
argv=0x40000100) at GemRB.cpp:69

Discussion

  • Jarda Benkovsky

    Jarda Benkovsky - 2005-02-06
    • status: open --> closed-fixed
     
  • Jarda Benkovsky

    Jarda Benkovsky - 2005-02-06

    Logged In: YES
    user_id=98628

    ok, works now

     

Log in to post a comment.