Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

スレッド間で局所脱出を使うとどうなるか

More than 5 years have passed since last update.

別のスレッドのスタック上のアドレスを読み込もうとしてエラーになるのかな?
リスタートが何もないのでよくわからない。
GDBとかローレベルデバッガで接続しないとわからないかな...

(ql:quickload :bordeaux-threads)
(tagbody
  (bt:make-thread (lambda () (go :escape)))
  :escape
  (print :hi!))
;; -->
Unhandled memory fault at #x0.
   [Condition of type SB-SYS:MEMORY-FAULT-ERROR]

Restarts:

Backtrace:
  0: (SB-SYS:MEMORY-FAULT-ERROR)
  1: ("foreign function: call_into_lisp")
  2: ("foreign function: post_signal_tramp")
  3: ("no debug information for frame")
  4: (SB-THREAD::INITIAL-THREAD-FUNCTION-TRAMPOLINE #<SB-THREAD:THREAD ..
  5: ("foreign function: call_into_lisp")
  6: ("foreign function: new_thread_trampoline")
guicho271828
主にcommon lisp。javascriptもやる。 組み込みマイコンでCやアセンブラを買いたりもする。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away