In order to debug sbcl internals, I tried tracing sbcl internal packages.
For example I tried
(trace "SB-IMPL")
This causes a control stack overflow. I tried changing the control stack size startup option while starting up SBCL, but no change.
Alternatively, I also tried to modify the function using: (only snippet)
(setf (symbol-function s)
#'(lambda (&rest args)
;do something
;invoke original function
;do something more))
under do-all-symbols only for symbols belonging to packages specified.
Still I get the overflow error. The above code shows binding stack exhausted error. Probably someone can explain how to control binding stack size?
Alternatively, if someone can point to how to change the internal SBCL function definitions while they are compiled could also be great? I could use that trick to recompile SBCL from source in that case.