[Mesa-dev] [Bug 29608] New: Regression crash when a function return type is invalid (following GLSL2 merge)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Aug 17 03:19:52 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=29608
Summary: Regression crash when a function return type is
invalid (following GLSL2 merge)
Product: Mesa
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Mesa core
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: cedricv at neonux.com
When a function return type is unknown/invalid the GLSL compiler crashes
instead of issuing a proper "invalid type" error.
This only occurs when the invalid type is return type of a function, not when a
function parameter is an invalid type.
Testcase :
--
foo bar()
{
}
void main()
{
gl_Position = vec4(0.0);
}
--
Stacktrace :
#0 0xf6846a45 in ast_function_definition::hir(exec_list*,
_mesa_glsl_parse_state*) () from /usr/local/lib/dri/i965_dri.so
#1 0xf6847340 in _mesa_ast_to_hir(exec_list*, _mesa_glsl_parse_state*) () from
/usr/local/lib/dri/i965_dri.so
#2 0xf683c9fb in _mesa_glsl_compile_shader () from
/usr/local/lib/dri/i965_dri.so
#3 0xf67467c6 in _mesa_CompileShaderARB () from /usr/local/lib/dri/i965_dri.so
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list