Segfault on Character::wieldDropped

Bug #209022 reported by Erik Ogenvik
2
Affects Status Importance Assigned to Milestone
Cyphesis
Fix Released
Undecided
Erik Ogenvik

Bug Description

With a recently built cyphesis (1 month old perhaps) I got a segfault with this backtrace:
#0 Character::wieldDropped (this=0xa6bb420) at ../../rulesets/Character.cpp:213

warning: Source file is more recent than executable.

213 wield->setTo(getId());
(gdb) bt
#0 Character::wieldDropped (this=0xa6bb420) at ../../rulesets/Character.cpp:213
#1 0x081022a2 in Entity::onContainered (this=0x8501508) at /usr/include/sigc++-2.0/sigc++/signal.h:544
#2 0x08101093 in LocatedEntity::changeContainer (this=0x8501508, new_loc=0xb802cf8)
    at ../../rulesets/LocatedEntity.cpp:206
#3 0x080d039f in Thing::MoveOperation (this=0x8501508, op=@0xb6bb5e0, res=@0xbf9a294c) at ../../rulesets/Thing.cpp:191
#4 0x081025ce in Entity::callOperation (this=0x8501508, op=@0xb6bb5e0, res=@0xbf9a294c) at ../../rulesets/Entity.cpp:318
#5 0x08102799 in Entity::operation (this=0x8501508, op=@0xb6bb5e0, res=@0xbf9a294c) at ../../rulesets/Entity.cpp:308
#6 0x0807542c in WorldRouter::deliverTo (this=0xbf9a2d74, op=@0xb6bb5e0, ent=@0x8501508)
    at ../../server/WorldRouter.cpp:431
#7 0x08075f2e in WorldRouter::operation (this=0xbf9a2d74, op=@0xb6bb5e0, from=@0xb802cf8)
    at ../../server/WorldRouter.cpp:488
#8 0x0807687c in WorldRouter::idle (this=0xbf9a2d74, sec=1206813327, usec=678404) at ../../server/WorldRouter.cpp:573
#9 0x080a8b8e in CommServer::idle (this=0xbf9a2e9c) at ../../server/CommServer.cpp:91
#10 0x080a8f74 in CommServer::poll (this=0xbf9a2e9c) at ../../server/CommServer.cpp:124
#11 0x080aac2e in main (argc=-2082109099, argv=0x5d8938ec) at ../../server/server.cpp:312

Revision history for this message
Erik Ogenvik (erik-ogenvik) wrote :

Got this again on amber.
Bt:

#0 0xb7c87e4e in std::string::assign () from /usr/lib/libstdc++.so.6
#1 0x080e9ab3 in Character::wieldDropped (this=0xc3faa48) at /usr/include/c++/4.2/bits/basic_string.h:491
#2 0x080dca92 in Entity::onContainered (this=0x9cf7890) at /usr/include/sigc++-2.0/sigc++/signal.h:550
#3 0x0811e14a in LocatedEntity::changeContainer (this=0x9cf7890, new_loc=0xca15278) at ../../rulesets/LocatedEntity.cpp:231
#4 0x080e24d8 in Thing::MoveOperation (this=0x9cf7890, op=@0xcbaf1e8, res=@0xbf8d4904) at ../../rulesets/Thing.cpp:190
#5 0x080dde00 in Entity::callOperation (this=0x9cf7890, op=@0x819b3e0, res=@0xbf8d4904) at ../../rulesets/Entity.cpp:401
#6 0x080de049 in Entity::operation (this=0x9cf7890, op=@0xcbaf1e8, res=@0xbf8d4904) at ../../rulesets/Entity.cpp:391
#7 0x080779ba in WorldRouter::deliverTo (this=0xbf8d4f6c, op=@0xcbaf1e8, ent=@0x9cf7890) at ../../server/WorldRouter.cpp:384
#8 0x0807a81e in WorldRouter::operation (this=0xbf8d4f6c, op=@0xcbaf1e8, from=@0xca15278) at ../../server/WorldRouter.cpp:441
#9 0x0807ae13 in WorldRouter::idle (this=0xbf8d4f6c, sec=1248248077, usec=73779) at ../../server/WorldRouter.cpp:526
#10 0x080b5c9e in CommServer::idle (this=0xbf8d5024) at ../../server/CommServer.cpp:98
#11 0x080b6174 in CommServer::poll (this=0xbf8d5024) at ../../server/CommServer.cpp:131
#12 0x080b8d1e in main (argc=0, argv=0x0) at ../../server/server.cpp:373

Using cyphesis built 2009-07-18

Revision history for this message
Al Riddoch (alriddoch) wrote :

Thanks,

Any idea what event caused it?

Changed in cyphesis:
assignee: nobody → Al Riddoch (alriddoch)
Revision history for this message
Erik Ogenvik (erik-ogenvik) wrote :

No, I don't know.

Changed in cyphesis:
assignee: Al Riddoch (alriddoch) → Erik Ogenvik (erik-ogenvik)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.