[gambit-list] Segmentation fault from simple (infinite) loop

Bradley Lucier lucier at math.purdue.edu
Sun Feb 10 17:05:55 EST 2008


On Feb 10, 2008, at 4:53 PM, Christian Jaeger wrote:

> Note that I also never got a segfault with any variant when being  
> compiled.

I got a segfault on 32-bit PPC MacOS with

./configure 'CC=gcc -mcpu=7450 -g" --enaable-single-host

This is using gcc-4.2.1:

> [brad:~/programs/gambc-v4_2_1] lucier% cat loopy.scm
> (define (loopy x) (print x) (print " ") (loopy (+ 1 x)))
> [brad:~/programs/gambc-v4_2_1] lucier% gsc loopy
> gcc: unrecognized option '-no-cpp-precomp'
> [brad:~/programs/gambc-v4_2_1] lucier% gsi
> Gambit v4.1.2
>
> > (load "loopy")
> "/Users/lucier/programs/gambc-v4_2_1/loopy.o2"
> > (loopy 1)
> <lots of stuff removed>
>  2407 2408 2409 2410 2411 2412 2413 2414 2415Segmentation fault


Brad



More information about the Gambit-list mailing list