I am running django 1.9.4 on gunicorn19.4.5 with the gevent worker (gevent==1.0.2, greenlet==0.4.9). My app is deployed on heroku. For some requests, I have noticed this error: "*** Error in `/app/.heroku/python/bin/python': double free or corruption (out): 0x000000000403bc90 ***". I can't reproduce it deterministically, but it happen in about 5% of all requests. I was able to get the stack trace for it and everytime it's the same:
-- May 19 13:50:35 <app-name> app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/gis/geos/geometry.py", line 125, in __del__.
May 19 13:50:35 <app-name> app/web.2: capi.destroy_geom(self._ptr).
May 19 13:50:35 <app-name> app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/gis/geos/libgeos.py", line 157, in __call__.
May 19 13:50:35 <app-name> app/web.2: return self.func(*args, **kwargs).
May 19 13:50:35 <app-name> app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/gis/geos/prototypes/threadsafe.py", line 52, in __call__.
May 19 13:50:35 <app-name> app/web.2: if not self.thread_context.handle:.
May 19 13:50:35 <app-name> app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/gevent/local.py", line 173, in __getattribute__.
May 19 13:50:35 <app-name> app/web.2: d = object.__getattribute__(self, '_local__dicts').get(getcurrent()).
May 19 13:50:35 <app-name> app/web.2: *** Error in `/app/.heroku/python/bin/python': double free or corruption (out): 0x0000000003dd6470 ***
Can someone tell me what's going on? How can I fix this?
Thanks for any and all help,
Tapan
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e27475c0-4ee5-454c-a519-2f0961a2b240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment