borodust / cl-bodge

Feature-rich game framework for Common Lisp
http://borodust.org/projects/cl-bodge/
MIT License
174 stars 14 forks source link

Segfault on SBCL when running examples #88

Closed neil-lindquist closed 6 years ago

neil-lindquist commented 6 years ago

I tried running the demo on SBCL, but it crashed with a memory fault. I'm using Red Hat Enterprise Linux Workstation release 7.4 (Maipo). I also tried the example for trivial-gamekit, but it crashed with the same error.

This is SBCL 1.4.0-1.el7, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (ql-dist:install-dist "http://bodge.borodust.org/dist/org.borodust.bodge.txt" :replace t :prompt nil)
; Fetching #<URL "http://bodge.borodust.org/dist/org.borodust.bodge.txt">
; 0.31KB
==================================================
322 bytes in 0.01 seconds (39.31KB/sec)
Installing dist "org.borodust.bodge" version "20180707134226".
; Fetching #<URL "http://bodge.borodust.org/dist/org.borodust.bodge/20180707134226/releases.txt">
; 7.29KB
==================================================
7,467 bytes in 0.01 seconds (1215.33KB/sec)
; Fetching #<URL "http://bodge.borodust.org/dist/org.borodust.bodge/20180707134226/systems.txt">
; 5.58KB
==================================================
5,716 bytes in 0.00 seconds (1116.41KB/sec)
#<QL-DIST:DIST org.borodust.bodge 20180707134226>
* (ql:quickload :cl-bodge/demo)

I'm omitting the output of quickload, since it's alot of output as it downloads libraries

* (cl-bodge.demo:run)
CORRUPTION WARNING in SBCL pid 3302(tid 0x7fffbb357700):
Memory fault at 0x2a8 (pc=0x7fffeff1d9bd, sp=0x7fffbb356448)
The integrity of this image is possibly compromised.
Continuing with fingers crossed.
<ERROR> [11:12:06] cl-bodge.utils utils.lisp (invoke-bodgy h0) -
  Unhandled condition:
Unhandled memory fault at #x2A8.
   [Condition of type SB-SYS:MEMORY-FAULT-ERROR]

#<ENVIRONMENT {1002F70D43}>
   [Environment of thread #<THREAD "main-thread" RUNNING {1002C67513}>]

Available restarts:
 0: [ABORT] abort thread (#<THREAD "main-thread" RUNNING {1002C67513}>)

Backtrace:
 7: (SB-KERNEL::%SIGNAL Unhandled memory fault at #x2A8.)
 8: (ERROR MEMORY-FAULT-ERROR ADDRESS 680)
 9: (SB-SYS:MEMORY-FAULT-ERROR)
 10: ("foreign function: call_into_lisp")
 11: ("foreign function: post_signal_tramp")
 12: ("foreign function: glfwSetWindowCloseCallback")
 13: (CL-BODGE.HOST::INIT-CALLBACKS)
 14: (CL-BODGE.HOST::RUN-MAIN-LOOP #<HOST-SYSTEM {1008634B73}> #<SIMPLE-LATCH {1002C67413}>)
 15: ((LAMBDA NIL :IN CL-BODGE.ENGINE:INITIALIZE-SYSTEM))

debugger invoked on a SIMPLE-CONDITION in thread
#<THREAD "main-thread" RUNNING {1002AC7513}>:
  MEMORY-FAULT-ERROR: Unhandled memory fault at #x2A8.
borodust commented 6 years ago

Does your machine support X11/OpenGL 3.3? You probably can check with

glxinfo | grep "core profile version"
neil-lindquist commented 6 years ago

That's the problem. Thanks