[Fluxus] Reproducable segmentation fault on 'poly-convert-to-indexed' and 'recalc-normals' combo.

Hugo van Galen hugovangalen at gmail.com
Wed Jun 30 10:35:14 PDT 2010


Hello again list :)

I was playing around with the a simple shape. Wondering whether the lighting
would be better, I threw in the 'poly-convert-to-indexed' call. I observed
that, if that's called, it crashes on the next call to 'recalc-normals'.

The same behaviour on the 0.17-rc5 version (PLT 4.2.5) as the GIT version I
downloaded earlier and modified myself to compile against Racket 5.0, which
leads me to believe that this must be a bug in the program...

Now, for some reason I am unable to run 'gdb' on the fluxus binary, it
starts coughing up segmentation faults all over the place like these right
after 'run':

Program received signal SIGSEGV, Segmentation fault.
scheme_gmp_tls_unload (s=0x7ffff1076360, data=0x0) at ./gmp/gmp.c:5816
5816    ./gmp/gmp.c: No such file or directory.
        in ./gmp/gmp.c

Anyone know what's up with that, or is there an obscure compile option to
make that work?

Anyway, here is the code that crashes the program:

(clear)
(colour (vector 1 1 1))

(define mypoly (build-polygons 8 'triangle-strip))
(with-primitive mypoly
    (pdata-set! "p"  0 (vector 1 0 0))
    (pdata-set! "p"  1 (vector 4 0 0))
    (pdata-set! "p"  2 (vector 1 2 0))
    (pdata-set! "p"  3 (vector 4 2 0))

    (pdata-set! "p"  4 (vector 0 2 0))
    (pdata-set! "p"  5 (vector 5 2 0))
    (pdata-set! "p"  6 (vector 0 6 0))
    (pdata-set! "p"  7 (vector 5 6 0))

    (poly-convert-to-indexed)
    (recalc-normals 1); crash here
)


Cheers,
Hugo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20100630/d8f08892/attachment-0001.htm>


More information about the Fluxus mailing list