Thank you for your replies!<br><br><div class="gmail_quote">在 2011年7月12日 下午10:47,Brian Paul <span dir="ltr"><<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>></span>写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On 07/12/2011 08:40 AM, Zhenbo Xu wrote:<br>
> I found the following bugs in mesa(v100) for SPEC CPU2000 v1.3<br>
><br>
> leak bug 1:<br>
> //in file textimage.c at line 345<br>
> gl_text_image* image_to_texture(...) {<br>
> ...<br>
> textImage = gl_alloc_texttrue_image(...);<br>
> if (!textImage)<br>
> return NULL;<br>
> ...<br>
> switch (image->Type) {<br>
> case ...<br>
> ...<br>
> default:<br>
> gl_problem(...)<br>
> return NULL; //here without releasing textImage<br>
> }<br>
> }<br>
><br>
> leak bug 2:<br>
> //in file osmesa.c at line 263<br>
> osmesa = (OSMesaContext) calloc( 1, sizeof(struct osmesa_context) );<br>
> 262 if (osmesa) {<br>
> osmesa->gl_visual = gl_create_visual( rgbmode, 264 swalpha,<br>
> DEPTH_BITS16,<br>
> STENCIL_BITS8,<br>
> ACCUM_BITS16,<br>
> index_bits,<br>
> rscale, gscale, bscale, ascale,<br>
> 8, 8, 8, 0 );<br>
> if (!osmesa->gl_visual) {<br>
><br>
> return NULL((void*)0);//without releasing osmesa<br>
> }<br>
><br>
> leak bug 3:<br>
> //in file drawpix.c at line 1010<br>
> void gl_DrawPixels(...) {<br>
> ...<br>
> if (ctx->CallDepth == 0) {<br>
> image = gl_unpack_pixels( ctx, width, height, format, type, pixels );<br>
> ...<br>
> }<br>
> ...<br>
> if (ctx->ExecuteFlag) { //Taking false branch<br>
> gl_save_DrawPixels( ctx, width, height, format, type, image );<br>
> }<br>
> if (ctx->ExecuteFlag) { //Taking false branch<br>
> ....<br>
> }//Without releasing image<br>
> }<br>
><br>
> Is it suitable to report these bugs here?<br>
<br>
<br>
</div></div>The Mesa code you're referring to is very old (circa 1999, I think).<br>
Taking a quick look, I don't think these leaks currently exist in Mesa<br>
today.<br>
<div class="im"><br>
> I also sent it to support@spec2000, but didn't have any response.<br>
> I'll be glad if you can check these bugs,<br>
> Or do I have another way to report them?<br>
> Thank you!<br>
<br>
</div>I doubt that the SPEC organization is concerned with bugs in spec2000<br>
anymore either since it was retired in 2007.<br>
<font color="#888888"><br>
-Brian<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Zhenbo Xu<br>