google-code-export / wagic

Automatically exported from code.google.com/p/wagic
1 stars 0 forks source link

Valgrind bug reports #470

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
as of r2349: 
(this happens in the shop)

=8161== Invalid read of size 1
==8161==    at 0x81808DF: WSrcUnlockedCards::WSrcUnlockedCards(float) 
(WDataSrc.cpp:357)
==8161==    by 0x80C1C0B: GameStateShop::Start() (GameStateShop.cpp:73)
==8161==    by 0x808BCEF: GameApp::Update() (GameApp.cpp:315)
==8161==    by 0x81AC73D: JGE::Update(float) (JGE.cpp:187)
==8161==    by 0x81CAA3C: Update(float) (Xmain.cpp:267)
==8161==    by 0x81CB02F: main (Xmain.cpp:384)
==8161==  Address 0x8e0fbc7 is 1 bytes before a block of size 93 alloc'd
==8161==    at 0x402328F: calloc (vg_replace_malloc.c:467)
==8161==    by 0x818084A: WSrcUnlockedCards::WSrcUnlockedCards(float) 
(WDataSrc.cpp:350)
==8161==    by 0x80C1C0B: GameStateShop::Start() (GameStateShop.cpp:73)
==8161==    by 0x808BCEF: GameApp::Update() (GameApp.cpp:315)
==8161==    by 0x81AC73D: JGE::Update(float) (JGE.cpp:187)
==8161==    by 0x81CAA3C: Update(float) (Xmain.cpp:267)
==8161==    by 0x81CB02F: main (Xmain.cpp:384)
==8161== 
==8161== Invalid read of size 1
==8161==    at 0x81808DF: WSrcUnlockedCards::WSrcUnlockedCards(float) 
(WDataSrc.cpp:357)
==8161==    by 0x8126FC0: MTGPack::getPool(std::string) (MTGPack.cpp:63)
==8161==    by 0x81288A4: MTGPack::meetsRequirements() (MTGPack.cpp:255)
==8161==    by 0x8128A8A: MTGPack::isUnlocked() (MTGPack.cpp:269)
==8161==    by 0x80C71D9: ShopBooster::randomCustom(MTGPacks*) 
(GameStateShop.cpp:746)
==8161==    by 0x80C7159: ShopBooster::randomize(MTGPacks*) 
(GameStateShop.cpp:731)
==8161==    by 0x80C472C: GameStateShop::load() (GameStateShop.cpp:314)
==8161==    by 0x80C2A92: GameStateShop::Start() (GameStateShop.cpp:129)
==8161==    by 0x808BCEF: GameApp::Update() (GameApp.cpp:315)
==8161==    by 0x81AC73D: JGE::Update(float) (JGE.cpp:187)
==8161==    by 0x81CAA3C: Update(float) (Xmain.cpp:267)
==8161==    by 0x81CB02F: main (Xmain.cpp:384)
==8161==  Address 0x64c77f7 is 1 bytes before a block of size 93 alloc'd
==8161==    at 0x402328F: calloc (vg_replace_malloc.c:467)
==8161==    by 0x818084A: WSrcUnlockedCards::WSrcUnlockedCards(float) 
(WDataSrc.cpp:350)
==8161==    by 0x8126FC0: MTGPack::getPool(std::string) (MTGPack.cpp:63)
==8161==    by 0x81288A4: MTGPack::meetsRequirements() (MTGPack.cpp:255)
==8161==    by 0x8128A8A: MTGPack::isUnlocked() (MTGPack.cpp:269)
==8161==    by 0x80C71D9: ShopBooster::randomCustom(MTGPacks*) 
(GameStateShop.cpp:746)
==8161==    by 0x80C7159: ShopBooster::randomize(MTGPacks*) 
(GameStateShop.cpp:731)
==8161==    by 0x80C472C: GameStateShop::load() (GameStateShop.cpp:314)
==8161==    by 0x80C2A92: GameStateShop::Start() (GameStateShop.cpp:129)
==8161==    by 0x808BCEF: GameApp::Update() (GameApp.cpp:315)
==8161==    by 0x81AC73D: JGE::Update(float) (JGE.cpp:187)
==8161==    by 0x81CAA3C: Update(float) (Xmain.cpp:267)
==8161== 
==8161== Invalid read of size 1
==8161==    at 0x81808DF: WSrcUnlockedCards::WSrcUnlockedCards(float) 
(WDataSrc.cpp:357)
==8161==    by 0x8128989: MTGPack::meetsRequirements() (MTGPack.cpp:259)
==8161==    by 0x8128A8A: MTGPack::isUnlocked() (MTGPack.cpp:269)
==8161==    by 0x80C71D9: ShopBooster::randomCustom(MTGPacks*) 
(GameStateShop.cpp:746)
==8161==    by 0x80C7159: ShopBooster::randomize(MTGPacks*) 
(GameStateShop.cpp:731)
==8161==    by 0x80C472C: GameStateShop::load() (GameStateShop.cpp:314)
==8161==    by 0x80C2A92: GameStateShop::Start() (GameStateShop.cpp:129)
==8161==    by 0x808BCEF: GameApp::Update() (GameApp.cpp:315)
==8161==    by 0x81AC73D: JGE::Update(float) (JGE.cpp:187)
==8161==    by 0x81CAA3C: Update(float) (Xmain.cpp:267)
==8161==    by 0x81CB02F: main (Xmain.cpp:384)
==8161==  Address 0x6849967 is 1 bytes before a block of size 93 alloc'd
==8161==    at 0x402328F: calloc (vg_replace_malloc.c:467)
==8161==    by 0x818084A: WSrcUnlockedCards::WSrcUnlockedCards(float) 
(WDataSrc.cpp:350)
==8161==    by 0x8128989: MTGPack::meetsRequirements() (MTGPack.cpp:259)
==8161==    by 0x8128A8A: MTGPack::isUnlocked() (MTGPack.cpp:269)
==8161==    by 0x80C71D9: ShopBooster::randomCustom(MTGPacks*) 
(GameStateShop.cpp:746)
==8161==    by 0x80C7159: ShopBooster::randomize(MTGPacks*) 
(GameStateShop.cpp:731)
==8161==    by 0x80C472C: GameStateShop::load() (GameStateShop.cpp:314)
==8161==    by 0x80C2A92: GameStateShop::Start() (GameStateShop.cpp:129)
==8161==    by 0x808BCEF: GameApp::Update() (GameApp.cpp:315)
==8161==    by 0x81AC73D: JGE::Update(float) (JGE.cpp:187)
==8161==    by 0x81CAA3C: Update(float) (Xmain.cpp:267)
==8161==    by 0x81CB02F: main (Xmain.cpp:384)
==8161==

