On Thu, Dec 25, 2008 at 3:56 PM, Eli Barzilay <span dir="ltr"><<a href="mailto:eli@barzilay.org">eli@barzilay.org</a>></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>
> I started in on it, and I'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">> bytes->string/utf8: string not well-formed UTF-8 encoding: #"0\344\22"<br>
><br>
> Any thoughts as to why *mysql_error* is returning back a string scheme is<br>
> choking on?<br>
<br>
</div>It's probably best to change the type to _bytes, then see what the<br>
actual char* contents is.</blockquote><div><br>Good to know. Perhaps the fact that mysql_error() is returning garbage is related to the system crashing. Hmmm, maybe something is just massively corrupt.<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> 2) DrScheme has been crashing nearly constantly since I started<br><div class="Ih2E3d">
> 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). Some things that you<br>
can do to verify this are adding `collect-garbage' in various places<br>
(maybe even a thread that keeps triggering GCs), and trying to run the<br>
code with the CGC executables. (You can get them as part of the<br>
"Full" distribution from the nightly builds.)</blockquote><div><br>Thanks for the tips.<br> </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'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> </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? 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>