More info
vanag@vanag-PC /c/apps/neko-2.0.0
$ gdb bin/neko.exe
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\apps\neko-2.0.0\bin\neko.exe...(no debugging
symbols
fou
nd)...done.
(gdb) run
Starting program: C:\apps\neko-2.0.0/bin/neko.exe
[New Thread 3272.0x934]
[New Thread 3272.0x2ac]
Program received signal SIGSEGV, Segmentation fault.
0x709c3bcb in GC_is_black_listed (h=h@entry=0x522000, len=len@entry=4096)
at blacklst.c:235
235 && (get_pht_entry_from_index(GC_old_normal_bl, index)
(gdb) bt
#0 0x709c3bcb in GC_is_black_listed (h=h@entry=0x522000, len=len@entry
=4096)
at blacklst.c:235
#1 0x709c1c8c in GC_allochblk_nth (sz=sz@entry=24, kind=kind@entry=1,
flags=flags@entry=0, n=n@entry=14, may_split=may_split@entry=1)
at allchblk.c:685
#2 0x709c200d in GC_allochblk (sz=sz@entry=24, kind=kind@entry=1,
flags=flags@entry=0) at allchblk.c:624
#3 0x709cd3f0 in GC_new_hblk (gran=gran@entry=3, kind=kind@entry=1)
at new_hblk.c:181
#4 0x709c37a7 in GC_allocobj (gran=gran@entry=3, kind=kind@entry=1)
at alloc.c:1336
#5 0x709c7d42 in GC_generic_malloc_inner (lb=lb@entry=16, k=k@entry=1)
at malloc.c:133
#6 0x709c7e4a in GC_generic_malloc (lb=lb@entry=16, k=k@entry=1)
at malloc.c:182
#7 0x709c816c in GC_core_malloc (lb=16) at malloc.c:287
#8 0x6dbc1da1 in neko_alloc_object (cpy=cpy@entry=0x0) at vm/alloc.c:320
#9 0x6dbc4553 in neko_init_builtins () at vm/builtins.c:1229
#10 0x6dbc203e in neko_global_init () at vm/alloc.c:386
#11 0x00403349 in ?? ()
#12 0x004013de in ?? ()
#13 0x75a3ed5c in KERNEL32!BaseThreadInitThunk ()
from C:\Windows\system32\kernel32.dll
#14 0x776e37eb in ntdll!RtlInitializeExceptionChain ()
from C:\Windows\system32\ntdll.dll
#15 0x776e37be in ntdll!RtlInitializeExceptionChain ()
from C:\Windows\system32\ntdll.dll
#16 0x00000000 in ?? ()
(gdb)
On Thu, Feb 6, 2014 at 5:19 PM, Vasileios Anagnostopoulos <
[email protected]> wrote:
> I forgot to mention gcc
>
>
> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.8.2/threads-win32/sjlj/i686-4.8.2-release-win32-sjlj-rt_v3-rev2.7z/download
>
>
> On Thu, Feb 6, 2014 at 5:17 PM, Vasileios Anagnostopoulos <
> [email protected]> wrote:
>
>>
>>
>>
>> Problem description
>>
>> I try to build neko with the mingw (make os=mingw) in this link
>>
>> I am on Windows 7 x68 with MSYS2
>>
>> I use the following adjustments in Makefile
>>
>> ## MINGW SPECIFIC
>>
>> ifeq (${os}, mingw)
>> CFLAGS = -g -Wall -O3 -momit-leaf-frame-pointer -D_WIN32 -DNEKO_SOURCES
>> -I vm -I /c/langs/build-sdk/prerequisites-i686/include -I libs/common
>> EXTFLAGS =
>> MAKESO = $(CC) -O -shared
>> LIBNEKO_NAME = neko.dll
>> LIBNEKO_LIBS = -Lbin -L/c/langs/build-sdk/prerequisites-i686/lib -lgc
>> STD_NDLL_FLAGS = ${NEKOVM_FLAGS} -lws2_32
>> endif
>>
>> In folder /c/langs/build-sdk/prerequisites-i686 I have a lot of packages
>> and gc 7.4.0 build all with this gcc (I used it for compatibility with
>> compiling haxe with wodi32 which succeeded)
>>
>> I had to comment out GC_use_DllMain(); in alloc.c
>>
>> The problem
>>
>> /bin/sh: line 1: 3848 Segmentation fault LD_LIBRARY_PATH=../bin:
>> NEKOPATH=../boot:../bin ../bin/neko nekoml -nostd neko/Main.nml
>> nekoml/Main.nml
>> Makefile:96: recipe for target 'compiler' failed
>> make: *** [compiler] Error 139
>>
>>
>> Any suggestions?
>>
>> Thanks in advance.
>>
>>
>>
>> --
>> Dr. Vasileios Anagnostopoulos (MSc,PhD)
>> Researcher/Developer
>> ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
>> T (+30) 2107723404 M (+30) 6936935388
>> E [email protected]<mailto:[email protected]> www.ntua.gr<
>> http://www.ntua.gr/>
>>
>
>
>
> --
> Dr. Vasileios Anagnostopoulos (MSc,PhD)
> Researcher/Developer
> ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
> T (+30) 2107723404 M (+30) 6936935388
> E [email protected]<mailto:[email protected]> www.ntua.gr<
> http://www.ntua.gr/>
>
--
Dr. Vasileios Anagnostopoulos (MSc,PhD)
Researcher/Developer
ICCS/NTUA 9 Heroon Polytechneiou Str., Zografou 15773 Athens,Greece
T (+30) 2107723404 M (+30) 6936935388
E [email protected]<mailto:[email protected]> www.ntua.gr<
http://www.ntua.gr/>
--
Neko : One VM to run them all
(http://nekovm.org)