https://bugs.freedesktop.org/show_bug.cgi?id=34495
--- Comment #24 from Micael Dias kam1kaz3@gmail.com 2011-07-01 04:06:25 PDT --- Yes, I am using r600g.
Maybe you can fix it in your code to prevent such large loops, but there seems to be a bug in the driver itself since it crashes the GPU instead of failing gracefully.