roxen.lists.roxen.general

Subject Author Date
Re: Roxen 4.0 sudden death on piketag - corrupted double-linked lists Thomas Gusenleitner <thomas[dot]gusenleitner[at]com-bet[dot]co> 05-01-2006
 on #include?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
hello,<br>
<br>
since version 4.0 i have problems with switch {} in pike tags. using
switch restarts the server immediately<br>
<br>
<br>
bye<br>
thomas<br>
<br>
<a class="moz-txt-link-abbreviated"
href="mailto:<gnudiff[at]gmail.com>"><gnudiff[at]gmail.com></a> wrote:
<blockquote cite="<mid9dcb6fa40601051304v615822b9y[at]mail.gmail.com>"
 type="cite">
  <pre wrap="">2006/1/5, Martin B&auml;hr <a class="moz-txt-link-rfc2396E"
href="mailto:<mbaehr[at]email.archlab.tuwien.ac.at>">&lt;<mbaehr[at]email.archlab.tuwien.ac.at>&gt;</a>:
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">If I insert the contents of the .h file in the RXML file, and
remove
#include, everything works as expected.
      </pre>
    </blockquote>
    <pre wrap="">so it's not the contents of the file after all.
can you reproduce the problem with a different pike tag that just
#includes some simple stuff?

greetings, martin.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Now I have "fixed" the previous file, I am starting to have the exact
same problem in another piketag in a different location, which does
NOT have #include anywhere in it. :(

The things that those files share in common is:
- db interaction (postgres) via Sql.Sql() /1script/ and/or
DBManager.get() /other/;
-- DB itself is ok, as the RXML &lt;emit&gt; and &lt;sqlquery&gt; tags work all
the time.

- regexp usage for checking validity                 object(Regexp)
validchars = Regexp(<a class="moz-txt-link-rfc2396E"
href="mailto:^[A-Za-z0-9\.,_=@]([A-Za-z0-9\.,_=@])*[A-Za-z0-9\.,_=@]$">"^[A-Za-z0-9\.,_=@]([
A-Za-z0-9\.,_=@])*[A-Za-z0-9\.,_=@]$"</a>);

- RXML variable usage within piketag for passing info to piketag and
back to the RXML file, like:  form.myvar1 and var.myvar2 in
assignments and


The problem appears to be in Roxen itself tho or hardware, as I
managed to catch a console error message:

*** glibc detected *** malloc(): memory corruption (fast):
0x00000000010c524e ***

and this other piketag now exits simply at:

    &lt;?pike

                array(string) errors = ({ });
                write("TEST OK");
                return;

....
?&gt;

  </pre>
</blockquote>
</body>
</html>