pylucene ftbfs on ppc64el, not enough stack space

Bug #1371761 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jcc (Ubuntu)
Fix Released
Undecided
billhuey
openjdk-7 (Ubuntu)
Invalid
Undecided
Unassigned
pylucene (Ubuntu)
Fix Released
Undecided
billhuey

Bug Description

the ppc64el build fails with:

The stack size specified is too small, Specify at least 768k
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/dist-packages/jcc/__main__.py", line 107, in <module>
    cpp.jcc(sys.argv)
  File "/usr/lib/python2.7/dist-packages/jcc/cpp.py", line 521, in jcc
    env = initVM(os.pathsep.join(classpath) or None, **initvm_args)
ValueError: An error occurred while creating Java VM
Makefile:321: recipe for target 'compile' failed
make[2]: *** [compile] Error 1

so either fix the pylucene build to set a custom stack size, or increase the default stack size for the VM. I didn't see this ppc64el specific behaviour for other packages.

Tags: ftbfs ppc64el
Revision history for this message
billhuey (bill-huey) wrote :

python2.7 -m jcc.__main__ --jar lucene-java-3.5.0/lucene/build/lucene-core-3.5.0.jar --jar lucene-java-3.5.0/lucene/build/contrib/analyzers/common/lucene-analyzers-3.5.0.jar --jar lucene-java-3.5.0/lucene/build/contrib/memory/lucene-memory-3.5.0.jar --jar lucene-java-3.5.0/lucene/build/contrib/highlighter/lucene-highlighter-3.5.0.jar --jar build/jar/extensions.jar --jar lucene-java-3.5.0/lucene/build/contrib/queries/lucene-queries-3.5.0.jar --jar lucene-java-3.5.0/lucene/build/contrib/grouping/lucene-grouping-3.5.0.jar --jar lucene-java-3.5.0/lucene/build/contrib/join/lucene-join-3.5.0.jar --jar lucene-java-3.5.0/lucene/build/contrib/facet/lucene-facet-3.5.0.jar --jar lucene-java-3.5.0/lucene/build/contrib/spellchecker/lucene-spellchecker-3.5.0.jar --output build-python2.7 --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.util.HashMap java.util.HashSet java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator --package java.util.regex --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.QueryParserTokenManager --exclude org.apache.lucene.queryParser.ParseException --exclude org.apache.lucene.search.regex.JakartaRegexpCapabilities --exclude org.apache.regexp.RegexpTunnel --exclude org.apache.lucene.analysis.cn.smart.AnalyzerProfile --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;' --sequence java.util.AbstractList 'size:()I' 'get:(I)Ljava/lang/Object;' --rename org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer --version 3.5.0 --module python/collections.py --module python/ICUNormalizer2Filter.py --module python/ICUFoldingFilter.py --module python/ICUTransformFilter.py --files 16 --build

Is the above command line that generates the message.

billhuey (bill-huey)
Changed in pylucene (Ubuntu):
assignee: nobody → billhuey (bill-huey)
Revision history for this message
billhuey (bill-huey) wrote :

There it is:

    env = initVM(os.pathsep.join(classpath) or None,
                 maxstack='512k', vmargs=' '.join(vmargs))

line 493 in jcc/jcc/cpp.py

billhuey (bill-huey)
Changed in jcc (Ubuntu):
assignee: nobody → billhuey (bill-huey)
billhuey (bill-huey)
Changed in openjdk-7 (Ubuntu):
status: New → In Progress
Changed in jcc (Ubuntu):
status: New → Confirmed
Changed in openjdk-7 (Ubuntu):
status: In Progress → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package jcc - 2.20-1ubuntu1

---------------
jcc (2.20-1ubuntu1) vivid; urgency=medium

  * Increase JVM stack size on ppc64el. Closes: #768064. LP: #1371761.
 -- Matthias Klose <email address hidden> Wed, 05 Nov 2014 13:31:59 +0200

Changed in jcc (Ubuntu):
status: Confirmed → Fix Released
Matthias Klose (doko)
Changed in openjdk-7 (Ubuntu):
status: New → Invalid
Revision history for this message
Matthias Klose (doko) wrote :

pylucene is now built for 15.04

Changed in pylucene (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.