Original issue reported on code.google.com by wagic.the.homebrew@gmail.com on 3 Oct 2010 at 7:07

GoogleCodeExporter commented 9 years ago
In the deck editor:
==9126== Conditional jump or move depends on uninitialised value(s)
==9126==    at 0x807E611: DeckMetaData::getDescription() (DeckMetaData.cpp:142)
==9126==    by 0x809B57A: GameState::renderDeckMenu(SimpleMenu*, 
std::vector<DeckMetaData*, std::allocator<DeckMetaData*> >) (GameState.cpp:83)
==9126==    by 0x809B053: GameState::fillDeckMenu(SimpleMenu*, std::string, 
std::string, Player*) (GameState.cpp:20)
==9126==    by 0x80A2473: GameStateDeckViewer::updateDecks() 
(GameStateDeckViewer.cpp:137)
==9126==    by 0x80A35A4: GameStateDeckViewer::Start() 
(GameStateDeckViewer.cpp:208)
==9126==    by 0x808BAE3: GameApp::Update() (GameApp.cpp:339)
==9126==    by 0x81AC49D: JGE::Update(float) (JGE.cpp:187)
==9126==    by 0x81CA2A8: Update(float) (Xmain.cpp:267)
==9126==    by 0x81CA89B: main (Xmain.cpp:384)
==9126== 
==9126== Conditional jump or move depends on uninitialised value(s)
==9126==    at 0x807E616: DeckMetaData::getDescription() (DeckMetaData.cpp:142)
==9126==    by 0x809B57A: GameState::renderDeckMenu(SimpleMenu*, 
std::vector<DeckMetaData*, std::allocator<DeckMetaData*> >) (GameState.cpp:83)
==9126==    by 0x809B053: GameState::fillDeckMenu(SimpleMenu*, std::string, 
std::string, Player*) (GameState.cpp:20)
==9126==    by 0x80A2473: GameStateDeckViewer::updateDecks() 
(GameStateDeckViewer.cpp:137)
==9126==    by 0x80A35A4: GameStateDeckViewer::Start() 
(GameStateDeckViewer.cpp:208)
==9126==    by 0x808BAE3: GameApp::Update() (GameApp.cpp:339)
==9126==    by 0x81AC49D: JGE::Update(float) (JGE.cpp:187)
==9126==    by 0x81CA2A8: Update(float) (Xmain.cpp:267)
==9126==    by 0x81CA89B: main (Xmain.cpp:384)
==9126==

Original comment by wagic.the.homebrew@gmail.com on 3 Oct 2010 at 12:39

