Here are some examples of new versus old stacktrace.
"!" means the frame was in the java exception stacktrace, but are no
longer present because the exception was caught
#### Generate error with: (#"new" 'bloh)
________________ New stacktrace
Java exception 'java.lang.ClassNotFoundException: BLOH'.
[Condition of type java-exception]
Restarts:
0: [retry] Retry SLIME REPL evaluation request.
1: [*abort] Return to SLIME's top level.
2: [abort] Abort thread.
Backtrace:
0: (invoke-debugger #<java:java-exception java.lang.ClassNotFoundException: BLOH {5C19BF31}>)
1: org.armedbear.lisp.Lisp.error(Lisp.java:382)
2: ! java.net.URLClassLoader.findClass(URLClassLoader.java:381)
3: ! java.lang.ClassLoader.loadClass(ClassLoader.java:424)
4: ! org.armedbear.lisp.JavaClassLoader.loadClass(JavaClassLoader.java:60)
5: ! java.lang.Class.forName0(Native Method)
6: ! java.lang.Class.forName(Class.java:348)
7: ! java.lang.reflect.Method.invoke(Method.java:497)
8: (java:jstatic #<method public static java.lang.Class java.lang.Class.forName(java.lang.String,boolean,java.lang.ClassLoader) throws java.lang.ClassNotFoundException> "java.lang.Class" "BLOH" #<java.la.. 9: (jss:find-java-class "BLOH")
10: (#"new" common-lisp-user::bloh)
11: (#<anonymous-interpreted-function {7D30E302}> common-lisp-user::bloh)
12: (system::%eval (#"new" 'common-lisp-user::bloh))
13: (eval (#"new" 'common-lisp-user::bloh))
________________ Old stacktrace
Java exception 'java.lang.ClassNotFoundException: BLOH'.
[Condition of type java-exception]
Restarts:
0: [retry] Retry SLIME REPL evaluation request.
1: [*abort] Return to SLIME's top level.
2: [abort] Abort thread.
Backtrace:
0: (system:backtrace)
1: (system::new-backtrace #<java:java-exception java.lang.ClassNotFoundException: BLOH {48D709DB}>)
2: (#<local-function in make-invoke-debugger-hook {FB48C75}> #<java:java-exception java.lang.ClassNotFoundException: BLOH {48D709DB}> #<local-function in make-invoke-debugger-hook {FB48C75}>)
3: (apply #<local-function in make-invoke-debugger-hook {FB48C75}> (#<java:java-exception java.lang.ClassNotFoundException: BLOH {48D709DB}> #<local-function in make-invoke-debugger-hook {FB48C75}>))
4: (system::run-hook system::*invoke-debugger-hook* #<java:java-exception java.lang.ClassNotFoundException: BLOH {48D709DB}> #<local-function in make-invoke-debugger-hook {FB48C75}>)
5: (invoke-debugger #<java:java-exception java.lang.ClassNotFoundException: BLOH {48D709DB}>)
6: org.armedbear.lisp.Lisp.error(Lisp.java:382)
7: org.armedbear.lisp.Java.jstatic(Java.java:484)
8: org.armedbear.lisp.Java$pf_jstatic.execute(Java.java:510)
9: org.armedbear.lisp.Primitive.execute(Primitive.java:163)
10: (java:jstatic #<method public static java.lang.Class java.lang.Class.forName(java.lang.String,boolean,java.lang.ClassLoader) throws java.lang.ClassNotFoundException> "java.lang.Class" "BLOH" #<java.la.. 11: (jss:find-java-class "BLOH")
12: (#"new" common-lisp-user::bloh)
13: (#<anonymous-interpreted-function {641792AC}> common-lisp-user::bloh)
14: (system::%eval (#"new" 'common-lisp-user::bloh))
15: (eval (#"new" 'common-lisp-user::bloh))
################ Generate error with: (+ 1 nil)
________________ New stacktrace
The value nil is not of type number.
[Condition of type type-error]
Restarts:
0: [retry] Retry SLIME REPL evaluation request.
1: [*abort] Return to SLIME's top level.
2: [abort] Abort thread.
Backtrace:
0: (invoke-debugger #<type-error {4848F05A}>)
1: org.armedbear.lisp.Lisp.error(Lisp.java:382)
2: org.armedbear.lisp.Lisp.type_error(Lisp.java:435)
3: (+ 1 nil)
4: (system::%eval (+ 1 nil))
5: (eval (+ 1 nil))
________________ Old stacktrace
The value nil is not of type number.
[Condition of type type-error]
Restarts:
0: [retry] Retry SLIME REPL evaluation request.
1: [*abort] Return to SLIME's top level.
2: [abort] Abort thread.
Backtrace:
0: (system:backtrace)
1: (system::new-backtrace #<type-error {631F4DD}>)
2: (#<local-function in make-invoke-debugger-hook {FB48C75}> #<type-error {631F4DD}> #<local-function in make-invoke-debugger-hook {FB48C75}>)
3: (apply #<local-function in make-invoke-debugger-hook {FB48C75}> (#<type-error {631F4DD}> #<local-function in make-invoke-debugger-hook {FB48C75}>))
4: (system::run-hook system::*invoke-debugger-hook* #<type-error {631F4DD}> #<local-function in make-invoke-debugger-hook {FB48C75}>)
5: (invoke-debugger #<type-error {631F4DD}>)
6: org.armedbear.lisp.Lisp.error(Lisp.java:382)
7: org.armedbear.lisp.Lisp.type_error(Lisp.java:435)
8: org.armedbear.lisp.Fixnum.add(Fixnum.java:387)
9: org.armedbear.lisp.Primitives$pf_add.execute(Primitives.java:752)
10: (+ 1 nil)
11: (system::%eval (+ 1 nil))
12: (eval (+ 1 nil))
#### Generate error by typing #< then return into the slime repl
________________ New stacktrace
Illegal # macro character: #\<
[Condition of type reader-error]
Restarts:
0: [retry] Retry SLIME REPL evaluation request.
1: [*abort] Return to SLIME's top level.
2: [abort] Abort thread.
Backtrace:
0: (invoke-debugger #<reader-error {25D021FB}>)
1: (error #<reader-error {25D021FB}>)
2: org.armedbear.lisp.Lisp.error(Lisp.java:382)
3: org.armedbear.lisp.LispReader$22.execute(LispReader.java:350) = #<function sharp-illegal {2EF7C108}>
4: org.armedbear.lisp.Stream.readDispatchChar(Stream.java:813)
5: org.armedbear.lisp.LispReader$6.execute(LispReader.java:130) = #<function read-dispatch-char {153CFE29}>
6: org.armedbear.lisp.Stream.processChar(Stream.java:588)
7: org.armedbear.lisp.Stream.readPreservingWhitespace(Stream.java:557)
8: org.armedbear.lisp.Stream.readPreservingWhitespace(Stream.java:566)
9: (read #S(system::string-input-stream) nil #S(system::string-input-stream))
________________ Old stacktrace
Illegal # macro character: #\<
[Condition of type reader-error]
Restarts:
0: [retry] Retry SLIME REPL evaluation request.
1: [*abort] Return to SLIME's top level.
2: [abort] Abort thread.
Backtrace:
0: (system:backtrace)
1: (system::new-backtrace #<reader-error {35F15D9A}>)
2: (#<local-function in make-invoke-debugger-hook {FB48C75}> #<reader-error {35F15D9A}> #<local-function in make-invoke-debugger-hook {FB48C75}>)
3: (apply #<local-function in make-invoke-debugger-hook {FB48C75}> (#<reader-error {35F15D9A}> #<local-function in make-invoke-debugger-hook {FB48C75}>))
4: (system::run-hook system::*invoke-debugger-hook* #<reader-error {35F15D9A}> #<local-function in make-invoke-debugger-hook {FB48C75}>)
5: (invoke-debugger #<reader-error {35F15D9A}>)
6: (error #<reader-error {35F15D9A}>)
7: (#<local-function in eval-region {12C6FD1A}> #<reader-error {35F15D9A}>)
8: (signal #<reader-error {35F15D9A}>)
9: org.armedbear.lisp.Lisp.error(Lisp.java:382)
10: org.armedbear.lisp.LispReader$22.execute(LispReader.java:350) = #<function sharp-illegal {2EF7C108}>
11: org.armedbear.lisp.Stream.readDispatchChar(Stream.java:813)
12: org.armedbear.lisp.LispReader$6.execute(LispReader.java:130) = #<function read-dispatch-char {153CFE29}>
13: org.armedbear.lisp.Stream.processChar(Stream.java:588)
14: org.armedbear.lisp.Stream.readPreservingWhitespace(Stream.java:557)
15: org.armedbear.lisp.Stream.readPreservingWhitespace(Stream.java:566)
16: org.armedbear.lisp.Stream.read(Stream.java:501)
17: org.armedbear.lisp.Stream$16.execute(Stream.java:2436) = #<function read {7905182E}>
18: org.armedbear.lisp.Symbol.execute(Symbol.java:826)
19: org.armedbear.lisp.LispThread.execute(LispThread.java:851)
20: org.armedbear.lisp.swank_528.execute(swank.lisp:1732) = #<function eval-region {6A067578}>
21: org.armedbear.lisp.Symbol.execute(Symbol.java:803)
22: org.armedbear.lisp.LispThread.execute(LispThread.java:814)
23: org.armedbear.lisp.swank_repl_47.execute(swank-repl.lisp:270) = #<local-function in repl-eval {7AA59573}>
24: org.armedbear.lisp.LispThread.execute(LispThread.java:798)
25: org.armedbear.lisp.swank_repl_48.execute(swank-repl.lisp:283) = #<function track-package {24491179}>
26: org.armedbear.lisp.Symbol.execute(Symbol.java:803)
27: org.armedbear.lisp.LispThread.execute(LispThread.java:814)
28: org.armedbear.lisp.swank_repl_46.execute(swank-repl.lisp:270) = #<local-function in repl-eval {6A4AF4AE}>
29: org.armedbear.lisp.LispThread.execute(LispThread.java:798)
30: org.armedbear.lisp.swank_272.execute(swank.lisp:490) = #<function call-with-retry-restart {4E68726}>
31: org.armedbear.lisp.Symbol.execute(Symbol.java:814)
32: org.armedbear.lisp.LispThread.execute(LispThread.java:832)
33: org.armedbear.lisp.swank_repl_45.execute(swank-repl.lisp:270) = #<local-function in repl-eval {18F59278}>
34: org.armedbear.lisp.LispThread.execute(LispThread.java:798)
35: abcl_027941ee_2c60_4fe0_8ae7_0a41efb34cac.execute(Unknown Source) = #<function call-with-syntax-hooks {16BB516F}>
36: org.armedbear.lisp.LispThread.execute(LispThread.java:814)
37: org.armedbear.lisp.Lisp.funcall(Lisp.java:172)
38: org.armedbear.lisp.Primitives$pf_apply.execute(Primitives.java:2827) = #<function apply {61157D6}>
39: (read #S(system::string-input-stream) nil #S(system::string-input-stream))
40: (swank::eval-region "#<\n")
41: (#<local-function in repl-eval {78DF6AB0}>)
42: (swank-repl::track-package #<local-function in repl-eval {78DF6AB0}>)
43: (#<local-function in repl-eval {5C2443A9}>)
44: (swank::call-with-retry-restart "Retry SLIME REPL evaluation request." #<local-function in repl-eval {5C2443A9}>)
45: (#<local-function in repl-eval {6386D83A}>)
46: (swank/backend:call-with-syntax-hooks #<local-function in repl-eval {6386D83A}>)
47: (apply #<function call-with-syntax-hooks {16BB516F}> #<local-function in repl-eval {6386D83A}> nil)
48: (swank/backend:call-with-syntax-hooks #<local-function in repl-eval {6386D83A}>)
49: (swank::call-with-buffer-syntax nil #<local-function in repl-eval {6386D83A}>)
50: (swank-repl::repl-eval "#<\n")
51: (swank-repl:listener-eval "#<\n")
52: (system::%eval (swank-repl:listener-eval "#<\n"))
53: (eval (swank-repl:listener-eval "#<\n"))
54: (swank:eval-for-emacs (swank-repl:listener-eval "#<\n") "COMMON-LISP-USER" 418)
55: (apply #<function eval-for-emacs {347BE911}> ((swank-repl:listener-eval "#<\n") "COMMON-LISP-USER" 418))
56: (swank::process-requests nil)
57: (#<local-function in handle-requests {468DC77D}>)
58: (#<local-function in handle-requests {1FC34DCD}>)
59: (swank/backend:call-with-debugger-hook #<function swank-debugger-hook {1C78BEE7}> #<local-function in handle-requests {1FC34DCD}>)
60: (apply #<function call-with-debugger-hook {2F2A561F}> #<function swank-debugger-hook {1C78BEE7}> #<local-function in handle-requests {1FC34DCD}> nil)
61: (swank/backend:call-with-debugger-hook #<function swank-debugger-hook {1C78BEE7}> #<local-function in handle-requests {1FC34DCD}>)
62: (#<local-function in handle-requests {2E4ADDE3}>)
63: (swank::call-with-bindings ((*standard-input* . #S(extensions:slime-input-stream)) (*standard-output* . #S(extensions:slime-output-stream)) (*trace-output* . #S(extensions:slime-output-stream)) ..) #<..
64: (swank::handle-requests #<swank::multithreaded-connection {245DAD99}>)
65: (swank-repl::repl-loop #<swank::multithreaded-connection {245DAD99}>)
66: (#<local-function in spawn-repl-thread {376522E}>)
67: (swank::call-with-bindings nil #<local-function in spawn-repl-thread {376522E}>)
68: (#<local-function in spawn-repl-thread {5F73C8D9}>)
69: (#<local-function in g27583 {7AC7193C}>)
70: (threads::thread-function-wrapper #<local-function in g27583 {7AC7193C}>)