[SOLVED] Christmass Event Seg-faults. (Part 1)

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
Pauan
Novice
Novice
Posts: 236
Joined: 15 Aug 2006, 07:28
Contact:

[SOLVED] Christmass Event Seg-faults. (Part 1)

Post by Pauan »

Since I had so many dozens of them, I'll save you guys time and lump them into one post. If you don't like it, then you get no seg-fault reports on christmass. :P

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218951504 (LWP 17537)]
0x080e023d in Spriteset::get (this=0x821e478, i=0)
    at resources/spriteset.cpp:63
63              return mSpriteset[i];
(gdb) bt
#0  0x080e023d in Spriteset::get (this=0x821e478, i=0)
    at resources/spriteset.cpp:63
#1  0x080dce0e in SpriteDef::loadAnimation (this=0x82cb1d8, 
    animationNode=0x8220180, action=0x821e358, imageset=0x821e478, 
    variant_offset=0) at resources/spritedef.cpp:231
#2  0x080dd305 in SpriteDef::loadAction (this=0x82cb1d8, node=0x821e2a0, 
    variant_offset=0) at resources/spritedef.cpp:186
#3  0x080dd9ae in SpriteDef::load (this=0x82cb1d8, animationFile=@0xbf93b748, 
    variant=0) at resources/spritedef.cpp:102
#4  0x080ddbf6 in SpriteDef (this=0x82cb1d8, idPath=@0xbf93b6c8, 
    file=@0xbf93b748, variant=0) at resources/spritedef.cpp:43
#5  0x080da0f7 in ResourceManager::getSprite (this=0x8142730, 
    path=@0xbf93b748, variant=0) at resources/resourcemanager.cpp:248
#6  0x080e2cc0 in AnimatedSprite (this=0x82d5328, filename=@0xbf93b748, 
    variant=0) at animatedsprite.cpp:67
#7  0x080fd5c8 in Player::setVisibleEquipment (this=0x821c8e8, slot=5 '\005', 
    id=8) at player.cpp:212
#8  0x080c32ff in BeingHandler::handleMessage (this=0x820df70, msg=0xbf93b7fc)
    at net/beinghandler.cpp:328
#9  0x080c76e7 in Network::dispatchMessages (this=0x815f9f0)
    at net/network.cpp:215
#10 0x080ebfc5 in Game::logic (this=0x82078b8) at game.cpp:387
#11 0x080f64c7 in main (argc=1, argv=0xbf93ba14) at main.cpp:675

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218201936 (LWP 17624)]
0x080e023d in Spriteset::get (this=0x82fc418, i=0)
    at resources/spriteset.cpp:63
63              return mSpriteset[i];
(gdb) bt
#0  0x080e023d in Spriteset::get (this=0x82fc418, i=0)
    at resources/spriteset.cpp:63
#1  0x080dce0e in SpriteDef::loadAnimation (this=0x822af70, 
    animationNode=0x822e190, action=0x830ec90, imageset=0x82fc418, 
    variant_offset=0) at resources/spritedef.cpp:231
#2  0x080dd305 in SpriteDef::loadAction (this=0x822af70, node=0x822e020, 
    variant_offset=0) at resources/spritedef.cpp:186
#3  0x080dd9ae in SpriteDef::load (this=0x822af70, animationFile=@0xbf849e48, 
    variant=0) at resources/spritedef.cpp:102
#4  0x080ddbf6 in SpriteDef (this=0x822af70, idPath=@0xbf849dc8, 
    file=@0xbf849e48, variant=0) at resources/spritedef.cpp:43
#5  0x080da0f7 in ResourceManager::getSprite (this=0x8142730, 
    path=@0xbf849e48, variant=0) at resources/resourcemanager.cpp:248
#6  0x080e2cc0 in AnimatedSprite (this=0x830ee78, filename=@0xbf849e48, 
    variant=0) at animatedsprite.cpp:67
#7  0x080fd5c8 in Player::setVisibleEquipment (this=0x82227d0, slot=5 '\005', 
    id=8) at player.cpp:212
#8  0x080c32ff in BeingHandler::handleMessage (this=0x82be3e0, msg=0xbf849efc)
    at net/beinghandler.cpp:328
#9  0x080c76e7 in Network::dispatchMessages (this=0x8159bb8)
    at net/network.cpp:215
#10 0x080ebfc5 in Game::logic (this=0x820f1b8) at game.cpp:387
#11 0x080f64c7 in main (argc=1, argv=0xbf84a114) at main.cpp:675

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218648400 (LWP 17639)]
0x080e023d in Spriteset::get (this=0x821d6b8, i=0)
    at resources/spriteset.cpp:63
63              return mSpriteset[i];
(gdb) bt
#0  0x080e023d in Spriteset::get (this=0x821d6b8, i=0)
    at resources/spriteset.cpp:63
#1  0x080dce0e in SpriteDef::loadAnimation (this=0x821d668, 
    animationNode=0x8223090, action=0x821d6e0, imageset=0x821d6b8, 
    variant_offset=0) at resources/spritedef.cpp:231
#2  0x080dd305 in SpriteDef::loadAction (this=0x821d668, node=0x8222ec0, 
    variant_offset=0) at resources/spritedef.cpp:186
#3  0x080dd9ae in SpriteDef::load (this=0x821d668, animationFile=@0xbf954f58, 
    variant=0) at resources/spritedef.cpp:102
#4  0x080ddbf6 in SpriteDef (this=0x821d668, idPath=@0xbf954ed8, 
    file=@0xbf954f58, variant=0) at resources/spritedef.cpp:43
