On Nov 29, 2010, at 18:40, Bill Janssen <jans...@parc.com> wrote:
Bill Janssen <jans...@parc.com> wrote:
Andi Vajda <va...@apache.org> wrote:
I just tried this myself
By "this", do you mean 64-bit Windows 7, or Python 2.7?
Both. 64 bit Windows 7, with Python 2.7 and Java 1.6.0_22 both
32-bit.
OK, I'll try it again on Win 7. I'll use a checkout of the
PyLucene
trunk instead of a packaged tar file.
Don't use trunk, use HEAD of whatever branch you normally use, 2_9,
3_0, etc... The 2.9.4 and 3.0.3 releases are ready to go, pending
Lucene Core's.
OK, I checked out branches/pylucene_3_0 on my Win 7 machine. Same
problem. Here's the Makefile tranche:
# Windows (Win32, Python 2.7, Java 1.6, ant 1.8.1, Java not on
PATH)
PREFIX_PYTHON=/c/Python27
ANT=JAVA_HOME="c:\\Program Files (x86)\\Java\\jdk1.6.0_22" "/c/
Program Files/apache-ant-1.8.1/bin/ant"
PYTHON=$(PREFIX_PYTHON)/python.exe
JCC=$(PYTHON) -m jcc --shared --find-jvm-dll
NUM_FILES=3
JCC builds and installs fine, The Java code builds just fine, but
when I
get to generating PyLucene, I get this:
$ make
/c/Python27/python.exe -m jcc --shared --find-jvm-dll --jar lucene-
java-3.0.3/build/lucene-core-3.0.3.jar --jar lucene-java-3.0.3/
build/contrib/snowball/lucene-snowball-3.0.3.jar --jar lucene-
java-3.0.3/build/contrib/analyzers/common/lucene-
analyzers-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/regex/
lucene-regex-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/memory/
lucene-memory-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/
highlighter/lucene-highlighter-3.0.3.jar --jar lucene-java-3.0.3/
build/contrib/queries/lucene-queries-3.0.3.jar --jar build/jar/
extensions.jar --package java.lang java.lang.System
java.lang.Runtime --package java.util java.util.Arrays
java.text.SimpleDateFormat java.text.DecimalFormat
java.text.Collator --package java.io java.io.StringReader
java.io.InputStreamReader java.io.FileInputStream --exclude
org.apache.lucene.queryParser.Token --exclude
org.apache.lucene.queryParser.TokenMgrError --exclude
org.apache.lucene.queryParser.QueryParserTokenMa
nager --exclude org.apache.lucene.queryParser.ParseException --
exclude org.apache.lucene.search.regex.JakartaRegexpCapabilities --
exclude org.apache.regexp.RegexpTunnel --python lucene --mapping
org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/
lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/
lang/String;)Ljava/lang/String;' --rename
org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer
--version 3.0.3 --module python/collections.py --files 3 --build
make: *** [compile] Error 255
$
Ran it under gdb, which provides this tidbit:
(gdb) run
Starting program: c:\Python27/python.exe -m jcc --shared --compiler
mingw32 --jar lucene-java-3.0.3/build/lucene-core-3.0.3.jar --jar
lucene-java-3.0.3/build/contrib/snowball/lucene-snowball-3.0.3.jar --
jar lucene-java-3.0.3/build/contrib/analyzers/common/lucene-
analyzers-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/regex/
lucene-regex-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/memory/
lucene-memory-3.0.3.jar --jar lucene-java-3.0.3/build/contrib/
highlighter/lucene-highlighter-3.0.3.jar --jar lucene-java-3.0.3/
build/contrib/queries/lucene-queries-3.0.3.jar --jar build/jar/
extensions.jar --package java.lang java.lang.System
java.lang.Runtime --package java.util java.util.Arrays
java.text.SimpleDateFormat java.text.DecimalFormat
java.text.Collator --package java.io java.io.StringReader
java.io.InputStreamReader java.io.FileInputStream --exclude
org.apache.lucene.queryParser.Token --exclude
org.apache.lucene.queryParser.TokenMgrError --exclude
org.apache.lucene.queryParse
r.QueryParserTokenManager --exclude
org.apache.lucene.queryParser.ParseException --exclude
org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude
org.apache.regexp.RegexpTunnel --python lucene --mapping
org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/
lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/
lang/String;)Ljava/lang/String;' --rename
org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer
--version 3.0.3 --module python/collections.py --files 3 --build
[New Thread 1556.0x9fc]
Program received signal SIGTRAP, Trace/breakpoint trap.
0x7740fabd in ntdll!TpWaitForAlpcCompletion () from C:\Windows
\system32\ntdll.dll
(gdb) warning: HEAP[python.exe]:
warning: Invalid address specified to RtlFreeHeap( 00380000,
004314A8 )
(gdb) bt
#0 0x7740fabd in ntdll!TpWaitForAlpcCompletion () from C:\Windows
\system32\ntdll.dll
#1 0x0027f644 in ?? ()
#2 0x773d26c4 in ntdll!RtlCreateUserStack () from C:\Windows
\system32\ntdll.dll
#3 0x004314a0 in ?? ()
#4 0x77410b17 in ntdll!TpQueryPoolStackInformation () from C:
\Windows\system32\ntdll.dll
#5 0x00380000 in ?? ()
#6 0x773ca8ff in ntdll!AlpcMaxAllowedMessageLength () from C:
\Windows\system32\ntdll.dll
#7 0x00380000 in ?? ()
#8 0x77372a32 in ntdll!RtlEncodePointer () from C:\Windows
\system32\ntdll.dll
#9 0x004314a0 in ?? ()
#10 0x75a014d1 in KERNEL32!BaseFlushAppcompatCache () from C:\Windows
\syswow64\kernel32.dll
#11 0x00380000 in ?? ()
#12 0x74aa38bb in free () from C:\Windows\WinSxS
\x86_microsoft.vc90.
crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\msvcr90.dll
#13 0x00380000 in ?? ()
#14 0x64d81bc6 in initVM(_object*, _object*, _object*) () from c:
\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc\_jcc.pyd
#15 0x64d9a0d4 in __initialize__(_object*, _object*, _object*) ()
from c:\Python27\lib\site-packages\jcc-2.6-py2.7-win32.egg\jcc
\_jcc.pyd
#16 0x1e013ff8 in python27!PyCFunction_Call () from C:\Windows
\SysWOW64\python27.dll
#17 0x0233ded0 in ?? ()
#18 0x01ddbdb0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
This doesn't look good...
Try without --find-jvm-dll and setting the Path in the shell first.
Andi..
Bill