On Wed, 4 Jun 2008, Felix Schwarz wrote:
I'm using PyLucene/JCC with TurboGears 1 on CentOS 5. So far it works great. Unfortunately, I get (seemingly) random segfaults when TurboGears runs in development mode and reloads the source code. Clearly you need more information about this so you could fix these issues. Is there a recommended way to compile JCC/PyLucene so I can get meaningful core dumps?
Rebuilding PyLucene with 'make DEBUG=1' invokes distutils with --debug and adds -O0 to CFLAGS. You normally don't need to rebuild JCC, its runtime code is compiled and built into PyLucene statically unless you built JCC in 'shared' mode (enable_shared True in setup.py) in which case it'd be a good idea to rebuild shared mode's libjcc.so as well. To rebuild JCC in debug mode, do the same: invoke setup.py with build_ext --debug and make sure CFLAGS has -O0 in it to disable optimizations.
Andi.. _______________________________________________ pylucene-dev mailing list pylucene-dev@osafoundation.org http://lists.osafoundation.org/mailman/listinfo/pylucene-dev