#5  0x080da0f7 in ResourceManager::getSprite (this=0x8142730, 
    path=@0xbf954f58, variant=0) at resources/resourcemanager.cpp:248
#6  0x080e2cc0 in AnimatedSprite (this=0x821d940, filename=@0xbf954f58, 
    variant=0) at animatedsprite.cpp:67
#7  0x080fd5c8 in Player::setVisibleEquipment (this=0x82c5ea8, slot=5 '\005', 
    id=8) at player.cpp:212
#8  0x080c32ff in BeingHandler::handleMessage (this=0x82b59c0, msg=0xbf95500c)
    at net/beinghandler.cpp:328
#9  0x080c76e7 in Network::dispatchMessages (this=0x8181b88)
    at net/network.cpp:215
#10 0x080ebfc5 in Game::logic (this=0x82af4a0) at game.cpp:387
#11 0x080f64c7 in main (argc=1, argv=0xbf955224) at main.cpp:675

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218308432 (LWP 17647)]
0x080e023d in Spriteset::get (this=0x8220ed0, i=0)
    at resources/spriteset.cpp:63
63              return mSpriteset[i];
(gdb) bt
#0  0x080e023d in Spriteset::get (this=0x8220ed0, i=0)
    at resources/spriteset.cpp:63
#1  0x080dce0e in SpriteDef::loadAnimation (this=0x8222f18, 
    animationNode=0x8205930, action=0x8228188, imageset=0x8220ed0, 
    variant_offset=0) at resources/spritedef.cpp:231
#2  0x080dd305 in SpriteDef::loadAction (this=0x8222f18, node=0x8222b70, 
    variant_offset=0) at resources/spritedef.cpp:186
#3  0x080dd9ae in SpriteDef::load (this=0x8222f18, animationFile=@0xbfd88b88, 
    variant=0) at resources/spritedef.cpp:102
#4  0x080ddbf6 in SpriteDef (this=0x8222f18, idPath=@0xbfd88b08, 
    file=@0xbfd88b88, variant=0) at resources/spritedef.cpp:43
#5  0x080da0f7 in ResourceManager::getSprite (this=0x8142730, 
    path=@0xbfd88b88, variant=0) at resources/resourcemanager.cpp:248
#6  0x080e2cc0 in AnimatedSprite (this=0x82121f0, filename=@0xbfd88b88, 
    variant=0) at animatedsprite.cpp:67
#7  0x080fd5c8 in Player::setVisibleEquipment (this=0x8207680, slot=5 '\005', 
    id=8) at player.cpp:212
#8  0x080c2fea in BeingHandler::handleMessage (this=0x8210778, msg=0xbfd88c3c)
    at net/beinghandler.cpp:262
#9  0x080c76e7 in Network::dispatchMessages (this=0x8181b88)
    at net/network.cpp:215
#10 0x080ebfc5 in Game::logic (this=0x81d8760) at game.cpp:387
#11 0x080f64c7 in main (argc=1, argv=0xbfd88e54) at main.cpp:675

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218410832 (LWP 17675)]
0x080e023d in Spriteset::get (this=0x81fbb80, i=0)
    at resources/spriteset.cpp:63
63              return mSpriteset[i];
(gdb) br
Breakpoint 1 at 0x80e023d: file resources/spriteset.cpp, line 63.
(gdb) bt
#0  0x080e023d in Spriteset::get (this=0x81fbb80, i=0)
    at resources/spriteset.cpp:63
#1  0x080dce0e in SpriteDef::loadAnimation (this=0x81fd8d8, 
    animationNode=0x8200a30, action=0x81fbbc8, imageset=0x81fbb80, 
    variant_offset=0) at resources/spritedef.cpp:231
#2  0x080dd305 in SpriteDef::loadAction (this=0x81fd8d8, node=0x8200860, 
    variant_offset=0) at resources/spritedef.cpp:186
#3  0x080dd9ae in SpriteDef::load (this=0x81fd8d8, animationFile=@0xbfc73a38, 
    variant=0) at resources/spritedef.cpp:102
#4  0x080ddbf6 in SpriteDef (this=0x81fd8d8, idPath=@0xbfc739b8, 
    file=@0xbfc73a38, variant=0) at resources/spritedef.cpp:43
#5  0x080da0f7 in ResourceManager::getSprite (this=0x8142730, 
    path=@0xbfc73a38, variant=0) at resources/resourcemanager.cpp:248
#6  0x080e2cc0 in AnimatedSprite (this=0x81fada0, filename=@0xbfc73a38, 
    variant=0) at animatedsprite.cpp:67
#7  0x080fd5c8 in Player::setVisibleEquipment (this=0x81f8128, slot=5 '\005', 
    id=8) at player.cpp:212
#8  0x080c3fa7 in CharServerHandler::readPlayerData (this=0x812895c, 
    msg=0xbfc73b4c, slot=@0xbfc73af0) at net/charserverhandler.cpp:196
#9  0x080c4175 in CharServerHandler::handleMessage (this=0x812895c, 
    msg=0xbfc73b4c) at net/charserverhandler.cpp:72
#10 0x080c76e7 in Network::dispatchMessages (this=0x8159e00)
    at net/network.cpp:215
#11 0x080f5ac6 in main (argc=2, argv=0xbfc73d34) at main.cpp:563
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn »

You didn't happen to notice that they're all the same? I think the interesting part is the setVisibleEquipment with slot 5 and id 8. I'll look into it.
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Post by Bjørn »

I fixed the bounds check to prevent the crash, but you'll have to fix your locally broken item 8 yourself. I think you already got that sorted. ;-)
Post Reply