Branch: refs/heads/master
  Home:   https://github.com/Warzone2100/warzone2100
  Commit: 1f23701693b3e7888a9ed1b54e12e7e6af9875b6
      
https://github.com/Warzone2100/warzone2100/commit/1f23701693b3e7888a9ed1b54e12e7e6af9875b6
  Author: Cyp <c...@wz2100.net>
  Date:   2017-03-19 (Sun, 19 Mar 2017)

  Changed paths:
    M src/structure.cpp

  Log Message:
  -----------
  Fix left-over dead pointers on failed structure generation.

Maybe only happens when placing structures in debug mode.

==28472== Invalid read of size 4
==28472==    at 0x5FF0FE: TileHasStructure (map.h:270)
==28472==    by 0x5FF0FE: DrawRadarObjects (radar.cpp:492)
==28472==    by 0x5FF0FE: drawRadar() (radar.cpp:280)
==28472==    by 0x4B43BC: draw3DScene() (display3d.cpp:755)
==28472==    by 0x4B7690: displayWorld() (display.cpp:1217)
==28472==    by 0x538A5C: renderLoop() (loop.cpp:320)
==28472==    by 0x539A11: gameLoop() (loop.cpp:715)
==28472==    by 0x53A05A: runGameLoop (main.cpp:674)
==28472==    by 0x53A05A: mainLoop() (main.cpp:780)
==28472==    by 0x6F91D2: WzMainWindow::paintGL() (wzapp_qt.cpp:275)
==28472==    by 0x40BCAA3: QGLWidget::glDraw() (qgl.cpp:4561)
==28472==    by 0x40BC48C: QGLWidget::paintEvent(QPaintEvent*) (qgl.cpp:4389)
==28472==    by 0x77889A7: QWidget::event(QEvent*) (qwidget.cpp:9117)
==28472==    by 0x774292B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (qapplication.cpp:3804)
==28472==    by 0x774703F: QApplication::notify(QObject*, QEvent*) 
(qapplication.cpp:3561)
==28472==  Address 0x360285c8 is 8 bytes inside a block of size 680 free'd
==28472==    at 0x4C2D790: operator delete(void*) (vg_replace_malloc.c:576)
==28472==    by 0x6541F4: buildStructureDir(STRUCTURE_STATS*, unsigned int, 
unsigned int, unsigned short, unsigned int, bool) (structure.cpp:1447)
==28472==    by 0x58546F: recvBuildFinished(NETQUEUE) (multistruct.cpp:140)
==28472==    by 0x581292: recvMessage() (multiplay.cpp:722)
==28472==    by 0x53931B: gameLoop() (loop.cpp:683)
==28472==    by 0x53A05A: runGameLoop (main.cpp:674)
==28472==    by 0x53A05A: mainLoop() (main.cpp:780)
==28472==    by 0x6F91D2: WzMainWindow::paintGL() (wzapp_qt.cpp:275)
==28472==    by 0x40BCAA3: QGLWidget::glDraw() (qgl.cpp:4561)
==28472==    by 0x40BC48C: QGLWidget::paintEvent(QPaintEvent*) (qgl.cpp:4389)
==28472==    by 0x77889A7: QWidget::event(QEvent*) (qwidget.cpp:9117)
==28472==    by 0x774292B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (qapplication.cpp:3804)
==28472==    by 0x774703F: QApplication::notify(QObject*, QEvent*) 
(qapplication.cpp:3561)
==28472==  Block was alloc'd at
==28472==    at 0x4C2C630: operator new(unsigned long) (vg_replace_malloc.c:334)
==28472==    by 0x653B55: buildStructureDir(STRUCTURE_STATS*, unsigned int, 
unsigned int, unsigned short, unsigned int, bool) (structure.cpp:1368)
==28472==    by 0x58546F: recvBuildFinished(NETQUEUE) (multistruct.cpp:140)
==28472==    by 0x581292: recvMessage() (multiplay.cpp:722)
==28472==    by 0x53931B: gameLoop() (loop.cpp:683)
==28472==    by 0x53A05A: runGameLoop (main.cpp:674)
==28472==    by 0x53A05A: mainLoop() (main.cpp:780)
==28472==    by 0x6F91D2: WzMainWindow::paintGL() (wzapp_qt.cpp:275)
==28472==    by 0x40BCAA3: QGLWidget::glDraw() (qgl.cpp:4561)
==28472==    by 0x40BC48C: QGLWidget::paintEvent(QPaintEvent*) (qgl.cpp:4389)
==28472==    by 0x77889A7: QWidget::event(QEvent*) (qwidget.cpp:9117)
==28472==    by 0x774292B: QApplicationPrivate::notify_helper(QObject*, 
QEvent*) (qapplication.cpp:3804)
==28472==    by 0x774703F: QApplication::notify(QObject*, QEvent*) 
(qapplication.cpp:3561)


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Warzone2100-commits mailing list
Warzone2100-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-commits

Reply via email to