1 Nov 2003 02:23
Re: OS X Priorities for MCL
On Friday, October 31, 2003, at 02:26 PM, james anderson wrote: >> 2) Better exception catching. > i wonder what you can expect in this regard. > > on one hand one might think 'well c can do it', but on the other hand, > although one can always attach mcl to gdb and have it trap your > addressing errors, when i've resorted to that, it's been because i've > done something unnatural like trash the stack. at which point i've > never been in a much better a position to interpret the state in gdb > than to interpret the normal stack dumps. > > ? what kind of support are you looking for? Well, I would like it not to crash. That way I might have some chance to at least see which function blew up. I realize that this may not be practical, but I have seen other lisps do this on Unix, so it may be possible... I also realize that the place where something gets an address error may not be close to where the error was introduced, but when the entire environment exits, it's really tough to debug. For now, I just make sure that there are CHECK-TYPE assertions in the MCL code, so that I also don't have my workspace blow up if I accidentally type an integer instead of a float when calling a function from the Listener. (Probably too much detail, but this is running code that is generated from our own Stella language, so adding the type checks isn't too difficult to arrange, although it does sort of defeat the purpose of(Continue reading)
RSS Feed