Warning: Table './drupalbase/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:138:\"include_once(./logotext.php) [<a href=\'function.include-once\'>function.include-once</a>]: failed to open stream: No such file or directory\";s:5:\"%file\";s:80:\"/var/www/http/journal.boblycat.org/drupal/themes/marinelli/giordani/page.tpl.php\";s:5:\"%line\";i:15;}', 3, '', 'http://journal.boblycat.org/node/2934', '', '54.204.249.184', 1414035887) in /var/www/http/journal.boblycat.org/drupal/includes/database.mysqli.inc on line 128

Warning: Table './drupalbase/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:7:\"warning\";s:8:\"%message\";s:161:\"include_once() [<a href=\'function.include\'>function.include</a>]: Failed opening \'./logotext.php\' for inclusion (include_path=\'.:/usr/share/php:/usr/share/pear\')\";s:5:\"%file\";s:80:\"/var/www/http/journal.boblycat.org/drupal/themes/marinelli/giordani/page.tpl.php\";s:5:\"%line\";i:15;}', 3, '', 'http://journal.boblycat.org/node/2934', '', '54.204.249.184', 1414035887) in /var/www/http/journal.boblycat.org/drupal/includes/database.mysqli.inc on line 128

Sixteen out of ten teenagers love ketchup with their fries.
The remaining seven prefer the nutritious blood of boblycats as dip.
Look for us at your nearest fast food restaurant.

You are hereBlogs / karltk's blog / Would you like a stack trace with your "rewriting failed"?

Would you like a stack trace with your "rewriting failed"?


Prompted by my visit to EPITA, I hacked together some very basic support for stack traces in Stratego that might come in handy when a Stratego program fails.

Here's a simple Stratego program, called prog (which, if you look at it closely, will always fail):

  main = foo

  foo = bar

  bar = fap ; zap

  fap = id

  zap = fail

On the latest and greatest version of the compiler (build 17522 and later), you will get the following trace when this program is executed:

prog: rewriting failed, trace:
        main_0_0
        foo_0_0
        bar_0_0
        zap_0_0 

There are a number of caveats with the tracing that I will try to get rid of, and, when there are only very hard problems left, explain myself out of, in a couple of future posts.


Warning: Table './drupalbase/watchdog' is marked as crashed and should be repaired query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:398:\"Table &#039;./drupalbase/accesslog&#039; is marked as crashed and should be repaired\nquery: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values(&#039;Would you like a stack trace with your &amp;quot;rewriting failed&amp;quot;?&#039;, &#039;node/2934&#039;, &#039;&#039;, &#039;54.204.249.184&#039;, 0, &#039;3941253cbbe6ab4f5544e90d0748f5ee&#039;, 110, 1414035887)\";s:5:\"%file\";s:78:\"/var/www/http/journal.boblycat.org/drupal/modules/statistics/statistics.module\";s:5:\"%line\";i:64;}', 3,  in /var/www/http/journal.boblycat.org/drupal/includes/database.mysqli.inc on line 128