Ben Klein Ben Klein - 5 months ago 16
Java Question

Grails: invalid access of stack red zone

I am running a Grails 2.0.4 app on OS X (10.7.4). The app starts without any trouble, but when I try to access the home page in a browser, I get stack red zone errors:

Invalid access of stack red zone 0x1139b10c0 rip=0x112e50b70
Bus error: 10


and the server shuts down.

The app uses these plugins:


  • code-coverage (1.2.5)

  • codenarc (0.17)

  • hibernate (2.0.4)

  • jquery (1.7.1)

  • mail (1.0)

  • plugin-config (0.1.5)

  • quartz2 (0.2.2)

  • recaptcha (0.5.2)

  • ref-code (0.3.0)

  • resources (1.1.5)

  • springcache (1.3.1)

  • svn (1.0.1)

  • tomcat (2.0.4)

  • webxml (1.4.1), and

  • yui-minify-resources (0.1.5)



Does anyone happen to have any tips, Grailswise, on how to get around this?

Thanks!

Answer

There are a few hits out there for this error (here and here for example). Mostly they revolve around serializing JSON objects creating a stack overflow error that wasn't reported as a stack overflow. If you are doing anything like that it might be a good place to start. Check any string you are serializing to make sure they are valid JSON:

JSONArray.fromObject(jsonString)

Another suggested bumping up the Java stack size (-Xss1024k). If your JSON string looks ok, or you are not doing anything related to JSON, you might try this to see if it is just a space issue.