chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #1453: Running MinGW-produced Chicken from a MSVC-pro


From: Chicken Trac
Subject: [Chicken-janitors] #1453: Running MinGW-produced Chicken from a MSVC-produced executable causes a stack overflow during initialization
Date: Wed, 18 Apr 2018 15:43:14 -0000

#1453: Running MinGW-produced Chicken from a MSVC-produced executable causes a
stack overflow during initialization
----------------------+--------------------------------
 Reporter:  jrobbins  |                 Owner:
     Type:  defect    |                Status:  new
 Priority:  major     |             Milestone:  someday
Component:  unknown   |               Version:  4.13.0
 Keywords:            |  Estimated difficulty:
----------------------+--------------------------------
 I am on Windows. I have a program, compiled via MSVC, that has a
 dependency on libchicken.dll, compiled via MinGW, both 64 bit. It
 successfully calls CHICKEN_run with the default toplevel, but during the
 loading of the modules, the program segfaults with a stack overflow error
 in various places, usually around the time it hits loading modules.scm.

 It seems that Chicken underestimates the size of the stack when ran in
 this manner, causing it to run out of stack space much sooner than it
 anticipates, causing the segfault when it fails to resize the stack.

 Attached is a set of files that can replicate the issue. Running make
 should produce call_from_cl.exe, which will segfault when run. The
 libchicken.dll it needs should be produced via the mingw-msys platform.
 You'll need MSVC's cl.exe and lib.exe installed to compile.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1453>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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