texmacs-dev
[Top][All Lists]
Advanced

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

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


From: Duke Whang
Subject: [Texmacs-dev] 1.0.1.18 : 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 1.0.1.18 (and 1.0.1.17) on Cygwin [under Windows XP]
produces "Stack overflow" errors.

[2] Proposed change:
    Revert line 18 of 
       /usr/local/share/TeXmacs/progs/core/boot/compat.scm

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

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

[3] Comment:
    The old naming conventions of the installation directories,
    namely
         /usr/local/share/TeXmacs-[version]
         /usr/local/libexec/TeXmacs-[version]
            (examples :
               /usr/local/share/TeXmacs-1.0.1.15
               /usr/local/libexec/TeXmacs-1.0.1.15)
    rather than the current (1.0.1.17 and 1.0.1.18) naming
    conventions
         /usr/local/share/TeXmacs/
         /usr/local/libexec/TeXmacs/
    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
    problem!)


--------------
Questions:

[Q1] : Is the proposed change in compat.scm "safe"?  On
my Cygwin system, it allowed 1.0.1.18 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
  http://www.texmacs.org/Download/Compile.html
leads me to believe that

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

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

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)
1.0.1.15 worked fine, but 1.0.1.18 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 
Cygwin

address@hidden ~
$ texmacs --version

TeXmacs version 1.0.1.18
(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 (1.0.1.18) version of compat.scm
against the previous (1.0.1.15) version:

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


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

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


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

--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

         /usr/local/share/TeXmacs-[version]
         /usr/local/libexec/TeXmacs-[version]
    
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-1.0.1.18*
-rwxr-xr-x    1 Duke     None          472 Jan  8  2003 /usr/local/bin/texmacs-
1.0.1*
-rwxr-xr-x    1 Duke     None          478 Jul 15 21:22 /usr/local/bin/texmacs-
1.0.1.14__backup*
-rwxr-xr-x    1 Duke     None          478 Jul 17 19:52 /usr/local/bin/texmacs-
1.0.1.15__backup*
-rwxr-xr-x    1 Duke     None          460 Jul 15 20:20 /usr/local/bin/texmacs-
1.0.1.18*
-rwxr-xr-x    1 Duke     None          460 Jul 15 20:20 /usr/local/bin/texmacs-
1.0.1.18__backup*

(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]