Hi John,

The assertion in question is guarded by a #ifdef FACTOR_DEBUG. Why is
this being set? Do you have 'DEBUG=1' in your environment?

Slava

On Fri, Sep 11, 2009 at 7:10 PM, John Benediktsson <[email protected]> wrote:
> Hi guys,
> I've been having trouble building Factor on my Snow Leopard since a
> few days.  Slava thought I might message the list and see if anyone
> has similar issues?
>
> Assertion failed: (gc_locals.back() == (cell)this), function ~gc_root,
> file vm/local_roots.hpp, line 22.
>
> $ gcc --version
> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
>
> $ build-support/factor.sh update
> [... snip ...]
> g++ -Wall -g -DFACTOR_DEBUG  -fPIC -DFACTOR_64 -m64 -dynamiclib
> -single_module -std=gnu99 -current_version 0.92 -compatibility_version
> 0.92 -fvisibility=hidden -lm -framework Cocoa -framework AppKit
> -L/usr/X11R6/lib -o libfactor.dylib vm/os-unix.o vm/os-macosx.o
> vm/mach_signal.o vm/cpu-x86.64.o vm/alien.o vm/arrays.o vm/bignum.o
> vm/booleans.o vm/byte_arrays.o vm/callstack.o vm/code_block.o
> vm/code_gc.o vm/code_heap.o vm/contexts.o vm/data_gc.o vm/data_heap.o
> vm/debug.o vm/dispatch.o vm/errors.o vm/factor.o vm/image.o
> vm/inline_cache.o vm/io.o vm/jit.o vm/local_roots.o vm/math.o
> vm/primitives.o vm/profiler.o vm/quotations.o vm/run.o vm/strings.o
> vm/tuples.o vm/utilities.o vm/words.o vm/write_barrier.o
> g++ -lm -framework Cocoa -framework AppKit -L/usr/X11R6/lib -L. -lfactor \
> -Wall -g -DFACTOR_DEBUG  -fPIC -DFACTOR_64 -m64 -o factor vm/main-unix.o
> mkdir -p Factor.app/Contents/MacOS
> mkdir -p Factor.app/Contents/Frameworks
> mv factor Factor.app/Contents/MacOS/factor
> ln -s Factor.app/Contents/MacOS/factor ./factor
> cp libfactor.dylib Factor.app/Contents/Frameworks/libfactor.dylib
> install_name_tool \
> -change libfactor.dylib \
> @executable_path/../Frameworks/libfactor.dylib \
> Factor.app/Contents/MacOS/factor
> Deleting old images...
> wget http://factorcode.org/images/latest/checksums.txt
> --2009-09-11 23:38:52--  http://factorcode.org/images/latest/checksums.txt
> Resolving factorcode.org... 69.93.127.154
> Connecting to factorcode.org|69.93.127.154|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 273 [text/plain]
> Saving to: `checksums.txt'
>
> 100%[=================================================================================================>]
> 273         --.-K/s   in 0s
>
> 2009-09-11 23:38:52 (605 KB/s) - `checksums.txt' saved [273/273]
>
> Factorcode md5: a75b2677412009d0214e6afd1b246f2d
> Disk md5: a75b2677412009d0214e6afd1b246f2d
> Your disk boot image matches the one on factorcode.org.
> Assertion failed: (gc_locals.back() == (cell)this), function ~gc_root,
> file vm/local_roots.hpp, line 22.
> build-support/factor.sh: line 493:  9572 Abort trap
> ./$FACTOR_BINARY -i=$BOOT_IMAGE
>
> The stacktrace:
>
> Assertion failed: (gc_locals.back() == (cell)this), function ~gc_root,
> file vm/local_roots.hpp, line 22.
>
> Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
> 0   libSystem.B.dylib                   0x00007fff88605ff6 __kill + 10
> 1   libSystem.B.dylib                   0x00007fff886a7072 abort + 83
> 2   libSystem.B.dylib                   0x00007fff886940b4 
> __pthread_markcancel + 0
> 3   libfactor.dylib                     0x0000000100008586
> factor::gc_root<factor::object>::~gc_root() + 76 (local_roots.hpp:22)
> 4   libfactor.dylib                     0x000000010000786f
> factor::allot_alien(unsigned long, unsigned long) + 249 (alien.cpp:45)
> 5   libfactor.dylib                     0x000000010001e7a7
> factor::load_image(factor::vm_parameters*) + 338 (image.cpp:331)
> 6   libfactor.dylib                     0x000000010001d402 init_factor +
> 283 (factor.cpp:126)
> 7   libfactor.dylib                     0x000000010001d84f
> start_standalone_factor + 49 (factor.cpp:186)
> 8   factor                              0x0000000100000e5a main + 27
> (main-unix.cpp:6)
> 9   factor                              0x0000000100000d20 start + 52
>
> Thanks,
> John.
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to