Core was generated by `./galnpot'. Program terminated with signal 11, Segmentation fault. #0 0x00007fd15abc482c in src_register (t=0x7fff19762260, file=PROGRAM_INPUT, index=1) at state_tracker/st_mesa_to_tgsi.c:200 200 return t->inputs[t->inputMapping[index]]; (gdb) print t->inputMapping[index] $1 = 4294967295 (gdb) bt #0 0x00007fd15abc482c in src_register (t=0x7fff19762260, file=PROGRAM_INPUT, index=1) at state_tracker/st_mesa_to_tgsi.c:200 #1 0x00007fd15abc4d96 in translate_src (t=0x7fff19762260, SrcReg=0x18cf04c) at state_tracker/st_mesa_to_tgsi.c:270 #2 0x00007fd15abc5060 in compile_instruction (t=0x7fff19762260, inst=0x18cf040) at state_tracker/st_mesa_to_tgsi.c:600 #3 0x00007fd15abc6ba2 in st_translate_mesa_program (ctx=, procType=, ureg=0x18db150, program=0x18d6e70, numInputs=, inputMapping=, inputSemanticName=0x7fff197633d0 "\005", inputSemanticIndex=0x7fff197633c0 "", interpMode=0x7fff19763340, numOutputs=1, outputMapping=0x7fff19763380, outputSemanticName=0x7fff197633b0 "\001", outputSemanticIndex=0x7fff197633a0 "", passthrough_edgeflags=0 '\000') at state_tracker/st_mesa_to_tgsi.c:1033 #4 0x00007fd15abc852b in st_translate_fragment_program (st=0x18968d0, stfp=0x18d6e70) at state_tracker/st_program.c:428 #5 0x00007fd15abbbddd in combined_drawpix_fragment_program (ctx=) at state_tracker/st_cb_drawpixels.c:143 #6 0x00007fd15abbd3ae in st_DrawPixels (ctx=0x184de10, x=, y=, width=, height=, format=6407, type=5121, unpack=0x185db18, pixels=0x6018c0) at state_tracker/st_cb_drawpixels.c:827 #7 0x00007fd15ab7160d in _mesa_DrawPixels (width=256, height=256, format=6407, type=5121, pixels=0x6018c0) at main/drawpix.c:119 #8 0x0000000000401211 in render () at ./galnpot.c:79 #9 0x00007fd15e4b1c7b in processWindowWorkList (window=0x1818270) at glut_event.c:1307 #10 0x00007fd15e4b2b44 in __glutProcessWindowWorkLists () at glut_event.c:1358 #11 glutMainLoop () at glut_event.c:1379 #12 0x00000000004012dd in main (argc=1, argv=0x7fff197638d8) at ./galnpot.c:116 (gdb) print program->NumInstructions (from st_translate_mesa_program) $8 = 5 (gdb) print program->Instructions[0] $9 = {Opcode = OPCODE_TEX, SrcReg = {{File = 1, Index = 4, Swizzle = 1672, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 0, Swizzle = 1672, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 0, Swizzle = 1672, RelAddr = 0, Abs = 0, Negate = 0}}, DstReg = {File = 0, Index = 1, WriteMask = 15, RelAddr = 0, CondMask = 8, CondSwizzle = 1672, CondSrc = 0}, CondUpdate = 0, CondDst = 0, SaturateMode = 0, Precision = 1, TexSrcUnit = 0, TexSrcTarget = 5, TexShadow = 0, BranchTarget = 0, Comment = 0x0, Data = 0x0, Aux = 0} (gdb) print program->Instructions[1] $10 = {Opcode = OPCODE_TXP, SrcReg = {{File = 1, Index = 4, Swizzle = 1672, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}}, DstReg = {File = 0, Index = 0, WriteMask = 15, RelAddr = 0, CondMask = 8, CondSwizzle = 1672, CondSrc = 0}, CondUpdate = 0, CondDst = 0, SaturateMode = 0, Precision = 1, TexSrcUnit = 0, TexSrcTarget = 5, TexShadow = 0, BranchTarget = 1, Comment = 0x0, Data = 0x0, Aux = 0} (gdb) print program->Instructions[2] <---- compile_instruction crashes here $11 = {Opcode = OPCODE_MUL, SrcReg = {{File = 0, Index = 0, Swizzle = 1672, RelAddr = 0, Abs = 0, Negate = 0}, {File = 1, Index = 1, Swizzle = 1672, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}}, DstReg = {File = 2, Index = 1, WriteMask = 7, RelAddr = 0, CondMask = 8, CondSwizzle = 1672, CondSrc = 0}, CondUpdate = 0, CondDst = 0, SaturateMode = 0, Precision = 1, TexSrcUnit = 0, TexSrcTarget = 0, TexShadow = 0, BranchTarget = 1, Comment = 0x0, Data = 0x0, Aux = 0} (gdb) print program->Instructions[3] $12 = {Opcode = OPCODE_MOV, SrcReg = {{File = 0, Index = 1, Swizzle = 1672, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}}, DstReg = {File = 2, Index = 1, WriteMask = 8, RelAddr = 0, CondMask = 8, CondSwizzle = 1672, CondSrc = 0}, CondUpdate = 0, CondDst = 0, SaturateMode = 0, Precision = 1, TexSrcUnit = 0, TexSrcTarget = 0, TexShadow = 0, BranchTarget = 1, Comment = 0x0, Data = 0x0, Aux = 0} (gdb) print program->Instructions[4] $13 = {Opcode = OPCODE_END, SrcReg = {{File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}, {File = 13, Index = 255, Swizzle = 0, RelAddr = 0, Abs = 0, Negate = 0}}, DstReg = {File = 13, Index = 255, WriteMask = 15, RelAddr = 0, CondMask = 8, CondSwizzle = 1672, CondSrc = 0}, CondUpdate = 0, CondDst = 0, SaturateMode = 0, Precision = 1, TexSrcUnit = 0, TexSrcTarget = 0, TexShadow = 0, BranchTarget = 1, Comment = 0x0, Data = 0x0, Aux = 0}