Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Yaroslav Kavenchuk <kavenchuk <at> jenty.by>
Subject: Re: pretest for 2.47 #3
Newsgroups: gmane.lisp.clisp.devel
Date: Monday 15th September 2008 07:44:03 UTC (over 9 years ago)
Sam Steingold wrote:
> I am afraid you will need to try gdb again and report the bug to the 
> mingw/cygwin maintainers.
> please post a link to the thread here.
> 

Hm, I think bug not in mingw: in cmd.exe the same result:

C:\gnu\home\src\clisp\clisp\build-full>lisp.exe -norc -q -M lispinit.mem 
-x "(exit 42)"
Reserved address range 0x19d90000-0x5fffffff .
STACK depth: 98222 [0xe5ff40 0xe00088]
SP depth: 515968

C:\gnu\home\src\clisp\clisp\build-full>echo %ERRORLEVEL%
42

C:\gnu\home\src\clisp\clisp\build-full>lisp.exe -norc -q -M lispinit.mem 
-x "(exit 42)"
Reserved address range 0x19d90000-0x5fffffff .
STACK depth: 98222 [0xe5ff40 0xe00088]
SP depth: 515968

C:\gnu\home\src\clisp\clisp\build-full>echo %ERRORLEVEL%
0


But in REPL mode all is ok:

C:\gnu\home\src\clisp\clisp\build-full>lisp.exe -norc -q -M lispinit.mem
Reserved address range 0x19d90000-0x5fffffff .
STACK depth: 98222 [0xe5ff40 0xe00088]
SP depth: 515968
[1]> (exit 42)

C:\gnu\home\src\clisp\clisp\build-full>echo %ERRORLEVEL%
42

C:\gnu\home\src\clisp\clisp\build-full>lisp.exe -norc -q -M lispinit.mem
Reserved address range 0x19d90000-0x5fffffff .
STACK depth: 98222 [0xe5ff40 0xe00088]
SP depth: 515968
[1]> (exit 42)

C:\gnu\home\src\clisp\clisp\build-full>echo %ERRORLEVEL%
42


On gdb bug is not detected:

C:\gnu\home\src\clisp\clisp\build-full>gdb lisp.exe
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
...
(gdb) set args -norc -q -M lispinit.mem -x "(exit 42)"
(gdb) show args
Argument list to give program being debugged when it is started is 
"-norc -q -M lispinit.mem -x "(ex
it 42)"".
(gdb) run
...
Program exited with code 052.
(gdb) run
...
Program exited with code 052.
(gdb)



I add debug print in spvw.d:3338

  #ifdef WIN32_NATIVE
    fprintf(stderr,"Exitcode: %i\n", exitcode);
   _exit(exitcode);
  #endif

Result from cmd (not mingw shell):

C:\gnu\home\src\clisp\clisp\build-full>lisp.exe -norc -q -M lispinit.mem 
-x "(exit 42)"
Reserved address range 0x19d90000-0x5fffffff .
STACK depth: 98222 [0xe5ff40 0xe00088]
SP depth: 515968
Exitcode: 42

C:\gnu\home\src\clisp\clisp\build-full>echo %ERRORLEVEL%
0

C:\gnu\home\src\clisp\clisp\build-full>lisp.exe -norc -q -M lispinit.mem 
-x "(exit 42)"
Reserved address range 0x19d90000-0x5fffffff .
STACK depth: 98222 [0xe5ff40 0xe00088]
SP depth: 515968
Exitcode: 42

C:\gnu\home\src\clisp\clisp\build-full>echo %ERRORLEVEL%
0

-- 
WBR, Yaroslav Kavenchuk.
 
CD: 3ms