#308 Segfault in isAlive

Bug_-_Protocol
closed-fixed
Lee Begg
5
2008-03-13
2008-03-13
No

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7abb6c0 (LWP 2859)]
0x080da58c in IGObject::isAlive (this=0x0) at object.cpp:82
82 return alive;
(gdb) bt
#0 0x080da58c in IGObject::isAlive (this=0x0) at object.cpp:82
#1 0x081278ec in ObjectView::packFrame (this=0x81b9898, frame=0x81b2070, playerid=1) at objectview.cpp:56
#2 0x081213f3 in PlayerView::processGetObject (this=0x81b0be0, objid=135, frame=0x81b2070) at playerview.cpp:115
#3 0x08118158 in PlayerAgent::processGetObjectById (this=0x81b7080, frame=0x81aaa80) at playeragent.cpp:243
#4 0x08118237 in PlayerAgent::processIGFrame (this=0x81b7080, frame=0x81aaa80) at playeragent.cpp:91
#5 0x080e7341 in PlayerConnection::inGameFrame (this=0x81b1418) at playerconnection.cpp:301
#6 0x080e8b27 in PlayerConnection::process (this=0x81b1418) at playerconnection.cpp:80
#7 0x080ceaf3 in Network::masterLoop (this=0x8153350) at net.cpp:334
#8 0x080beded in main (argc=3, argv=0xbf908e84) at main.cpp:135
(gdb) bt full
#0 0x080da58c in IGObject::isAlive (this=0x0) at object.cpp:82
No locals.
#1 0x081278ec in ObjectView::packFrame (this=0x81b9898, frame=0x81b2070, playerid=1) at objectview.cpp:56
object = (IGObject *) 0x0
#2 0x081213f3 in PlayerView::processGetObject (this=0x81b0be0, objid=135, frame=0x81b2070) at playerview.cpp:115
object = (class ObjectView *) 0x81b9898
#3 0x08118158 in PlayerAgent::processGetObjectById (this=0x81b7080, frame=0x81aaa80) at playeragent.cpp:243
objectID = 135
i = 57
len = 58
of = (Frame *) 0x81b2070
#4 0x08118237 in PlayerAgent::processIGFrame (this=0x81b7080, frame=0x81aaa80) at playeragent.cpp:91
of = (Frame *) 0x200
#5 0x080e7341 in PlayerConnection::inGameFrame (this=0x81b1418) at playerconnection.cpp:301
frame = (Frame *) 0x81aaa80
#6 0x080e8b27 in PlayerConnection::process (this=0x81b1418) at playerconnection.cpp:80
No locals.
#7 0x080ceaf3 in Network::masterLoop (this=0x8153350) at net.cpp:334
itcurr = {_M_node = 0x81b1760}
netstat = true
write_set = {fds_bits = {0 <repeats 32 times>}}
tv = {tv_sec = 462, tv_usec = 940000}
cur_set = {fds_bits = {512, 0 <repeats 31 times>}}
#8 0x080beded in main (argc=3, argv=0xbf908e84) at main.cpp:135
tpschemename = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xb7dd7624 ""}}
persistencename = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xb7dd7624 ""}}
rulesetname = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x8154474 "rfts"}}
myNetwork = (Network *) 0x8153350
myConsole = (class Console *) 0x81520f8
myGame = (Game *) 0x815d600
myPlugins = (PluginManager *) 0x815d568
myLogger = (class Logger *) 0x8154828
mySettings = (Settings *) 0x8152028
(gdb)

Discussion

  • Lee Begg

    Lee Begg - 2008-03-13

    Logged In: YES
    user_id=82757
    Originator: NO

    ObjectView wasn't checking if the object was NULL.
    Fixed in rev 57655e572952

     
  • Lee Begg

    Lee Begg - 2008-03-13
    • assigned_to: xdotx --> llnz
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks