ValhallaTeam / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Crash on WebGL conformance test #378

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take WebKit BB port
2. load 
https://www.khronos.org/registry/webgl/sdk/tests/conformance/ogles/GL/build/buil
d_129_to_136.html

What is the expected output? What do you see instead?

Expected is test PASSED. Instead it crashes with Bus Error.

What version of the product are you using? On what operating system?

Using WebKit BB port on QNX.

Please provide any additional information below.

I traced it down to mem_Alloc:

-    if (size <= 0) size = pool->alignmask;
+    if (size <= 0) size = pool->alignmask + 1;

This fixes our crash. The problem is that when the condition happens, 
pool-alignmask is the align value given in mem_CreatePool minus 1.

Original issue reported on code.google.com by rwlb...@gmail.com on 12 Oct 2012 at 7:18

GoogleCodeExporter commented 9 years ago
It appears you are using the old preprocessor.  We've recently added a new 
preprocessor which is significantly better than the old one.  Please make sure 
you are using a version of ANGLE r1204 or later and enable the 
ANGLE_USE_NEW_PREPROCESSOR define in your build system (you'll also need to 
pull in the new preprocessor project as well).

Original comment by dan...@transgaming.com on 12 Oct 2012 at 9:12

GoogleCodeExporter commented 9 years ago
The old preprocessor has now been removed. This should no longer be an issue.

Original comment by dan...@transgaming.com on 26 Oct 2012 at 8:12