Dave,

I forgot to mention that I first tried fluxus with PLT Scheme 4.2.5 (the PPC Mac binary release), and had the same problem. That's what made me try out Racket.

I'd love to hear from others using fluxus on the Mac.


Karl

On Jun 29, 2010, at 2:56 AM, Dave Griffiths wrote:

Hi Karl,

I haven't tried fluxus with racket yet, so it's possible something has
changed. I think other people have got it working - and also on the mac,
is anyone else getting this behaviour?

cheers,

dave

On Tue, 2010-06-29 at 02:42 -0500, Karl Svec wrote:
Greetings fluxus community,

I'm new to fluxus, so forgive me if this has already been discussed on
this list (I scanned the archives, but didn't find anything).

I built my own fluxus and Racket on my G4 iBook, and fluxus runs just
fine, so long as I don't have any syntax errors. Any invalid syntax
will cause fluxus to segfault. For example, trying to evaluate
'(bogus)' will trigger the segfault.

Here's the relevant gdb bits:

<snip>
Seg fault (internal error) at 0x6

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000006
0x0051f8a0 in scheme_top_level_do_worker (k=0x5087ac <eval_k>, eb=1,
new_thread=0, dyn_state=0x0) at fun.c:2227
2227        scheme_longjmp(*save, 1);
(gdb) bt
#0  0x0051f8a0 in scheme_top_level_do_worker (k=0x5087ac <eval_k>,
eb=1, new_thread=0, dyn_state=0x0) at fun.c:2227
#1  0x00508e90 in scheme_eval_multi (obj=<value temporarily
unavailable, due to optimizations>, env=0xed4268) at eval.c:9984
#2  0x00509190 in do_eval_string_all (port=0x3dbffe0, str=<value
temporarily unavailable, due to optimizations>, env=0xed4268, cont=1,
w_prompt=0) at eval.c:11067
#3  0x000090a4 in fluxus::Interpreter::Interpret (str=<value
temporarily unavailable, due to optimizations>, ret=0xbfffe2c8,
abort=false) at src/Interpreter.cpp:247
#4  0x0000b1b0 in fluxus::Repl::TryEval (this=0xa3ec90) at src/
Repl.cpp:278
#5  0x0000b6c8 in fluxus::Repl::Handle (this=0xa3ec90, button=-1,
key=13, special=-1, state=-1, x=480, y=436, mod=0) at src/Repl.cpp: 170
#6  0x000102ec in fluxus::FluxusMain::Handle (this=0x0, key=168 '?',
button=-1, special=2, state=-1, x=480, y=436, mod=13) at src/
FluxusMain.cpp:265
#7  0x00013534 in KeyboardCallback (key=13 '\r', x=832528, y=436) at
src/main.cpp:82
#8  0x3e006314 in -[GLUTView keyDown:] ()
#9  0x91213e40 in -[NSWindow sendEvent:] ()
#10 0x3e002540 in -[GLUTWindow sendEvent:] ()
#11 0x911e6680 in -[NSApplication sendEvent:] ()
#12 0x3e00f970 in -[GLUTApplication
_runMainLoopUntilDate:autoreleasePool:] ()
#13 0x3e00faa0 in -[GLUTApplication run] ()
#14 0x3e0227e4 in glutMainLoop ()
#15 0x00015810 in run (data=<value temporarily unavailable, due to
optimizations>) at src/main.cpp:416
#16 0x004c4ea8 in scheme_main_stack_setup (no_auto_statics=1,
_main=<value temporarily unavailable, due to optimizations>,
data=0xbffff798) at salloc.c:195
#17 0x00013204 in main (argc=<value temporarily unavailable, due to
optimizations>, argv=<value temporarily unavailable, due to
optimizations>) at src/main.cpp:426
</snip>

Any ideas as to what might be going on here? I believe my Racket
installation is working, since typing '(bogus)' into the DrRacket IDE
spits out an 'undefined reference' error message, which is what I
would have expected fluxus to do.

Are there any changes in the fluxus git repo that may address my
problem?

I appreciate the help.

Thanks,

Karl



Reply via email to