------- Comment #5 from kuchen_ at gmx dot de 2009-04-16 14:01 ------- Thanks for help!
(gdb) run Starting program: C:\osdev\kos/..\tools\gcc-4.3.3\i586-elf\bin\cc1.exe -Iinclude -Iinclude/arch/i386 -Ikernel/include -O3 -g -ffreestanding -Wall -o virt.o ker nel/mm/virt.c [New thread 1332.0xd08] bscanfwdIn file included from kernel/include/debug.h:4, from kernel/mm/virt.c:4: kernel/include/config.h:8:2: warning: #warning Use kos/config.h instead of confi g.h pm_is_blocked_for getaddr getflags map_working_table init_paging vm_map_page vm _unmap_page vm_map_range vm_unmap_range vm_find_addr vm_find_range vm_alloc_addr vm_free_addr vm_identity_map vm_alloc_page vm_alloc_range vm_free_page vm_free_ range get_ptab_entry vm_resolve_virt vm_is_userspace Analyzing compilation unit Performing interprocedural optimizations <visibility> <early_local_cleanups> Program received signal SIGSEGV, Segmentation fault. 0x7105b436 in strsep () from C:\msys\1.0\bin\msys-1.0.dll (gdb) bt #0 0x7105b436 in strsep () from C:\msys\1.0\bin\msys-1.0.dll #1 0x7102d259 in msys-1!calloc () from C:\msys\1.0\bin\msys-1.0.dll #2 0x7108c104 in msys-1!_ctype_ () from C:\msys\1.0\bin\msys-1.0.dll #3 0x7109874c in msys-1!__ctype_ptr () from C:\msys\1.0\bin\msys-1.0.dll #4 0x00000000 in ?? () (gdb) -O1 and -O2 result in the exact same error, only without any optimization the file gets compiled. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39780