[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cyclical/mutual includes not detected

From: Colin Campbell
Subject: Re: Cyclical/mutual includes not detected
Date: Wed, 04 May 2011 19:14:29 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

On 11-04-29 12:51 PM, Olexa Bilaniuk wrote:
I'm not top posting.
While typesetting a large project, I accidentally included in my "utilities"
file a file that included those same utilities, which resulted in Lilypond
quickly eating up all my memory. Distilled to the bare minimum, this is what
triggers this bug:


% In file Test.ly:
   \version "2.13.60"

   \include "Test2.ly"
% End file Test.ly


% In file Test2.ly:
   \version "2.13.60"

   \include "Test.ly"
% End file Test2.ly


I admit that to a certain extent it is the user's responsibility to check for
these sorts of failings, but in the interest of safety there should be a check
for mutual/cyclical includes. For example, GCC refuses to process includes
deeper than I believe 127 levels (An example of setting a hard limit), and
another way to do this would be to build a dependency graph and test whether it
is acyclic or not.

Olexa Bilaniuk

I'm not certain that memory serves me well, Olexa, but the following might be of some use:


Hope that helps!

Bug Squad

The test of our progress is not whether we add more to the abundance
of those who have much, it is whether we provide enough for those who
have too little.
-Franklin D. Roosevelt, 32nd US President (1882-1945)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]