[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lilypond 1.4.5 exits with value 11 while running make web-doc
From: |
Mats Bengtsson |
Subject: |
Re: Lilypond 1.4.5 exits with value 11 while running make web-doc |
Date: |
Tue, 21 Aug 2001 00:08:01 +0200 |
> It looks like you get bitten by somthing that we've seen before, a
> small ulimit on the stack when running stuff from python.
>
> Did we have a good fix for that?
The following patch sets the stack size to unlimited, which
hopefully should help.
/Mats
diff -u scripts/ly2dvi.py~ scripts/ly2dvi.py
--- scripts/ly2dvi.py~ Tue Aug 14 18:45:44 2001
+++ scripts/ly2dvi.py Tue Aug 21 00:02:44 2001
@@ -66,6 +66,7 @@
import operator
import tempfile
import traceback
+import resource
datadir = '@datadir@'
sys.path.append (datadir + '/python')
@@ -293,7 +294,10 @@
Exit status of CMD
"""
-
+
+ # Attempt to fix problems with limited stack size set by Python!
+ # Sets unlimited stack size.
+ resource.setrlimit(resource.RLIMIT_STACK, (-1,-1))
if verbose_p:
progress (_ ("Invoking `%s\'") % cmd)