From jianshi.huang at gmail.com Sat Dec 1 06:02:21 2007 From: jianshi.huang at gmail.com (Jianshi Huang) Date: Sat, 1 Dec 2007 15:02:21 +0900 Subject: [cl-objc-devel] Stack overflow when compiling cl-objc Message-ID: <1D123CC5-F7E2-4232-A4B8-6B6A59E0BC2B@gmail.com> Hi, I got stack over flow error when doing asdf:load-op cl-objc. I think I need your help. I'm using SBCL 1.0.12.3 (the latest :) on OS X Leopard x86. Here's the error message: ---------------------- Compiling CLOS bindings for Foundation framework in /Users/ huangjianshi/.sbcl/site/cl-objc/src/frameworks/Foundation-CLOS.lisp Control stack guard page temporarily disabled: proceed with caution debugger invoked on a SB-KERNEL::CONTROL-STACK-EXHAUSTED in thread #: Control stack exhausted (no more space for function call frames). This is probably due to heavily nested or infinitely recursive function calls, or a tail call that SBCL cannot or has not optimized away. Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL. restarts (invokable by number or by possibly-abbreviated name): 0: [RETRY ] Retry performing # on #. 1: [ACCEPT] Continue, treating # on # as having been successful. 2: [ABORT ] Exit debugger, returning to top level. (SB-KERNEL::CONTROL-STACK-EXHAUSTED-ERROR) 0] 2 Control stack guard page temporarily disabled: proceed with caution ------------------------- From matley at muppetslab.org Thu Dec 6 01:57:20 2007 From: matley at muppetslab.org (Luigi Panzeri) Date: Thu, 06 Dec 2007 02:57:20 +0100 Subject: [cl-objc-devel] Stack overflow when compiling cl-objc In-Reply-To: <1D123CC5-F7E2-4232-A4B8-6B6A59E0BC2B@gmail.com> (Jianshi Huang's message of "Sat\, 1 Dec 2007 15\:02\:21 +0900") References: <1D123CC5-F7E2-4232-A4B8-6B6A59E0BC2B@gmail.com> Message-ID: Jianshi Huang writes: > Hi, > > I got stack over flow error when doing asdf:load-op cl-objc. I think I > need your help. > > I'm using SBCL 1.0.12.3 (the latest :) on OS X Leopard x86. > I am sorry but i don't have Leopard yet :-( Anyway, can you send to the mailing list the full backtrace of the error and the file /Users/huangjianshi/.sbcl/site/cl-objc/src/frameworks/Foundation-CLOS.lisp? Please include also the version of cffi you are using. Other way to solve the error is to delete the Foundation-CLOS.lisp file and recompile cl-objc. The file (it contains the clos bindings for the Foundation framework) should be recreated and maybe the new file (made using information got from the objc runtime) works for Leopard too. P.S. Actually i am merging cl-objc with the work coming from other incomplete objc bridge, so maybe in 1/2 weeks the new code can incidentally work also on Leopard, so stay tuned! Bye -- Luigi Panzeri From jianshi.huang at gmail.com Thu Dec 6 05:36:32 2007 From: jianshi.huang at gmail.com (Jianshi Huang) Date: Thu, 6 Dec 2007 14:36:32 +0900 Subject: [cl-objc-devel] Stack overflow when compiling cl-objc In-Reply-To: References: <1D123CC5-F7E2-4232-A4B8-6B6A59E0BC2B@gmail.com> Message-ID: <558E39A1-C05A-43F1-8C6B-5D6424DD2678@gmail.com> Hi, Thanks for the reply. I'll paste the backtrace. -------- 0] :backtrace 20 0: (SB-KERNEL::CONTROL-STACK-EXHAUSTED-ERROR) 1: ("foreign function: call_into_lisp") 2: ("foreign function: call_into_lisp_tramp") 3: ((FLET #:BODY-FUN-[GETHASH3]995)) 4: (SB-IMPL::GETHASH3 :CHAR # NIL) 5: (CFFI::FIND-TYPE-PARSER :CHAR) 6: (CFFI::PARSE-TYPE :CHAR) 7: ((SB-PCL::FAST-METHOD CFFI:FOREIGN-TYPE-SIZE (T)) # # :CHAR) 8: (CFFI:FOREIGN-ALLOC :CHAR) 9: (CFFI:FOREIGN-STRING-ALLOC #) 10: ((SB-PCL::FAST-METHOD CFFI:TRANSLATE-TO-FOREIGN (STRING CFFI::FOREIGN-STRING-TYPE)) # # "name" #) 11: (OBJC-CFFI::SEL-REGISTER-NAME "name") 12: ((SB-PCL::FAST-METHOD CFFI:TRANSLATE-TO-FOREIGN (STRING OBJC-CFFI::OBJC-SELECTOR-TYPE)) # # "name" #) 13: ((SB-PCL::FAST-METHOD CFFI:TRANSLATE-FROM-FOREIGN (T OBJC-CFFI::OBJC-PROTOCOL-TYPE)) # # #.(SB-SYS:INT-SAP #XA0544CD8) #) 14: ((SB-PCL::FAST-METHOD CFFI:TRANSLATE-FROM-FOREIGN (T OBJC-CFFI::OBJC-PROTOCOL-LIST-TYPE)) # # #.(SB-SYS:INT-SAP #X001047A0) #) 15: ((SB-PCL::FAST-METHOD CFFI:TRANSLATE-FROM-FOREIGN (T OBJC-CFFI::OBJC-CLASS-TYPE)) # # #.(SB-SYS:INT-SAP #XA090D100) #) 16: (OBJC-GET-CLASS "Protocol") 17: ((LAMBDA (SB-PCL::|.P0.| SB-PCL::|.P1.|)) # #) 18: ((SB-PCL::FAST-METHOD CFFI:TRANSLATE-FROM-FOREIGN (T OBJC-CFFI::OBJC-PROTOCOL-TYPE)) # # #.(SB-SYS:INT-SAP #XA0544CD8) #) 19: ((SB-PCL::FAST-METHOD CFFI:TRANSLATE-FROM-FOREIGN (T OBJC-CFFI::OBJC-PROTOCOL-LIST-TYPE)) # # #.(SB-SYS:INT-SAP #X001047A0) #) 0] > I am sorry but i don't have Leopard yet :-( > > Anyway, can you send to the mailing list the full backtrace of the > error and the file > /Users/huangjianshi/.sbcl/site/cl-objc/src/frameworks/Foundation- > CLOS.lisp? > > Please include also the version of cffi you are using. > > Other way to solve the error is to delete the Foundation-CLOS.lisp > file and recompile cl-objc. The file (it contains the clos bindings > for the Foundation framework) should be recreated and maybe the new > file (made using information got from the objc runtime) works for > Leopard too. > > P.S. Actually i am merging cl-objc with the work coming from other > incomplete objc bridge, so maybe in 1/2 weeks the new code can > incidentally work also on Leopard, so stay tuned! > > I'll wait for the next release. :) Cheers, Jianshi