jonm / SillyMUD

SillyMUD, a derivative of DikuMud
Other
8 stars 5 forks source link

backstab crashed the mud? #87

Open jonm opened 8 years ago

jonm commented 8 years ago

Made a level 1 thief and was wandering around the Chessboard and ran across a mortally wounded pawn. Tried to backstab it and the game crashed. Last log line was:

Dec 29 22:55:52 ip-172-30-0-252 silly[24918]: BS multiplier for 1th level char is 4.

I'll try to replicate it locally.

jonm commented 8 years ago

I have been unable to reproduce, even after several additional backstabs, so perhaps this was a coincidence.

jonm commented 8 years ago

Of course, after closing it, I crashed the mud again on a backstab...

dangitall commented 8 years ago

Can you enable core dumps in general?

jonm commented 8 years ago

Yeah, what is that, with ulimit?

dangitall commented 8 years ago

Well, the way to do this is check the system limits in /etc/security/limits.conf and also local limits with ulimit -a. When I do this, though, they both show that core files should be unlimited in size. And indeed, a test program dumps core when it crashes. Can you verify the output of ulimit -a from whatever shell you start the mud from?

jonm commented 8 years ago
[ec2-user@ip-172-30-0-252 sysconfig]$ ulimit -a
core file size          (blocks, -c) 0
...

So that looks to be the problem.

dangitall commented 8 years ago

Yeah, so run ulimit -c unlimited first.

dangitall commented 8 years ago

FYI, it looks like core files are configured to go into /tmp:

[ec2-user@ip-172-30-0-252 ~]$ cat /proc/sys/kernel/core_pattern
/tmp/core-%e-%s-%u-%g-%p-%t
jonm commented 8 years ago

Yes, I just did that part by following the instructions here: http://www.unixmen.com/how-to-enable-core-dumps-in-rhel6/

I also put ulimit -c unlimited into the .bashrc of ec2-user. So we'll see if we can catch it again.

dangitall commented 8 years ago

Maybe we should write some fuzz-testing bots.