GoogleCodeExporter commented 9 years ago
==9911==    at 0x8151C0E: StyleManager::determineActive(MTGDeck*, MTGDeck*) 
(StyleManager.cpp:116)
==9911==    by 0x8092084: GameSettings::automaticStyle(Player*, Player*) 
(GameOptions.cpp:448)
==9911==    by 0x808D310: GameObserver::startGame(Rules*) (GameObserver.cpp:202)
==9911==    by 0x80B3B14: GameStateDuel::loadTestSuitePlayers() 
(GameStateDuel.cpp:187)
==9911==    by 0x80B4A54: GameStateDuel::Update(float) (GameStateDuel.cpp:274)
==9911==    by 0x808B982: GameApp::Update() (GameApp.cpp:305)
==9911==    by 0x81AC49D: JGE::Update(float) (JGE.cpp:187)
==9911==    by 0x81CA2A8: Update(float) (Xmain.cpp:267)
==9911==    by 0x81CA89B: main (Xmain.cpp:384)
==9911== 
==9911== Conditional jump or move depends on uninitialised value(s)
==9911==    at 0x8151C31: StyleManager::determineActive(MTGDeck*, MTGDeck*) 
(StyleManager.cpp:117)
==9911==    by 0x8092084: GameSettings::automaticStyle(Player*, Player*) 
(GameOptions.cpp:448)
==9911==    by 0x808D310: GameObserver::startGame(Rules*) (GameObserver.cpp:202)
==9911==    by 0x80B3B14: GameStateDuel::loadTestSuitePlayers() 
(GameStateDuel.cpp:187)
==9911==    by 0x80B4A54: GameStateDuel::Update(float) (GameStateDuel.cpp:274)
==9911==    by 0x808B982: GameApp::Update() (GameApp.cpp:305)
==9911==    by 0x81AC49D: JGE::Update(float) (JGE.cpp:187)
==9911==    by 0x81CA2A8: Update(float) (Xmain.cpp:267)
==9911==    by 0x81CA89B: main (Xmain.cpp:384)
[21:53:34] J: ==9911==    at 0x818063F: 
WSrcUnlockedCards::WSrcUnlockedCards(float) (WDataSrc.cpp:357)
==9911==    by 0x8126D20: MTGPack::getPool(std::string) (MTGPack.cpp:63)
==9911==    by 0x8127048: MTGPack::assemblePack(MTGDeck*) (MTGPack.cpp:92)
==9911==    by 0x80C736E: ShopBooster::unitTest() (GameStateShop.cpp:810)
==9911==    by 0x81AB7B1: TestSuite::pregameTests() (TestSuiteAI.cpp:595)
==9911==    by 0x80B4A6C: GameStateDuel::Update(float) (GameStateDuel.cpp:276)
==9911==    by 0x808B982: GameApp::Update() (GameApp.cpp:305)
==9911==    by 0x81AC49D: JGE::Update(float) (JGE.cpp:187)
==9911==    by 0x81CA2A8: Update(float) (Xmain.cpp:267)
==9911==    by 0x81CA89B: main (Xmain.cpp:384)
==9911==  Address 0x7a62607 is 1 bytes before a block of size 93 alloc'd
==9911==    at 0x402328F: calloc (vg_replace_malloc.c:467)
==9911==    by 0x81805AA: WSrcUnlockedCards::WSrcUnlockedCards(float) 
(WDataSrc.cpp:350)
==9911==    by 0x8126D20: MTGPack::getPool(std::string) (MTGPack.cpp:63)
==9911==    by 0x8127048: MTGPack::assemblePack(MTGDeck*) (MTGPack.cpp:92)
==9911==    by 0x80C736E: ShopBooster::unitTest() (GameStateShop.cpp:810)
==9911==    by 0x81AB7B1: TestSuite::pregameTests() (TestSuiteAI.cpp:595)
==9911==    by 0x80B4A6C: GameStateDuel::Update(float) (GameStateDuel.cpp:276)
==9911==    by 0x808B982: GameApp::Update() (GameApp.cpp:305)
==9911==    by 0x81AC49D: JGE::Update(float) (JGE.cpp:187)
==9911==    by 0x81CA2A8: Update(float) (Xmain.cpp:267)
==9911==    by 0x81CA89B: main (Xmain.cpp:384)
==9911==

Original comment by wagic.the.homebrew@gmail.com on 3 Oct 2010 at 12:59

GoogleCodeExporter commented 9 years ago
Closing this, as unfortunately the report is too old to be useful, the files 
have changed too much since then :/

Original comment by wagic.the.homebrew@gmail.com on 26 May 2011 at 12:33