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.82.166.45', 1414250106) 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.82.166.45', 1414250106) in /var/www/http/journal.boblycat.org/drupal/includes/database.mysqli.inc on line 128

Boblycat is Europe's premier source of rental cats. We provide just
the cat you need, whether you are a funny little man ready to
conquer the world or a misfit school teacher exploring the darkness
of eccentricity.

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:396:\"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.82.166.45&#039;, 0, &#039;dabca2d370fdcdcc07ad02192808ebe2&#039;, 101, 1414250106)\";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