[pylucene-dev] Re: seqfault in KeywordAnalyzerTest with jcc-enabled PyLucene

Andi Vajda vajda at osafoundation.org
Tue Dec 4 11:03:48 PST 2007


On Tue, 4 Dec 2007, Felix Schwarz wrote:

> After all, this looks like a compiler bug on CentOS 5 to me. If I compile 
> PyLucene with DEBUG=1, all tests pass - switching back to DEBUG=0 and the bug 
> re-appears. It turned out that some gcc optimizations seem to be wrong, only 
> "-O0" works for me. I will have to check if the problem is present in Fedora 
> 8 using icedtea.

The compiler flags used are determined by distutils and it typically uses 
the flags Python was itself compiled with. You can, of course, override 
these flags by setting the CFLAGS variable in Makefile as is already done 
for some cases. If -O3, which seems to be used a lot, is too optimistic, 
trying -O2 may solve the problem.

What version of gcc are you using ?

Andi..


More information about the pylucene-dev mailing list