#How to debug driver oddity on intel igpu.

2 messages · Page 1 of 1 (latest)

bleak gorge
#

My app works fine on my desktop PC, which runs a dedicated amd card on linux, but it segfaults somewhere inside the driver on my laptop which has an intel igpu and runs on windows. Happens on the first instance of glLinkProgram

Segmentation fault at address 0x0
???:?:?: 0x7ffa2dd58956 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd57074 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd5edfc in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd57004 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd5edfc in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd62ba9 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd57004 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd5edfc in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd57004 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd57880 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dd4acb7 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dcdf54a in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dcc534e in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dc7f96a in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2dc7d46f in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2daf1aca in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2daf08c7 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2daedfe6 in ??? (ig9icd64.dll)
???:?:?: 0x7ffa2daee346 in ??? (ig9icd64.dll)
C:\Users\XXX\Projects\Zig\zig-testing\.zig-cache\o\7a11585a65dadf5ba490e6a31b7a78d3\gl.zig:2503:43: 0x7ff69c0270aa in LinkProgram (polycosm_zcu.obj)
    return ProcTable.current.?.LinkProgram(program);
                                          ^
C:\Users\XXX\Projects\Zig\zig-testing\src\ShaderProgram.zig:41:19: 0x7ff69c026406 in init2 (polycosm_zcu.obj)
    gl.LinkProgram(handle);
pulsar trench
#

This is probably one of two things: either a real Intel Windows driver bug, or app-side UB that AMD/Linux tolerates and Intel/Windows does not. The fact that the crash is in ig9icd64.dll during glLinkProgram is consistent with reports others have seen on Intel’s OpenGL driver, and Intel’s first recommendation in similar cases is to update to the latest graphics driver.