[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #1337: Runtime crashes inside glib main loop
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #1337: Runtime crashes inside glib main loop |
Date: |
Tue, 20 Dec 2016 15:16:28 -0000 |
#1337: Runtime crashes inside glib main loop
---------------------------------------+------------------------------
Reporter: cosarara | Owner:
Type: defect | Status: new
Priority: major | Milestone: 4.12.0
Component: core libraries | Version: 4.11.0
Resolution: | Keywords: stack corruption
Estimated difficulty: hard |
---------------------------------------+------------------------------
Changes (by sjamaan):
* keywords: => stack corruption
* difficulty: => hard
* component: unknown => core libraries
* milestone: someday => 4.12.0
Old description:
> Running scheme code from a foreign-lambda called using a glib callback
> can make the runtime crash. The bug is not easy to reproduce, since every
> small change to the code can make it easier or harder to trigger.
>
> I have been able to trigger it only when doing a significant amount of
> work on the callback, but taking more time to return doesn't necessarily
> make it easier to trigger, and sometimes multiple calls are needed.
>
> The output when crashing is this:
>
> test: runtime.c:2797: C_save_and_reclaim: Assertion `av >
> C_temporary_stack_bottom || av < C_temporary_stack_limit' failed.
>
> I'm running this on the following release (installed from the Arch Linux
> repos):
>
> Version 4.11.0 (rev ce980c4)
> linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
> compiled 2016-05-28 on yves.more-magic.net (Linux)
>
> I'll attach my test code, which depends on bind (egg) and glib.
New description:
Running scheme code from a {{{foreign-lambda}}} called using a glib
callback can make the runtime crash. The bug is not easy to reproduce,
since every small change to the code can make it easier or harder to
trigger.
I have been able to trigger it only when doing a significant amount of
work on the callback, but taking more time to return doesn't necessarily
make it easier to trigger, and sometimes multiple calls are needed.
The output when crashing is this:
{{{
test: runtime.c:2797: C_save_and_reclaim: Assertion `av >
C_temporary_stack_bottom || av < C_temporary_stack_limit' failed.
}}}
I'm running this on the following release (installed from the Arch Linux
repos):
{{{
Version 4.11.0 (rev ce980c4)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2016-05-28 on yves.more-magic.net (Linux)
}}}
I'll attach my test code, which depends on bind (egg) and glib.
--
--
Ticket URL: <https://bugs.call-cc.org/ticket/1337#comment:1>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.