Roxen dies when using faulty code (instead of getting Pike backtrace)
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3315
Reported by Niklas Schulman, Roxen niklas.schulman@roxen.com
Arjan van Staalduijnen reported:
I managed to crash my Roxen webserver, using a little piece of Pike code using stringbuffers. I had a module execute code like this:
String.Buffer css = String.Buffer();
css->add("span.cross{position:absolute;border:solid
thin;text-align:center;"
"width:", (3*id->misc->gridsize), "px;height:",
(3*id->misc->gridsize),
"px;color:white;background-color:red;z-index:920}\n");
The problem lies in the pieces (3*id->misc->gridsize), which are integers, without doing a cast to string. I know this is, of course, incorrect code, but instead of getting a Pike backtrace I got a dead Roxen webserver - no errors reported.
This problem was triggered using the Pike version that comes with Roxen 3.2.103, no custom build, under RedHat 8.0.