>>>>> "rif" == rif <[EMAIL PROTECTED]> writes:
rif> I'm struggling with the debugger. I have a function called foo, I try
rif> to call it, and save the results, and it segfaults:
rif> Error in function UNIX::SIGSEGV-HANDLER: Segmentation Violation at
#x4A3C7182.
[snip]
rif> ; File: /home/rif/Projects/SpeakerRecog/NIST98/Lisp/ProcessOutput.lisp
rif> (AREF DISTS-ARR I J)
rif> 5]
[snip]
This kind of error probably indicates you've compiled something with
safety = 0 and written past some array bounds or something. Or some
FFI scribbled over memory.
rif> Alright, so I think the aref is producing the error. i and j are both
rif> local variables of score-train-model, defined as the iteration
rif> variables for a pair of nested dotimes loops, the aref call is inside
rif> both loops. I'm not sure why they're not listed by list-locals, which
rif> seems to only list the parameters of the function, rather than the
rif> variables where I'm executed.
To see the variables, you need to compile with less speed or more
debug. Maybe (debug 2) or 3.
Ray