Hi,
Could someone please share some debugging tips for uwsgi workers? I
am familiar with gdb and valgrind. I built uwsgi with debug = True,
but do I need to set the gcc flag "-g" somewhere?
I have a bug with respect to accessing some of the members of the
uwsgi_server struct in my plugin. Specifically, if I declare it
extern as "extern struct uwsgi_server uwsgi;", I now see the address
of the workers array as NULL in the plugin code. If I print the
address of the uwsgi struct instance in the plugin (using
uwsgi_log("uwsgi addr %p\n", uwsgi);) request handling code and in the
uwsgi.c file, the printed addresses are identical. As I previously
could access uwsgi.workers[0].request in the plugin and it still
appears to work in the python plugin code, I am assuming that I have
corrupted the memory somehow.
--Jeff
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi