Package: jcc
Version: 2.21-1.1
Severity: important
Tags: patch

Hi,

It looks like jcc can't start on powerpc due to small stack size:

The stack size specified is too small, Specify at least 1024k
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, 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)

JCC package has special patch for ppc64le that increases stack size from 512k 
to 768k. 
I propose to increase stack size to 1024k for both ppc64 and ppc64le.

See attached patch. Not tested yet because I don't have powerpc machine 

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0+ (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages jcc depends on:
ii  default-jdk [java7-sdk]    2:1.8-57
ii  libc6                      2.23-4
ii  libgcc1                    1:6.1.1-11
ii  libstdc++6                 6.1.1-11
ii  openjdk-8-jdk [java7-sdk]  8u102-b14.1-2
ii  python                     2.7.11-2
pn  python:any                 <none>

jcc recommends no packages.

jcc suggests no packages.

-- no debconf information

-- 
WBR, Dmitry
--- jcc-2.21.orig/debian/patches/ppc64el-stacksize.patch	2016-03-21 21:02:27.000000000 +0200
+++ jcc-2.21/debian/patches/ppc64el-stacksize.patch	2016-08-09 16:25:59.105124762 +0300
@@ -8,8 +8,8 @@
          vmargs.append('-Djava.library.path=' + os.pathsep.join(libpath))
  
 -    initvm_args['maxstack'] = '512k'
-+    if "ppc64le" in os.uname():
-+        initvm_args['maxstack'] = '768k'
++    if "ppc64le" in os.uname() or "ppc64" in os.uname():
++        initvm_args['maxstack'] = '1024k'
 +    else:
 +        initvm_args['maxstack'] = '512k'
 +

Reply via email to