Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 476 invoked from network); 30 Nov 2010 02:41:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Nov 2010 02:41:04 -0000 Received: (qmail 23197 invoked by uid 500); 30 Nov 2010 02:41:04 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 23136 invoked by uid 500); 30 Nov 2010 02:41:03 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 23128 invoked by uid 99); 30 Nov 2010 02:41:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 02:41:03 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of janssen@parc.com designates 13.1.64.93 as permitted sender) Received: from [13.1.64.93] (HELO alpha.xerox.com) (13.1.64.93) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Nov 2010 02:40:58 +0000 Received: from parc.com ([13.1.102.103]) by alpha.xerox.com with SMTP id <139974(2)>; Mon, 29 Nov 2010 18:40:23 PST To: pylucene-dev@lucene.apache.org Subject: Re: building PyLucene 3.0.2 on Win7/MinGW with Python 2.7 In-reply-to: <27999.1291082934@parc.com> References: <39497.1290451990@parc.com> <43164.1290458744@parc.com> <43491.1290459535@parc.com> <12448.1291052748@parc.com> <9F46DFC5-BE40-4A65-A4D4-6F724D1B7BC2@apache.org> <14849.1291057135@parc.com> <27999.1291082934@parc.com> Comments: In-reply-to Bill Janssen message dated "Mon, 29 Nov 2010 18:08:54 -0800." Cc: janssen@parc.com X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.1.90 Date: Mon, 29 Nov 2010 18:40:23 PST Message-ID: <29194.1291084823@parc.com> From: Bill Janssen Bill Janssen wrote: > Andi Vajda 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... Bill