On Thu, Dec 25, 2008 at 3:56 PM, Eli Barzilay <span dir="ltr">&lt;<a href="mailto:eli@barzilay.org">eli@barzilay.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Dec 25, Ben Simon wrote:<br>
&gt; I started in on it, and I&#39;ve run into two major issues:<br>
... <br></div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">&gt; &nbsp;bytes-&gt;string/utf8: string not well-formed UTF-8 encoding: #&quot;0\344\22&quot;<br>

&gt;<br>
&gt; Any thoughts as to why *mysql_error* is returning back a string scheme is<br>
&gt; choking on?<br>
<br>
</div>It&#39;s probably best to change the type to _bytes, then see what the<br>
actual char* contents is.</blockquote><div><br>Good to know.&nbsp; Perhaps the fact that mysql_error() is returning garbage is related to the system crashing. Hmmm, maybe something is just massively corrupt.<br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; 2) DrScheme has been crashing nearly constantly since I started<br><div class="Ih2E3d">
&gt; working on this. </div></blockquote><div>... <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
</div>The most common cause of this is a bad memory reference, usually<br>
because mzscheme uses a moving GC (by default). &nbsp;Some things that you<br>
can do to verify this are adding `collect-garbage&#39; in various places<br>
(maybe even a thread that keeps triggering GCs), and trying to run the<br>
code with the CGC executables. &nbsp;(You can get them as part of the<br>
&quot;Full&quot; distribution from the nightly builds.)</blockquote><div><br>Thanks for the tips.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Another thing to verify is that you don&#39;t call the close function<br>
twice on aa handler or something similar.</blockquote><div><br>I added a print statement right before close was called - and the system crashed before it even got that far. Still, good to know.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Other than that -- yes, life in the (unsafe!) world can be hard...</blockquote><div><br>Yeah, you can say that again :-).<br><br>-Ben<br></div></div><br clear="all"><br>-- <br>Have an idea for software? &nbsp;I can make it happen - <a href="http://www.ideas2executables.com">http://www.ideas2executables.com</a><br>
My Blog: <a href="http://benjisimon.blogspot.com">http://benjisimon.blogspot.com</a><br>