mikelevins / xmlisp

Automatically exported from code.google.com/p/xmlisp
0 stars 0 forks source link

Binaries created with (ccl::BUILD-APPLICAITON) crash when they are ran through gdb #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a .app file using the build-applicaiton command called myApp
2. Go into the dos emulator and fire up gdb with the newly created binary as 
the target 
(gdb *path to .app file*\myApp.app\Contents\Windows\myApp
3. gdb will load now type run

What is the expected output? What do you see instead?
I would expect the application to start and see the CCL windows listener pop 
up.  Instead the 
application crashes with a segmentation fault.  

Please use labels and text to provide additional information.

Original issue reported on code.google.com by pokermik...@gmail.com on 6 Apr 2010 at 9:06

GoogleCodeExporter commented 9 years ago
CCL uses segfaults for memory management.  You need to setup gdb to allow CCL 
to try to handle those first.  
The usual way to do this is to

  source <PATH-TO-CCL>/lisp-kernel/win32/.gdbinit

before issuing the run command.

See http://trac.clozure.com/ccl/wiki/CclUnderGdb for additional details.

Original comment by palter@clozure.com on 6 Apr 2010 at 9:35