FS#16761 - [sbcl] ships with debugger disabled by default
Attached to Project:
Arch Linux
Opened by Einar Lielmanis (spic) - Wednesday, 21 October 2009, 01:01 GMT
Last edited by Jürgen Hötzel (juergen) - Wednesday, 13 January 2010, 17:53 GMT
Opened by Einar Lielmanis (spic) - Wednesday, 21 October 2009, 01:01 GMT
Last edited by Jürgen Hötzel (juergen) - Wednesday, 13 January 2010, 17:53 GMT
|
Details
Description:
sbcl (1.0.31-2) ships with the debugger disabled by default, which is wrong (and annoying), as any error or typo in the sbcl shell will immediately terminate it. Steps to reproduce: % sbcl This is SBCL 1.0.31, an implementation of ANSI Common Lisp. ... * abcd unhandled UNBOUND-VARIABLE in thread #<SB-THREAD:THREAD "initial thread" RUNNING {1002A26011}>: ... unhandled condition in --disable-debugger mode, quitting % Apparently it happens because --script is used in PKGBUILD to dump a core with some modified paths, and --script disables debugger, so dumped core has no debugger either. Temporary workaround: To reenable debugger in the shell, run (sb-ext:enable-debugger) |
This task depends upon
+++ fix-source-path.lisp (working copy)
This patch fixes it and also gets rid of the IGNORE-ERRORS:
@@ -15,8 +15,8 @@
`(("SYS:SRC;**;*.*.*" ,src)
("SYS:CONTRIB;**;*.*.*" ,contrib))))
-(ignore-errors
- (sb-ext:gc :full t)
- (sb-ext:save-lisp-and-die "sbcl-new.core"))
+(sb-ext:gc :full t)
+(sb-ext:enable-debugger)
+(sb-ext:save-lisp-and-die "sbcl-new.core")
Sadly compilation of current trunk (1.32) fails (also prev. 1.31):
; SYS:SRC;CODE;RUN-PROGRAM.FASL.NEWEST written
; compilation finished in 0:00:00.793
debugger invoked on a UNDEFINED-ALIEN-ERROR in thread #<THREAD "initial thread" RUNNING {10029A3071}>:
Undefined alien: "waitpid"
any contribution appreciated.
Your problem is familiar to me, though:
See http://thread.gmane.org/gmane.lisp.steel-bank.general/2598/focus=2602 for a possible solution.
If that doesn't help you should probably try 1.0.33 and ask on sbcl-help.
I just release the i686 update and will keep this bug open until x86_64 release is available from upstream:
http://www.sbcl.org/platform-table.html:
Upstream bug filed as well: https://bugs.launchpad.net/sbcl/+bug/492783
Can we just unset LDFLAGS before building until there's a proper fix?
debugger invoked on a UNDEFINED-ALIEN-ERROR in thread #<THREAD
"initial thread" RUNNING
{1002A80071}>:
Undefined alien: "waitpid"
/etc/makepkg.conf provides default LDFLAGS.
sbcl uses LINKFLAGS and OS_LIBS (libdl) to build LDFLAGS in file Config.x86_64-linux. But we use "make -e" to build sbcl, so the required libdl wasn't used when building os-provides-dlopen-test
I just release the x86_64 build. Please confirm.