[Top][All Lists]

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

[Texmacs-dev] : Proposed Patch for "Stack Overflow" Cygwin erro

From: Duke Whang
Subject: [Texmacs-dev] : Proposed Patch for "Stack Overflow" Cygwin errors.
Date: Fri, 18 Jul 2003 00:16:56 -0700
User-agent: Internet Messaging Program (IMP) 3.1

[This was sent to address@hidden as well]

Summary :

[1] TeXmacs (and on Cygwin [under Windows XP]
produces "Stack overflow" errors.

[2] Proposed change:
    Revert line 18 of 

    CURRENT line 18 (    
    (debug-set! stack 10000000)

    PROPOSED CHANGE (this is identical to the version in
    (debug-set! stack 1000000)

[3] Comment:
    The old naming conventions of the installation directories,
            (examples :
    rather than the current ( and naming
    allows for *much* easier rollbacks if future versions do
    not work.  (Indeed, installation directory "versioning"
    allowed me to run a simple "diff" to debug this particular


[Q1] : Is the proposed change in compat.scm "safe"?  On
my Cygwin system, it allowed to load and run
(seemingly) correctly.  Are there additional features in
TeXmacs that would require the stack to increase 10 fold?
(from 1000000 ["1 million"] to 10000000 ["10 million"])
Will I encounter problems in running TeXmacs by the above
proposed change?  (I guess that the answer is no, 
but I want to verify).

[Q2] : As you can see from my comment 3 above, I would
prefer to have installation directory "versioning".

Appendix A of
leads me to believe that

  ./configure --prefix=/usr/share/local/TeXmacs-[version]

    (example is
         ./configure --prefix=/usr/share/local/TeXmacs-
     for version

will allow for installation directory "versioning".
(Although I will additionally need to change the PATH
to include /usr/share/local/TeXmacs-[version]/bin)

Is this correct?


Anyway, I would just like to say that I appreciate the
opportunity and the privilege to use such high quality
Open Source software.  As a graduate student, I have had
several classes which required the submission of homework
problem set solutions in PDF, and TeXmacs made my life
*much* easier.

              Thank you!
              Duke Whang

[Full details follow]

[1] "Stack Overflow" in Cygwin/[Windows XP]

I run TeXmacs in a Cygwin environment (on Windows XP).
(Incidentally, the system has 1 Gb of RAM) worked fine, but produced errors:

address@hidden ~
$ uname -a
CYGWIN_NT-5.1 DELL 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown 

address@hidden ~
$ texmacs --version

TeXmacs version
(c) 1999-2003 by Joris van der Hoeven

address@hidden ~
$ texmacs

TeXmacs] Loading ecrm11 at 300 dpi
/usr/local/share/TeXmacs/progs/core/boot/compat.scm:21:1: In expression (catch 
(quote wrong-number-of-args) (lambda () #) ...):
/usr/local/share/TeXmacs/progs/core/boot/compat.scm:21:1: Stack overflow
ERROR: Stack overflow

[2] Proposed change

--First I ran "diff" on the current ( version of compat.scm
against the previous ( version:

address@hidden ~
$ diff /usr/local/share/TeXmacs/progs/core/boot/compat.scm \
< (debug-set! stack 10000000)
> (debug-set! stack 1000000)

--Second I backed up compat.scm and copied over the 

address@hidden ~
$ cp -p /usr/local/share/TeXmacs/progs/core/boot/compat.scm \

address@hidden ~
$ cp -p /usr/local/share/TeXmacs- \

--Third I ran TeXmacs and it loads and seems to run well.

address@hidden ~
$ texmacs

TeXmacs] Loading ecrm11 at 300 dpi
TeXmacs] Loading hyphen.us
TeXmacs] Loading ecrm10 at 600 dpi

[3] Comment

I assume the decision has already been made and will 
not be revoked, but I prefer the old

names of the installation directories.

This allows easier "rollback" if a new version of TeXmacs 
doesn't work.

For example, in my /usr/local/bin, I set up texmacs as
a symlink to the latest version of TeXmacs:

address@hidden ~
$ ls -alF /usr/local/bin/texmacs*
lrwxrwxrwx    1 Duke     None          112 Jul 17 
23:29 /usr/local/bin/texmacs -> texmacs-*
-rwxr-xr-x    1 Duke     None          472 Jan  8  2003 /usr/local/bin/texmacs-
-rwxr-xr-x    1 Duke     None          478 Jul 15 21:22 /usr/local/bin/texmacs-*
-rwxr-xr-x    1 Duke     None          478 Jul 17 19:52 /usr/local/bin/texmacs-*
-rwxr-xr-x    1 Duke     None          460 Jul 15 20:20 /usr/local/bin/texmacs-*
-rwxr-xr-x    1 Duke     None          460 Jul 15 20:20 /usr/local/bin/texmacs-*

(I also have texmacs-[version]__backup, in case future
installations overwrite the file "texmacs" and hence 
texmacs--[version] as well).

reply via email to

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