[Fluxus] Fluxus crash in base.c

mikhail lozanov mlozanov at gmail.com
Sat Dec 3 02:32:20 PST 2011


Hello list,

I'm getting very strange crash when fluxus is starting. After some debugging it appears that scheme is crashing when trying to interpret data array defined in src/base.c

I'm running Lion 10.7.2 and fluxus is compiled in 32 bit. Racket is 5.2.0.1

Crash is because of access of null pointer in scheme environment, env->modules is null. Stack frame below is somewhat misleading but after debugging with Xcode attached to fluxus executable I localised that it's in scheme_apply(eload, 3, a);

Do somebody have a clue about this?

Thank you very much!

----- stack frame from gdb ---

Reason: KERN_PROTECTION_FAILURE at address: 0x00000004
0x0074bf6b in scheme_prepare_compile_env (env=0x2805760) at module.c:3993
3993	    if (!lock)
(gdb) bt
#0  0x0074bf6b in scheme_prepare_compile_env (env=0x2805760) at module.c:3993
#1  0x00680745 in compile_k () at eval.c:3773
#2  0x006b1d3a in scheme_top_level_do_worker (dyn_state=0x0, k=0x680360 <compile_k>, eb=1, new_thread=0) at fun.c:1146
#3  0x006b2728 in scheme_top_level_do (k=0x680360 <compile_k>, eb=1) at fun.c:1059
#4  0x0068a7f6 in scheme_eval_multi (env=0x2805760, obj=0x2833e10) at eval.c:3933
#5  0x0068ac73 in do_eval_string_all (port=0x2833ac8, env=0x2805760, str=0xbfffed30 "????\005", cont=1, w_prompt=0) at eval.c:5010
#6  0x0068af35 in scheme_eval_string_all (str=0x21f9c0c "(define plt-collects-location \"/Users/mlozanov/Documents/racket/collects/\") (define fluxus-collects-location \"/opt/local/lib\") (define fluxus-version \"018\") (define fluxus-data-location \"/opt/local/sh"..., env=0x2805760, cont=1) at eval.c:5042
#7  0x000089b1 in fluxus::Interpreter::Interpret (str=@0xbffff368, ret=0x0, abort=true) at Interpreter.cpp:243
#8  0x0000909d in fluxus::Interpreter::Initialise () at Interpreter.cpp:162
#9  0x00010271 in run (data=0xbffff9c0) at main.cpp:270
#10 0x0063da8b in scheme_main_stack_setup (no_auto_statics=1, _main=0x10230 <run(void*)>, data=0xbffff9c0) at salloc.c:194
#11 0x00010225 in main (argc=1, argv=0xbffff9e8) at main.cpp:437
Current language:  auto; currently c

m.







More information about the Fluxus mailing list