chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] eval of (0) crashes app


From: Heinrich Taube
Subject: Re: [Chicken-users] eval of (0) crashes app
Date: Fri, 28 Mar 2008 06:33:54 -0500

Does the crash happen on every error (for example an unbounded
variable reference, like evaluating the string "xyz") or only when
calling invalid values in procedure position?

no, the vast majority of errors like unbound variables or too few too many args are caught. I havent touched the Scheme.cpp code for quite some time and it is otherwise working quite well. its bound to be something in my code but am not sure where to look at yet

You mean "(car {1 2 3})", literally? Or "(car 1) ..."?

literally with { }. this also crashes the app.

Can you run it under gdb and get the location and backtrace where it crashes?

when i trigger the error under gdb by evaling (0) this is what gets printed (sorry I dont know anything more about gdb yet!):

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000005
[Switching to process 5264 thread 0x9903]
0x001946be in C_eval_toplevel ()
(gdb)

------------------------------------------------------
here is the whole trace

gdb build/Release/Grace.app/Contents/MacOS/grace
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .............. done

warning: UUID mismatch detected between:
        /Lisp/grace/build/macosx/build/Release/Grace.app/Contents/MacOS/grace
/Lisp/grace/build/macosx/build/Release/Grace.app.dSYM/Contents/ Resources/DWARF/grace...

(gdb) run
Starting program: /Lisp/grace/build/macosx/build/Release/Grace.app/ Contents/MacOS/grace Reading symbols for shared libraries ++++++++++++ + ......................................................................... done

-----------------------------------------------------------
Grace
Executable file: /Lisp/grace/build/macosx/build/Release/Grace.app/ Contents/MacOS/grace Resource directory: /Lisp/grace/build/macosx/build/Release/Grace.app/ Contents/Resources
Application file: /Lisp/grace/build/macosx/build/Release/Grace.app
Preferences file: /Users/hkt/Library/Preferences/Grace.prefs
Home directory: /Users/hkt
Current working directory: /Users/hkt
User documents directory: /Users/hkt/Documents
User application data directory: /Users/hkt/Library
Common application data directory: /Library
Temp directory: /Users/hkt/Library/Caches/grace
Preferences:
 Prefs file loaded: yes
 NativeTitleBars: yes
 ConsoleTheme: Clarity and Beauty
 ConsoleFontSize: 24
 EditorFontSize: 17
 HeapSize: 1000000
 StackSize: 64000
-----------------------------------------------------------
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Chicken init: heap=1000000 stack=64000
scheduling queue is empty
CoreMidi - opening out: Bus 1
Reading symbols for shared libraries .... done

calling eval node 1, input '(0)'

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000005
[Switching to process 5264 thread 0x9903]
0x001946be in C_eval_toplevel ()
(gdb)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]