From: SourceForge.net <no...@so...> - 2004-01-31 01:15:42
|
Bugs item #886628, was opened at 2004-01-28 19:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100003&aid=886628&group_id=3 Category: mesa-core Group: Fatal Error Status: Open Resolution: None Priority: 5 Submitted By: bill (slamhead) Assigned to: Nobody/Anonymous (nobody) Summary: Mesa-6.0 fails on Tru64 Initial Comment: using Tue64, I had the following three problems: 1) missing CXX definition in the Make-config for osf1 (fails to build GLU) 2) _ASMAPI in improperly defined in glheader.h change line 231 #if !defined( __GNUC__ ) && !defined( VMS ) && !defined( __INTEL_COMPILER ) to #if !defined( __GNUC__ ) && !defined( VMS ) && !defined( __INTEL_COMPILER ) && !defined( __osf__ ) 3) 99% of the demos fail in the same function here is a sample: # dbx -I../../src/mesa/tnl arbfplight core dbx version 3.11.10 Type 'help' for help. Core file created by program "arbfplight" signal Segmentation fault at [_tnl_wrap_buffers:55 +0x14,0x3ffb95f9900] GLuint last_prim = tnl->vtx.prim[tnl->vtx.prim_count-1].mode; (dbx) where > 0 _tnl_wrap_buffers(ctx = 0x14000e280) ["t_vtx_api.c":55, 0x3ffb95f9900] 1 _tnl_wrap_upgrade_vertex(ctx = 0x14000e280, attr = 18, newsz = 4) ["t_vtx_api.c":192, 0x3ffb95f9e1c] 2 _tnl_fixup_vertex(ctx = 0x14000e280, attr = 18, sz = 4) ["t_vtx_api.c":285, 0x3ffb95fa194] 3 _tnl_Materialfv(face = 1032, pname = 4609, params = 0x140000268) ["t_vtx_api.c":816, 0x3ffb95fe3bc] 4 neutral_Materialfv(face = 1032, pname = 4609, v = 0x140000268) ["vtxfmt_tmp.h":138, 0x3ffb953d5d0] 5 glMaterialfv(face = 1032, pname = 4609, params = 0x140000268) ["../glapi/glapitemp.h":903,0x3ffb9488cec] 6 Init() ["arbfplight.c":337, 0x120002ed4] 7 main(argc = 1, argv = 0x11ffff328) ["arbfplight.c":359, 0x120003074] (dbx) p tnl->vtx.prim_count 0 (dbx) quit # It seems that sometimes tnl->vtx.prim_count is set to 0 ; makeing rhe pointer invalid (-1) and blowing up I added a check in _tnl_wrap_buffers: static void _tnl_wrap_buffers( GLcontext *ctx ) { TNLcontext *tnl = TNL_CONTEXT(ctx); GLuint last_prim, last_count; GLint j = tnl->vtx.prim_count - 1; if (j < 0) j = 0; last_prim = tnl->vtx.prim[j].mode; last_count = tnl->vtx.prim[j].count; this prevents the demos from crashing. I can't seem to find where prim_count is getting set to 0. 99% of them run ok except for demos/reflect redbook/fogindex where the output is not correct. redbook/varray is thw only one that still crahses: # dbx -I../../src/mesa/tnl varray core dbx version 3.11.10 Type 'help' for help. Core file created by program "varray" signal Segmentation fault at [attrib_3_3:427 +0x1dc,0x3ffb961e8fc] ATTRS( 3 ) (dbx) where > 0 attrib_3_3(v = 0x400000e0) ["t_vtx_api.c":427, 0x3ffb961e8fc] 1 do_choose(attr = 3, sz = 3, fallback_attr_func = 0x3ffb961e8dc, choose1 = 0 x3ffb961e848, choose2 = 0x3ffb961e7f8, choose3 = 0x3ffb961e7a8, choose4 = 0x3ffb 961e758, v = 0x400000e0) ["t_vtx_api.c":339, 0x3ffb961dd5c] 2 choose_3_3(v = 0x400000e0) ["t_vtx_api.c":427, 0x3ffb961e7e8] 3 _tnl_Color3fv(v = 0x400000e0) ["t_vtx_api.c":612, 0x3ffb9620e1c] 4 neutral_Color3fv(v = 0x400000e0) ["vtxfmt_tmp.h":48, 0x3ffb95498b0] 5 glColor3fv(v = 0x400000e0) ["../glapi/glapitemp.h":123, 0x3ffb9488e74] 6 _ae_loopback_array_elt(elt = 0) ["api_arrayelt.c":363, 0x3ffb945bf24] 7 neutral_ArrayElement(i = 0) ["vtxfmt_tmp.h":36, 0x3ffb9549680] 8 glArrayElement(i = 0) ["../glapi/glapitemp.h":1583, 0x3ffb948de54] 9 fallback_drawarrays(ctx = 0x14000ca80, mode = 4, start = 0, count = 6) ["t_array_api.c":57, 0x3ffb95ec5d4] 10 _tnl_DrawArrays(mode = 4, start = 0, count = 6) ["t_array_api.c":153, 0x3ffb95ec9e4] 11 neutral_DrawArrays(mode = 4, start = 0, count = 6) ["vtxfmt_tmp.h":332, 0x3ffb954cbf8] 12 glDrawArrays(mode = 4, first = 0, count = 6) ["../glapi/glapitemp.h":1598, 0x3ffb948df30] 13 display() ["varray.c":104, 0x120002390] 14 processWindowWorkList(window = 0x140008880) ["glut_event.c":1297, 0x3ffbfba62ac] 15 __glutProcessWindowWorkLists() ["glut_event.c":1344, 0x3ffbfba63a0] 16 glutMainLoop() ["glut_event.c":1365,0x3ffbfba6434] 17 main(argc = 1, argv = 0x11ffff328) ["varray.c":184, 0x120002784] (dbx) q ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100003&aid=886628&group_id=3 |