On Wednesday 08 September 2004 06:42, Aaron Sherman wrote: > When I try to run one of the SDL examples (any of them), I get: > > SDL::fetch_layout warning: layout 'Pixels' not found! > Segmentation fault > > When I edit runtime/parrot/library/SDL.imc and add the call to > _set_Pixels_layout in at line 60, I remove that warning, but still get > the seg-fault: The "Pixels" layout is AFAIK not used yet, the examples should work nevertheless.
> Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -150897856 (LWP 15959)] > 0x08161133 in ins_writes2 (ins=0x8985c20, t=75) at imcc/instructions.c:138 > 138 if (ins->opnum == w_special[i + (strchr(types, t) - > types)]) (gdb) bt > #0 0x08161133 in ins_writes2 (ins=0x8985c20, t=75) at > imcc/instructions.c:138 #1 0x08162fd4 in analyse_life_block > (interpreter=0x879d008, bb=0x8aeff98, r=0x8983398) at imcc/cfg.c:583 > #2 0x08162e3f in analyse_life_symbol (interpreter=0x879d008, > unit=0x897ed48, r=0x8983398) at imcc/cfg.c:523 > #3 0x08162d86 in life_analysis (interpreter=0x879d008, unit=0x897ed48) > at imcc/cfg.c:499 > #4 0x08164137 in imc_reg_alloc (interpreter=0x879d008, unit=0x897ed48) > at imcc/reg_alloc.c:172 > #5 0x0815efdc in imc_compile_unit (interp=0x879d008, unit=0x897ed48) > at imcc/imc.c:111 > #6 0x0815ef33 in imc_compile_all_units (interp=0x879d008) at imcc/imc.c:68 > #7 0x0815edc6 in compile_file (interp=0x879d008, file=0x8b3ff90) > at imcc.l:920 > #8 0x0816cb8b in imcc_compile_file (interp=0x879d008, > s=0x897e4d0 "library/SDL/Surface.imc") at imcc/parser_util.c:574 > #9 0x081fb259 in pcf_p_It (interpreter=0x879d008, self=0x893b0c8) > at src/nci.c:1862 > #10 0x081d16a4 in Parrot_Compiler_invoke (interpreter=0x879d008, > pmc=0x893b0c8, code_ptr=0x8926e50) at classes/compiler.c:56 > #11 0x080a38f8 in Parrot_load_bytecode (interpreter=0x879d008, > filename=0x8976de0 "library/SDL/Surface.imc") at src/packfile.c:3103 > #12 0x080ede8c in Parrot_load_bytecode_sc (cur_opcode=0x8980b70, > Hope this helps! Can you please give more information about your system, parrot configuration etc? Everthing works fine here. jens